@lapis-notes/ai 0.1.0
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/CHANGELOG.md +6 -0
- package/LICENSE.md +8 -0
- package/README.md +20 -0
- package/dist/ai-plugin.d.ts +88 -0
- package/dist/ai-plugin.js +742 -0
- package/dist/bootstrap/build.d.ts +15 -0
- package/dist/bootstrap/build.js +28 -0
- package/dist/bootstrap/folder-instructions.d.ts +4 -0
- package/dist/bootstrap/folder-instructions.js +49 -0
- package/dist/bootstrap/format.d.ts +2 -0
- package/dist/bootstrap/format.js +46 -0
- package/dist/bootstrap/instructions.d.ts +1 -0
- package/dist/bootstrap/instructions.js +8 -0
- package/dist/bootstrap/types.d.ts +36 -0
- package/dist/bootstrap/types.js +3 -0
- package/dist/catalog/ai-catalog-panel.svelte +742 -0
- package/dist/catalog/ai-catalog-panel.svelte.d.ts +13 -0
- package/dist/catalog/ai-catalog-view-type.d.ts +1 -0
- package/dist/catalog/ai-catalog-view-type.js +1 -0
- package/dist/catalog/ai-catalog-view.d.ts +22 -0
- package/dist/catalog/ai-catalog-view.js +48 -0
- package/dist/catalog/filter.d.ts +3 -0
- package/dist/catalog/filter.js +24 -0
- package/dist/catalog/inventory.d.ts +21 -0
- package/dist/catalog/inventory.js +255 -0
- package/dist/catalog/tree.d.ts +12 -0
- package/dist/catalog/tree.js +60 -0
- package/dist/catalog/types.d.ts +44 -0
- package/dist/catalog/types.js +1 -0
- package/dist/chat/ai-approval-card.svelte +54 -0
- package/dist/chat/ai-approval-card.svelte.d.ts +9 -0
- package/dist/chat/ai-chat-panel.svelte +1288 -0
- package/dist/chat/ai-chat-panel.svelte.d.ts +50 -0
- package/dist/chat/ai-inventory-result.css +55 -0
- package/dist/chat/ai-inventory-result.svelte +63 -0
- package/dist/chat/ai-inventory-result.svelte.d.ts +5 -0
- package/dist/chat/ai-question-card.svelte +132 -0
- package/dist/chat/ai-question-card.svelte.d.ts +9 -0
- package/dist/chat/ai-view-bootstrap.d.ts +13 -0
- package/dist/chat/ai-view-bootstrap.js +86 -0
- package/dist/chat/ai-view-panel.svelte +89 -0
- package/dist/chat/ai-view-panel.svelte.d.ts +13 -0
- package/dist/chat/ai-view-type.d.ts +1 -0
- package/dist/chat/ai-view-type.js +1 -0
- package/dist/chat/ai-view.d.ts +60 -0
- package/dist/chat/ai-view.js +121 -0
- package/dist/chat/chat-controller.svelte.d.ts +82 -0
- package/dist/chat/chat-controller.svelte.js +1926 -0
- package/dist/chat/chat-items.d.ts +88 -0
- package/dist/chat/chat-items.js +9 -0
- package/dist/chat/chat-mentions.d.ts +15 -0
- package/dist/chat/chat-mentions.js +77 -0
- package/dist/chat/chat-result-views.d.ts +5 -0
- package/dist/chat/chat-result-views.js +15 -0
- package/dist/chat/chat-session.d.ts +28 -0
- package/dist/chat/chat-session.js +50 -0
- package/dist/chat/chat-status.d.ts +1 -0
- package/dist/chat/chat-status.js +3 -0
- package/dist/chat/chat-time.d.ts +18 -0
- package/dist/chat/chat-time.js +90 -0
- package/dist/chat/chat-tool-display.d.ts +17 -0
- package/dist/chat/chat-tool-display.js +213 -0
- package/dist/chat/chat-tool-identity.d.ts +4 -0
- package/dist/chat/chat-tool-identity.js +42 -0
- package/dist/chat/chat-trace.d.ts +6 -0
- package/dist/chat/chat-trace.js +256 -0
- package/dist/chat/live-runtime-unavailable.d.ts +1 -0
- package/dist/chat/live-runtime-unavailable.js +1 -0
- package/dist/commands/agent.d.ts +8 -0
- package/dist/commands/agent.js +38 -0
- package/dist/commands/catalog.d.ts +18 -0
- package/dist/commands/catalog.js +115 -0
- package/dist/commands/discovery.d.ts +36 -0
- package/dist/commands/discovery.js +151 -0
- package/dist/commands/groups.d.ts +16 -0
- package/dist/commands/groups.js +121 -0
- package/dist/commands/inspect.d.ts +18 -0
- package/dist/commands/inspect.js +29 -0
- package/dist/commands/markdown.d.ts +21 -0
- package/dist/commands/markdown.js +117 -0
- package/dist/commands/parser.d.ts +4 -0
- package/dist/commands/parser.js +24 -0
- package/dist/commands/reserved.d.ts +4 -0
- package/dist/commands/reserved.js +107 -0
- package/dist/commands/router.d.ts +17 -0
- package/dist/commands/router.js +170 -0
- package/dist/commands/seed.d.ts +4 -0
- package/dist/commands/seed.js +8 -0
- package/dist/commands/types.d.ts +54 -0
- package/dist/commands/types.js +1 -0
- package/dist/commands/user-agents-node.d.ts +3 -0
- package/dist/commands/user-agents-node.js +52 -0
- package/dist/commands/user-agents.d.ts +22 -0
- package/dist/commands/user-agents.js +40 -0
- package/dist/conversations/approval-grants.d.ts +20 -0
- package/dist/conversations/approval-grants.js +75 -0
- package/dist/conversations/binding-state.d.ts +6 -0
- package/dist/conversations/binding-state.js +35 -0
- package/dist/conversations/context-handoff.d.ts +25 -0
- package/dist/conversations/context-handoff.js +207 -0
- package/dist/conversations/conversation-index-coordinator.d.ts +18 -0
- package/dist/conversations/conversation-index-coordinator.js +81 -0
- package/dist/conversations/conversation-index.d.ts +16 -0
- package/dist/conversations/conversation-index.js +125 -0
- package/dist/conversations/conversation-locator.d.ts +2 -0
- package/dist/conversations/conversation-locator.js +20 -0
- package/dist/conversations/conversation-palette.d.ts +18 -0
- package/dist/conversations/conversation-palette.js +29 -0
- package/dist/conversations/conversation-repository.d.ts +39 -0
- package/dist/conversations/conversation-repository.js +213 -0
- package/dist/conversations/handoff-summary.d.ts +48 -0
- package/dist/conversations/handoff-summary.js +269 -0
- package/dist/conversations/hashes.d.ts +5 -0
- package/dist/conversations/hashes.js +40 -0
- package/dist/conversations/history-creation-scope.d.ts +12 -0
- package/dist/conversations/history-creation-scope.js +44 -0
- package/dist/conversations/jsonl.d.ts +10 -0
- package/dist/conversations/jsonl.js +41 -0
- package/dist/conversations/memory-transcript-store.d.ts +15 -0
- package/dist/conversations/memory-transcript-store.js +119 -0
- package/dist/conversations/paths.d.ts +14 -0
- package/dist/conversations/paths.js +92 -0
- package/dist/conversations/redaction.d.ts +13 -0
- package/dist/conversations/redaction.js +94 -0
- package/dist/conversations/reveal-scope.d.ts +3 -0
- package/dist/conversations/reveal-scope.js +8 -0
- package/dist/conversations/scope-resolver.d.ts +11 -0
- package/dist/conversations/scope-resolver.js +18 -0
- package/dist/conversations/scope-tree.d.ts +10 -0
- package/dist/conversations/scope-tree.js +71 -0
- package/dist/conversations/transcript-projection.d.ts +9 -0
- package/dist/conversations/transcript-projection.js +409 -0
- package/dist/conversations/transcript-store.d.ts +24 -0
- package/dist/conversations/transcript-store.js +27 -0
- package/dist/conversations/types.d.ts +224 -0
- package/dist/conversations/types.js +12 -0
- package/dist/conversations/validation.d.ts +4 -0
- package/dist/conversations/validation.js +383 -0
- package/dist/conversations/vault-transcript-store.d.ts +22 -0
- package/dist/conversations/vault-transcript-store.js +219 -0
- package/dist/core/event-queue.d.ts +6 -0
- package/dist/core/event-queue.js +39 -0
- package/dist/core/types.d.ts +241 -0
- package/dist/core/types.js +50 -0
- package/dist/history/ai-history-panel.svelte +937 -0
- package/dist/history/ai-history-panel.svelte.d.ts +17 -0
- package/dist/history/ai-history-view-type.d.ts +1 -0
- package/dist/history/ai-history-view-type.js +1 -0
- package/dist/history/ai-history-view.d.ts +26 -0
- package/dist/history/ai-history-view.js +51 -0
- package/dist/history/conversation-history-tree.d.ts +15 -0
- package/dist/history/conversation-history-tree.js +71 -0
- package/dist/host/agent-workspace.d.ts +6 -0
- package/dist/host/agent-workspace.js +16 -0
- package/dist/host/create-host-runtimes.d.ts +2 -0
- package/dist/host/create-host-runtimes.js +14 -0
- package/dist/host/desktop-process-host.d.ts +6 -0
- package/dist/host/desktop-process-host.js +74 -0
- package/dist/host/host-runtime-availability.d.ts +1 -0
- package/dist/host/host-runtime-availability.js +3 -0
- package/dist/host/process-host.d.ts +31 -0
- package/dist/host/process-host.js +6 -0
- package/dist/index.d.ts +69 -0
- package/dist/index.js +49 -0
- package/dist/jsonl/ai-jsonl-preview.d.ts +27 -0
- package/dist/jsonl/ai-jsonl-preview.js +68 -0
- package/dist/jsonl/ai-jsonl-view-type.d.ts +1 -0
- package/dist/jsonl/ai-jsonl-view-type.js +1 -0
- package/dist/jsonl/ai-jsonl-view.d.ts +16 -0
- package/dist/jsonl/ai-jsonl-view.js +57 -0
- package/dist/jsonl/ai-jsonl-view.svelte +260 -0
- package/dist/jsonl/ai-jsonl-view.svelte.d.ts +9 -0
- package/dist/memory/candidate-extractor.d.ts +25 -0
- package/dist/memory/candidate-extractor.js +191 -0
- package/dist/memory/forget-confirmation.d.ts +3 -0
- package/dist/memory/forget-confirmation.js +45 -0
- package/dist/memory/hashes.d.ts +5 -0
- package/dist/memory/hashes.js +37 -0
- package/dist/memory/memory-ingestion-coordinator.d.ts +19 -0
- package/dist/memory/memory-ingestion-coordinator.js +108 -0
- package/dist/memory/memory-record-store.d.ts +62 -0
- package/dist/memory/memory-record-store.js +369 -0
- package/dist/memory/memory-scheduler.d.ts +21 -0
- package/dist/memory/memory-scheduler.js +143 -0
- package/dist/memory/memory-tools.d.ts +61 -0
- package/dist/memory/memory-tools.js +99 -0
- package/dist/memory/native-memory-service.d.ts +72 -0
- package/dist/memory/native-memory-service.js +1256 -0
- package/dist/memory/paths.d.ts +13 -0
- package/dist/memory/paths.js +60 -0
- package/dist/memory/runtime-consolidation-provider.d.ts +18 -0
- package/dist/memory/runtime-consolidation-provider.js +154 -0
- package/dist/memory/types.d.ts +139 -0
- package/dist/memory/types.js +1 -0
- package/dist/providers/acp-model-provider.d.ts +11 -0
- package/dist/providers/acp-model-provider.js +99 -0
- package/dist/providers/codex-model-catalog.d.ts +7 -0
- package/dist/providers/codex-model-catalog.js +179 -0
- package/dist/providers/codex-model-provider.d.ts +12 -0
- package/dist/providers/codex-model-provider.js +42 -0
- package/dist/providers/model-provider.d.ts +26 -0
- package/dist/providers/model-provider.js +26 -0
- package/dist/public-components.d.ts +3 -0
- package/dist/public-components.js +3 -0
- package/dist/registry/runtime-registry.d.ts +11 -0
- package/dist/registry/runtime-registry.js +71 -0
- package/dist/registry/select-runtime.d.ts +9 -0
- package/dist/registry/select-runtime.js +31 -0
- package/dist/runtime-adapters.d.ts +16 -0
- package/dist/runtime-adapters.js +9 -0
- package/dist/runtimes/acp/acp-event-mapper.d.ts +56 -0
- package/dist/runtimes/acp/acp-event-mapper.js +237 -0
- package/dist/runtimes/acp/acp-runtime.d.ts +46 -0
- package/dist/runtimes/acp/acp-runtime.js +165 -0
- package/dist/runtimes/acp/desktop-acp-backend.d.ts +16 -0
- package/dist/runtimes/acp/desktop-acp-backend.js +243 -0
- package/dist/runtimes/codex/app-server-protocol.d.ts +28 -0
- package/dist/runtimes/codex/app-server-protocol.js +274 -0
- package/dist/runtimes/codex/codex-runtime.d.ts +24 -0
- package/dist/runtimes/codex/codex-runtime.js +318 -0
- package/dist/runtimes/fake/fake-runtime.d.ts +51 -0
- package/dist/runtimes/fake/fake-runtime.js +257 -0
- package/dist/sessions/plugin-data.d.ts +8 -0
- package/dist/sessions/plugin-data.js +29 -0
- package/dist/sessions/session-store.d.ts +47 -0
- package/dist/sessions/session-store.js +117 -0
- package/dist/settings/acp-agents.d.ts +8 -0
- package/dist/settings/acp-agents.js +11 -0
- package/dist/settings/ai-settings-tab.d.ts +8 -0
- package/dist/settings/ai-settings-tab.js +249 -0
- package/dist/settings/ai-settings.d.ts +43 -0
- package/dist/settings/ai-settings.js +147 -0
- package/dist/settings/app-tool-setting-rows.d.ts +16 -0
- package/dist/settings/app-tool-setting-rows.js +30 -0
- package/dist/settings/register-ai-settings.d.ts +3 -0
- package/dist/settings/register-ai-settings.js +393 -0
- package/dist/skills/activation.d.ts +2 -0
- package/dist/skills/activation.js +20 -0
- package/dist/skills/bundled/lapis-notes.d.ts +3 -0
- package/dist/skills/bundled/lapis-notes.js +52 -0
- package/dist/skills/bundled/research.d.ts +6 -0
- package/dist/skills/bundled/research.js +29 -0
- package/dist/skills/discovery.d.ts +21 -0
- package/dist/skills/discovery.js +227 -0
- package/dist/skills/manifest.d.ts +3 -0
- package/dist/skills/manifest.js +39 -0
- package/dist/skills/parser.d.ts +12 -0
- package/dist/skills/parser.js +124 -0
- package/dist/skills/registry.d.ts +21 -0
- package/dist/skills/registry.js +89 -0
- package/dist/skills/seed.d.ts +5 -0
- package/dist/skills/seed.js +18 -0
- package/dist/skills/skill-tools.d.ts +8 -0
- package/dist/skills/skill-tools.js +113 -0
- package/dist/skills/types.d.ts +67 -0
- package/dist/skills/types.js +1 -0
- package/dist/styles.css +514 -0
- package/dist/tools/app-tool-host.d.ts +47 -0
- package/dist/tools/app-tool-host.js +419 -0
- package/dist/tools/desktop-app-tool-bridge.d.ts +23 -0
- package/dist/tools/desktop-app-tool-bridge.js +223 -0
- package/dist/tools/mcp-server-registry.d.ts +7 -0
- package/dist/tools/mcp-server-registry.js +30 -0
- package/manifest.json +34 -0
- package/package.json +83 -0
- package/styles.css +1 -0
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
import { View, } from "@lapis-notes/api";
|
|
2
|
+
import { mount, unmount } from "svelte";
|
|
3
|
+
import AiViewPanel from "./ai-view-panel.svelte";
|
|
4
|
+
import { AiViewType } from "./ai-view-type";
|
|
5
|
+
export { AiViewType } from "./ai-view-type";
|
|
6
|
+
export class AiView extends View {
|
|
7
|
+
component = null;
|
|
8
|
+
disposed = false;
|
|
9
|
+
mountGeneration = 0;
|
|
10
|
+
host;
|
|
11
|
+
constructor(leaf, host) {
|
|
12
|
+
super(leaf);
|
|
13
|
+
this.host = host;
|
|
14
|
+
}
|
|
15
|
+
getViewType() {
|
|
16
|
+
return AiViewType;
|
|
17
|
+
}
|
|
18
|
+
getDisplayText() {
|
|
19
|
+
return "AI";
|
|
20
|
+
}
|
|
21
|
+
getIcon() {
|
|
22
|
+
return "sparkles";
|
|
23
|
+
}
|
|
24
|
+
getBreadcrumbFilePath() {
|
|
25
|
+
const scopeDir = conversationLocationFromState(this.getState())
|
|
26
|
+
?.scopeDir.replace(/^\/+|\/+$/g, "")
|
|
27
|
+
.trim();
|
|
28
|
+
return scopeDir || null;
|
|
29
|
+
}
|
|
30
|
+
getBreadcrumbs() {
|
|
31
|
+
return [
|
|
32
|
+
{
|
|
33
|
+
id: "ai",
|
|
34
|
+
label: "AI",
|
|
35
|
+
onSelect: () => {
|
|
36
|
+
void this.host.revealConversationHistory();
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
];
|
|
40
|
+
}
|
|
41
|
+
onOpen() {
|
|
42
|
+
return Promise.resolve();
|
|
43
|
+
}
|
|
44
|
+
onClose() {
|
|
45
|
+
return Promise.resolve();
|
|
46
|
+
}
|
|
47
|
+
onload() {
|
|
48
|
+
this.disposed = false;
|
|
49
|
+
this.mountGeneration += 1;
|
|
50
|
+
this.mountPanel(this.mountGeneration);
|
|
51
|
+
}
|
|
52
|
+
onunload() {
|
|
53
|
+
this.disposed = true;
|
|
54
|
+
this.mountGeneration += 1;
|
|
55
|
+
if (this.component)
|
|
56
|
+
void unmount(this.component);
|
|
57
|
+
this.component = null;
|
|
58
|
+
}
|
|
59
|
+
async setState(state, result) {
|
|
60
|
+
const previous = conversationLocationFromState(this.getState());
|
|
61
|
+
await super.setState(state, result);
|
|
62
|
+
const next = conversationLocationFromState(state);
|
|
63
|
+
if (this.component && !sameLocation(previous, next)) {
|
|
64
|
+
// The first in-place assign from a send must not remount; remounting
|
|
65
|
+
// re-runs restore and drops the visible user message (LN-AI-120).
|
|
66
|
+
if (!previous && next)
|
|
67
|
+
return;
|
|
68
|
+
this.mountGeneration += 1;
|
|
69
|
+
const generation = this.mountGeneration;
|
|
70
|
+
await unmount(this.component);
|
|
71
|
+
this.component = null;
|
|
72
|
+
if (!this.disposed)
|
|
73
|
+
this.mountPanel(generation);
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
mountPanel(generation) {
|
|
77
|
+
const initialLocation = conversationLocationFromState(this.getState());
|
|
78
|
+
if (this.disposed ||
|
|
79
|
+
this.component ||
|
|
80
|
+
generation !== this.mountGeneration) {
|
|
81
|
+
return;
|
|
82
|
+
}
|
|
83
|
+
this.component = mount(AiViewPanel, {
|
|
84
|
+
target: this.containerEl,
|
|
85
|
+
props: {
|
|
86
|
+
app: this.app,
|
|
87
|
+
host: this.host,
|
|
88
|
+
workspaceLeaf: this.leaf,
|
|
89
|
+
initialLocation,
|
|
90
|
+
onConversationLocationChange: (location) => {
|
|
91
|
+
this.persistLocationHint(location);
|
|
92
|
+
},
|
|
93
|
+
},
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
persistLocationHint(location) {
|
|
97
|
+
const state = { ...this.getState() };
|
|
98
|
+
if (location) {
|
|
99
|
+
state.scopeDir = location.scopeDir;
|
|
100
|
+
state.conversationId = location.conversationId;
|
|
101
|
+
}
|
|
102
|
+
else {
|
|
103
|
+
delete state.scopeDir;
|
|
104
|
+
delete state.conversationId;
|
|
105
|
+
}
|
|
106
|
+
void super.setState(state);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
function conversationLocationFromState(state) {
|
|
110
|
+
return typeof state.scopeDir === "string" &&
|
|
111
|
+
typeof state.conversationId === "string"
|
|
112
|
+
? {
|
|
113
|
+
scopeDir: state.scopeDir,
|
|
114
|
+
conversationId: state.conversationId,
|
|
115
|
+
}
|
|
116
|
+
: null;
|
|
117
|
+
}
|
|
118
|
+
function sameLocation(left, right) {
|
|
119
|
+
return (left?.scopeDir === right?.scopeDir &&
|
|
120
|
+
left?.conversationId === right?.conversationId);
|
|
121
|
+
}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
import type { AgentRequest, AgentRuntime, AgentSession, AgentUsage, McpServerContribution, UserInputAnswers } from "../core/types";
|
|
2
|
+
import type { AutomaticMemoryRecall } from "../memory/types";
|
|
3
|
+
import type { AgentSessionStore } from "../sessions/session-store";
|
|
4
|
+
import type { CreateConversationInput } from "../conversations/conversation-repository";
|
|
5
|
+
import type { ConversationRepository } from "../conversations/conversation-repository";
|
|
6
|
+
import type { HandoffSummaryCoordinator } from "../conversations/handoff-summary";
|
|
7
|
+
import { type AgentBindingCreatedRecord, type ConversationLocation } from "../conversations/types";
|
|
8
|
+
import { type AiChatItem } from "./chat-items";
|
|
9
|
+
import type { AppToolBridgeCoordinator } from "../tools/desktop-app-tool-bridge";
|
|
10
|
+
import type { AppToolHost } from "../tools/app-tool-host";
|
|
11
|
+
import { SkillSnapshotStore, type SkillRegistry } from "../skills/registry";
|
|
12
|
+
import type { SkillDiscoveryContext } from "../skills/types";
|
|
13
|
+
import { SlashCommandRouter } from "../commands/router";
|
|
14
|
+
import type { ConversationListEntry } from "../conversations/transcript-store";
|
|
15
|
+
import type { AcpAgentId } from "../settings/acp-agents";
|
|
16
|
+
export declare class AiChatController {
|
|
17
|
+
#private;
|
|
18
|
+
items: AiChatItem[];
|
|
19
|
+
busy: boolean;
|
|
20
|
+
commandWorking: boolean;
|
|
21
|
+
error: string | null;
|
|
22
|
+
usage: AgentUsage | null;
|
|
23
|
+
appToolsUnavailableReason: string | null;
|
|
24
|
+
bindings: AgentBindingCreatedRecord[];
|
|
25
|
+
location: ConversationLocation | null;
|
|
26
|
+
conversationStatus: "active" | "archived" | null;
|
|
27
|
+
conversationPinned: boolean;
|
|
28
|
+
directoryContext: string;
|
|
29
|
+
pickerEntries: ConversationListEntry[];
|
|
30
|
+
session: AgentSession | null;
|
|
31
|
+
runtime: AgentRuntime;
|
|
32
|
+
readonly unavailableReason: string | null;
|
|
33
|
+
mcpServers: McpServerContribution[];
|
|
34
|
+
readonly store?: AgentSessionStore;
|
|
35
|
+
readonly repository?: ConversationRepository;
|
|
36
|
+
readonly sessionId: string;
|
|
37
|
+
readonly workspace?: string;
|
|
38
|
+
request: Omit<AgentRequest, "prompt">;
|
|
39
|
+
constructor(runtime: AgentRuntime, unavailableReason?: string | null, mcpServers?: McpServerContribution[], options?: {
|
|
40
|
+
store?: AgentSessionStore;
|
|
41
|
+
sessionId?: string;
|
|
42
|
+
workspace?: string;
|
|
43
|
+
request?: Omit<AgentRequest, "prompt">;
|
|
44
|
+
repository?: ConversationRepository;
|
|
45
|
+
location?: ConversationLocation | null;
|
|
46
|
+
createConversation?: (explicitFolder?: string) => CreateConversationInput;
|
|
47
|
+
onLocationChange?: (location: ConversationLocation | null) => void;
|
|
48
|
+
selectRuntime?: (request: AgentRequest) => Promise<AgentRuntime>;
|
|
49
|
+
appToolBridge?: AppToolBridgeCoordinator;
|
|
50
|
+
skills?: SkillRegistry;
|
|
51
|
+
skillSnapshots?: SkillSnapshotStore;
|
|
52
|
+
slashRouter?: SlashCommandRouter;
|
|
53
|
+
appToolHost?: AppToolHost;
|
|
54
|
+
skillContext?: () => SkillDiscoveryContext;
|
|
55
|
+
readVaultText?: (path: string) => Promise<string | undefined>;
|
|
56
|
+
memoryRecall?: AutomaticMemoryRecall;
|
|
57
|
+
handoffSummaries?: Pick<HandoffSummaryCoordinator, "afterTerminal">;
|
|
58
|
+
onComposerDefaults?: (next: {
|
|
59
|
+
agent: AcpAgentId;
|
|
60
|
+
runtimePreference: "acp" | "codex-native" | "fake";
|
|
61
|
+
}) => void;
|
|
62
|
+
});
|
|
63
|
+
restore(): Promise<void>;
|
|
64
|
+
openConversation(location: ConversationLocation): Promise<void>;
|
|
65
|
+
get activeBindingId(): string | undefined;
|
|
66
|
+
newConversation(input?: CreateConversationInput): Promise<void>;
|
|
67
|
+
archiveCurrent(archived?: boolean): Promise<void>;
|
|
68
|
+
relocateScope(oldPath: string, newPath: string): void;
|
|
69
|
+
deleteCurrent(): Promise<void>;
|
|
70
|
+
followDirectoryScope(scopeDir: string, options?: {
|
|
71
|
+
force?: boolean;
|
|
72
|
+
}): Promise<void>;
|
|
73
|
+
setPinned(pinned: boolean): Promise<void>;
|
|
74
|
+
submit(prompt: string, request?: Omit<AgentRequest, "prompt">): Promise<void>;
|
|
75
|
+
respondToApproval(requestId: string, optionId: string): Promise<void>;
|
|
76
|
+
respondToQuestion(requestId: string, answers: UserInputAnswers): Promise<void>;
|
|
77
|
+
cancel(): Promise<void>;
|
|
78
|
+
cancelAndSwitch(request: Omit<AgentRequest, "prompt">): Promise<void>;
|
|
79
|
+
close(): Promise<void>;
|
|
80
|
+
refreshSkills(): Promise<void>;
|
|
81
|
+
syncComposerCommands(): Promise<void>;
|
|
82
|
+
}
|