@otto-code/client 0.8.19 → 0.9.2
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/agent-import-input.d.ts +20 -0
- package/dist/agent-import-input.js +2 -0
- package/dist/create-agent-config.d.ts +4 -0
- package/dist/create-agent-config.js +18 -0
- package/dist/daemon-client.d.ts +341 -88
- package/dist/daemon-client.js +584 -109
- package/dist/fetch-agent-options.d.ts +7 -0
- package/dist/fetch-agent-options.js +12 -0
- package/dist/index.d.ts +7 -1
- package/dist/index.js +10 -4
- package/package.json +3 -3
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { AgentProvider } from "@otto-code/protocol/agent-types";
|
|
2
|
+
interface ImportAgentInputBase {
|
|
3
|
+
cwd?: string;
|
|
4
|
+
/**
|
|
5
|
+
* Workspace the import was requested from. Supply it whenever the caller has
|
|
6
|
+
* one, so the imported session lands in that workspace instead of the daemon
|
|
7
|
+
* resolving (or minting) another workspace for the same directory.
|
|
8
|
+
*/
|
|
9
|
+
workspaceId?: string;
|
|
10
|
+
labels?: Record<string, string>;
|
|
11
|
+
}
|
|
12
|
+
export type ImportAgentInput = (ImportAgentInputBase & {
|
|
13
|
+
providerId: string;
|
|
14
|
+
providerHandleId: string;
|
|
15
|
+
}) | (ImportAgentInputBase & {
|
|
16
|
+
provider: AgentProvider;
|
|
17
|
+
sessionId: string;
|
|
18
|
+
});
|
|
19
|
+
export {};
|
|
20
|
+
//# sourceMappingURL=agent-import-input.d.ts.map
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import type { AgentSessionConfig } from "@otto-code/protocol/agent-types";
|
|
2
|
+
import type { CreateAgentRequestOptions } from "./daemon-client.js";
|
|
3
|
+
export declare function resolveAgentConfig(options: CreateAgentRequestOptions): AgentSessionConfig;
|
|
4
|
+
//# sourceMappingURL=create-agent-config.d.ts.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function resolveAgentConfig(options) {
|
|
2
|
+
const { config, provider, cwd, env: _env, workspaceId: _workspaceId, initialPrompt: _initialPrompt, images: _images, git: _git, worktreeName: _worktreeName, requestId: _requestId, labels: _labels, ...overrides } = options;
|
|
3
|
+
const baseConfig = {
|
|
4
|
+
...(provider ? { provider } : {}),
|
|
5
|
+
...(cwd ? { cwd } : {}),
|
|
6
|
+
...overrides,
|
|
7
|
+
};
|
|
8
|
+
const merged = config ? { ...baseConfig, ...config } : baseConfig;
|
|
9
|
+
if (!merged.provider || !merged.cwd) {
|
|
10
|
+
throw new Error("createAgent requires provider and cwd");
|
|
11
|
+
}
|
|
12
|
+
return {
|
|
13
|
+
...merged,
|
|
14
|
+
provider: merged.provider,
|
|
15
|
+
cwd: merged.cwd,
|
|
16
|
+
};
|
|
17
|
+
}
|
|
18
|
+
//# sourceMappingURL=create-agent-config.js.map
|
package/dist/daemon-client.d.ts
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
|
+
import { type FetchAgentOptions } from "./fetch-agent-options.js";
|
|
2
|
+
export type { FetchAgentOptions } from "./fetch-agent-options.js";
|
|
1
3
|
import type { AgentAttentionNotificationPayload } from "@otto-code/protocol/agent-attention-notification";
|
|
2
4
|
import type { z } from "zod";
|
|
3
5
|
import type { ProjectGithubCloneProtocol } from "@otto-code/protocol/messages";
|
|
4
6
|
import { type ClientCapability } from "@otto-code/protocol/client-capabilities";
|
|
5
|
-
import { AgentRefreshedStatusPayloadSchema, CheckoutRenameBranchResponseSchema, RenameTerminalResponseSchema, RestartRequestedStatusPayloadSchema, ShutdownRequestedStatusPayloadSchema, DaemonUpdateResponseSchema, type ServerInfoStatusPayload } from "@otto-code/protocol/messages";
|
|
6
|
-
import type { AgentStreamEventPayload, AgentSnapshotPayload, ProjectPlacementPayload, AgentPermissionResolvedMessage, CreateAgentRequestMessage, CreateOttoWorktreeRequest, CodeListFilesResponse, CodeSymbolLocation, CodeDefinitionLocation, CodeDefinitionStatus, CodeRenameApplyStatus, CodeRenameFileOutcome, CodeRenameUndoFile, CodeRenameUndoStatus, CodeHoverRange, CodeRenameEdit, CodeRenameFilePlan, LspLanguageState, LspRunningServer, CodeSolutionGetTreeResponse, CodeSolutionLoadProjectResponse, SolutionFormat, SolutionRef, SolutionTreeFolder, SolutionTreeProject, SolutionProjectNode, SolutionProjectStatus, SolutionPackageReference, FileDownloadTokenResponse, FileEntryKind, FileEol, FileReplaceFileResult, FileReplaceRequest, FileReplaceResponse, FileSearchResultPayload, FileSearchSummary, FileUploadResponse, FileExplorerResponse, FileWatchEventPayload, FileWriteResult, FileRefineResult, FileRefineDocument, FileRefineReference, FetchAgentTimelineResponseMessage, AgentForkContextResponseMessage, GitSetupOptions, CheckoutStatusResponse, CheckoutCommitResponse, CheckoutGitCommitResponse, CheckoutGitCommitAgentResponse, CheckoutGitRollbackResponse, CheckoutGitFileHistoryResponse, CheckoutGitFileCommitDiffResponse, CheckoutGitFileBlameResponse, CheckoutGitFileOriginResponse, CheckoutGitGetOperationLogResponse, CheckoutMergeResponse, CheckoutMergeFromBaseResponse, CheckoutPullResponse, CheckoutPushResponse, CheckoutRefreshResponse, CheckoutGitFetchResponse, CheckoutPrCreateResponse, CheckoutPrMergeResponse, CheckoutPrMergeMethod, CheckoutGithubSetAutoMergeResponse, CheckoutGithubGetCheckDetailsResponse, PreviewListConfigResponse, PreviewStartResponse, PreviewBindTabResponse, PreviewStopResponse, CheckoutPrStatusResponse, PullRequestTimelineResponse, HostingPullRequestThreadSetResolvedResponse, HostingPullRequestCommentSetReactionResponse, CheckoutSwitchBranchResponse, StashSaveResponse, StashPopResponse, StashListResponse, KanbanBoardsListResponse, ProjectKanbanTarget, ProjectKnowledgeStoreDescriptor, ProjectKnowledgeStoreLocationValue, KanbanBoardGetResponse, KanbanCardMoveResponse, KanbanCardCreateResponse, KanbanTaskLinkResponse, ValidateBranchResponse, BranchSuggestionsResponse, FileVersion, CheckoutCommit, ParsedDiffFile, WorkspaceRecoveryState, CheckoutForgeGetCheckDetailsResponse, CheckoutForgeSetAutoMergeResponse, ProjectCreateDirectoryResponse, FsFileWriteResult, FsFileWriteBinaryResult, GitHubSearchResponse, GitHubSearchRequest, ForgeSearchResponse, ForgeSearchRequest, GitHostingProviderId, HostingSearchRequest, HostingSearchResponse, HostingAuthStatusResponse, DirectorySuggestionsResponse, OttoWorktreeListResponse, OttoWorktreeArchiveResponse, ProjectIconSource, ProjectIconResponse, ContextCategory, ContextPromptPreviewGetResponseMessage, ContextReportGetResponseMessage, ContextEdgeConvertResponseMessage, ContextFindingsFixResponseMessage, PersonalityMemoryListResponseMessage, PersonalityMemoryUpdateResponseMessage, PersonalityMemoryTransferResponseMessage, PersonalityMemoryStatsResponseMessage, ProjectKnowledgeListResponseMessage, ProjectKnowledgeGetResponseMessage, ProjectKnowledgeCreateResponseMessage, ProjectKnowledgeApplyResponseMessage, ProjectKnowledgeStatusResponseMessage, ProjectKnowledgeProjectApplyResponseMessage, ProjectKnowledgeReferenceApplyResponseMessage, ProjectKnowledgeRootApplyResponseMessage, ProjectKnowledgeRefineApplyResponseMessage, ProjectKnowledgeRefinementProposeResponseMessage, ProjectKnowledgeDeleteResponseMessage, ProjectIconGetResponse, ProjectAddResponse, ProjectResolveWorkspaceForPathResponse, ProjectScaffoldGit, ProjectScaffoldProgress, ProjectScaffoldResponse, HostingListRepositoriesResponse, HostingListOwnersResponse, OpenProjectResponseMessage, ArchiveWorkspaceResponseMessage, WorkspaceArchivePreflightResponse, WorktreeBaseRefSetResponse, WorktreeReattachListResponse, WorktreeReattachResponse, WorktreeReattachTarget, WorkspaceSetupStatusResponseMessage, ListCommandsResponse, ListProviderFeaturesResponseMessage, ListProviderModelsResponseMessage, ListProviderModesResponseMessage, ListAvailableProvidersResponse, GetProvidersSnapshotResponseMessage, RefreshProvidersSnapshotResponseMessage, ProviderDiagnosticResponseMessage, ProviderUsageListResponseMessage, StatsActivityGetResponseMessage, StatsActivityResetResponseMessage, UsageLogGetResponseMessage, AgentContextGetUsageResponseMessage, DaemonGetStatusResponse, DaemonGetPairingOfferResponse, DiagnosticsResponse, AgentRewindResponseMessage, ListTerminalsResponse, CreateTerminalResponse, SubscribeTerminalResponse, SubscribeTerminalRequest, CloseItemsResponse, AttachmentsImagesClearResponse, AttachmentsImagesStatsResponse, HistoryAgentsClearArchivedResponse, HistoryAgentsStorageStatsResponse, KillTerminalResponse, CaptureTerminalResponse, TerminalCompatibilityDiagnosticResponse, TerminalInput, SessionInboundMessage, SessionOutboundMessage, SendAgentMessageRequest, AgentPromptDelivery, TasksSuggestedStartMode, OttoConfigRaw, OttoConfigRevision, WorkspaceCreateRequest } from "@otto-code/protocol/messages";
|
|
7
|
+
import { AgentRefreshedStatusPayloadSchema, CheckoutRenameBranchResponseSchema, RenameTerminalResponseSchema, RestartRequestedStatusPayloadSchema, ShutdownRequestedStatusPayloadSchema, DaemonUpdateResponseSchema, type ActiveTurnBehavior, type ServerInfoStatusPayload } from "@otto-code/protocol/messages";
|
|
8
|
+
import type { AgentStreamEventPayload, AgentSnapshotPayload, ProjectPlacementPayload, AgentPermissionResolvedMessage, CreateAgentRequestMessage, CreateOttoWorktreeRequest, CodeListFilesResponse, CodeSymbolLocation, CodeDefinitionLocation, CodeDefinitionStatus, CodeRenameApplyStatus, CodeRenameFileOutcome, CodeRenameUndoFile, CodeRenameUndoStatus, CodeHoverRange, CodeRenameEdit, CodeRenameFilePlan, LspLanguageState, LspRunningServer, CodeSolutionGetTreeResponse, CodeSolutionLoadProjectResponse, SolutionFormat, SolutionRef, SolutionTreeFolder, SolutionTreeProject, SolutionProjectNode, SolutionProjectStatus, SolutionPackageReference, FileDownloadTokenResponse, FileEntryKind, FileEol, FileReplaceFileResult, FileReplaceRequest, FileReplaceResponse, FileSearchResultPayload, FileSearchSummary, FileUploadResponse, FileExplorerResponse, FileWatchEventPayload, FileWriteResult, FileRefineResult, FileRefineDocument, FileRefineReference, FetchAgentTimelineResponseMessage, AgentForkContextResponseMessage, GitSetupOptions, CheckoutStatusResponse, CheckoutCommitResponse, CheckoutGitCommitResponse, CheckoutGitCommitAgentResponse, CheckoutGitRollbackResponse, CheckoutGitFileHistoryResponse, CheckoutGitFileCommitDiffResponse, CheckoutGitFileBlameResponse, CheckoutGitFileOriginResponse, CheckoutGitGetOperationLogResponse, CheckoutMergeResponse, CheckoutMergeFromBaseResponse, CheckoutPullResponse, CheckoutPushResponse, CheckoutRefreshResponse, CheckoutGitFetchResponse, CheckoutPrCreateResponse, CheckoutPrMergeResponse, CheckoutPrMergeMethod, CheckoutGithubSetAutoMergeResponse, CheckoutGithubGetCheckDetailsResponse, PreviewListConfigResponse, PreviewStartResponse, PreviewBindTabResponse, PreviewStopResponse, CheckoutPrStatusResponse, PullRequestTimelineResponse, HostingPullRequestThreadSetResolvedResponse, HostingPullRequestCommentSetReactionResponse, CheckoutSwitchBranchResponse, StashSaveResponse, StashPopResponse, StashListResponse, KanbanBoardsListResponse, ProjectKanbanTarget, ProjectKnowledgeStoreDescriptor, ProjectKnowledgeStoreLocationValue, KanbanBoardGetResponse, KanbanCardMoveResponse, KanbanCardCreateResponse, KanbanTaskLinkResponse, ValidateBranchResponse, BranchSuggestionsResponse, FileVersion, CheckoutCommit, ParsedDiffFile, WorkspaceRecoveryState, CheckoutForgeGetCheckDetailsResponse, CheckoutForgeSetAutoMergeResponse, ProjectCreateDirectoryResponse, FsFileWriteResult, FsFileWriteBinaryResult, GitHubSearchResponse, GitHubSearchRequest, ForgeSearchResponse, ForgeSearchRequest, GitHostingProviderId, HostingSearchRequest, HostingSearchResponse, HostingAuthStatusResponse, DirectorySuggestionsResponse, OttoWorktreeListResponse, OttoWorktreeArchiveResponse, ProjectIconSource, ProjectIconResponse, ContextCategory, ContextPromptPreviewGetResponseMessage, ContextReportGetResponseMessage, ContextEdgeConvertResponseMessage, ContextFindingsFixResponseMessage, PersonalityMemoryListResponseMessage, PersonalityMemoryUpdateResponseMessage, PersonalityMemoryTransferResponseMessage, PersonalityMemoryStatsResponseMessage, ProjectKnowledgeListResponseMessage, ProjectKnowledgeGetResponseMessage, ProjectKnowledgeRootGetResponseMessage, ProjectKnowledgeCreateResponseMessage, ProjectKnowledgeApplyResponseMessage, ProjectKnowledgeStatusResponseMessage, ProjectKnowledgeProjectApplyResponseMessage, ProjectKnowledgeReferenceApplyResponseMessage, ProjectKnowledgeRootApplyResponseMessage, ProjectKnowledgeRefineApplyResponseMessage, ProjectKnowledgeRefinementProposeResponseMessage, ProjectKnowledgeDeleteResponseMessage, ProjectIconGetResponse, ProjectAddResponse, ProjectResolveWorkspaceForPathResponse, ProjectScaffoldGit, ProjectScaffoldProgress, ProjectScaffoldResponse, HostingListRepositoriesResponse, HostingListOwnersResponse, OpenProjectResponseMessage, ArchiveWorkspaceResponseMessage, WorkspaceArchivePreflightResponse, WorktreeBaseRefSetResponse, WorktreeReattachListResponse, WorktreeReattachResponse, WorktreeReattachTarget, WorkspaceSetupStatusResponseMessage, ListCommandsResponse, ListProviderFeaturesResponseMessage, ListProviderModelsResponseMessage, ListProviderModesResponseMessage, ListAvailableProvidersResponse, GetProvidersSnapshotResponseMessage, RefreshProvidersSnapshotResponseMessage, ProviderDiagnosticResponseMessage, ProviderUsageListResponseMessage, StatsActivityGetResponseMessage, StatsActivityResetResponseMessage, UsageLogGetResponseMessage, AgentContextGetUsageResponseMessage, DaemonGetStatusResponse, DaemonGetPairingOfferResponse, DaemonConfigReloadResponse, DiagnosticsResponse, AgentRewindResponseMessage, ListTerminalsResponse, CreateTerminalResponse, SubscribeTerminalResponse, SubscribeTerminalRequest, CloseItemsResponse, AttachmentsImagesClearResponse, AttachmentsImagesStatsResponse, HistoryAgentsClearArchivedResponse, HistoryAgentsStorageStatsResponse, KillTerminalResponse, CaptureTerminalResponse, TerminalCompatibilityDiagnosticResponse, TerminalInput, SessionInboundMessage, SessionOutboundMessage, SendAgentMessageRequest, AgentPromptDelivery, TasksSuggestedStartMode, OttoConfigRaw, OttoConfigRevision, WorkspaceCreateRequest, PluginListItem, PluginLogEntry, AgentSkillSelection, AgentSkillsStatus, AgentSkillsSaveResult } from "@otto-code/protocol/messages";
|
|
7
9
|
import type { AgentPermissionRequest, AgentPermissionResponse, AgentPersistenceHandle, AgentProviderNotice, AgentProvider, AgentSessionConfig } from "@otto-code/protocol/agent-types";
|
|
8
|
-
import type { OrchestrationGraph, PromptTemplate, Run } from "@otto-code/protocol/
|
|
10
|
+
import type { OrchestrationGraph, PromptTemplate, Run, WorkflowStartConfirmation } from "@otto-code/protocol/workflow";
|
|
9
11
|
import type { BrainCatalogModel, BrainDiskUsage, BrainEvals, BrainHfSearchResult, BrainHostStatus, BrainInstalledModel, BrainInventoryModel, BrainJob, BrainLogsTailResponse, BrainLogsWatchResponse, BrainModelBudgetGetResponse, BrainModelDeleteResponse, BrainModelLoadResponse, BrainModelProfileGetResponse, BrainModelProfileSetResponse, BrainModelRenameResetResponse, BrainModelRenameResponse, BrainNetworkInfo, BrainRemoteConfig, BrainRepoQuant, BrainRuntime, ConnectorsListToolsResponse, ConnectorsOauthAuthorizeResponse, ConnectorsOauthDisconnectResponse, CommunicationsGetOverviewResponse, CommunicationsInboxGetHomeResponse, CommunicationsInboxNotificationsAcknowledgeResponse, CommunicationsInboxSearchResponse, CommunicationsInboxSetFavoriteResponse, CommunicationsInboxGetPresenceResponse, CommunicationsInboxGetMessagesResponse, CommunicationsInboxSetPresenceResponse, CommunicationsInboxSetEnabledResponse, CommunicationsInboxSendMessageResponse, CommunicationsRoomGetResponse, CommunicationsRoomThreadGetResponse, CommunicationsRoomMessageSendResponse, CommunicationsRoomReactionSetResponse, IntegrationsAuthorizationGetOverviewResponse, IntegrationsAuthorizationGetMethodsResponse, IntegrationsAuthorizationStartBrowserResponse, IntegrationsZoomStartAuthorizationResponse, CueMoment, MutableDaemonConfig, MutableDaemonConfigPatch, SpeechSettingsOptions, SpeechTtsPreviewResult, SpeechTtsSpeakResult, SpeechTtsSpeakCancelResult, VisualizerVoiceCuesResult, AgentPersonalitiesGenerateProfileResult } from "@otto-code/protocol/messages";
|
|
10
12
|
import type { AgentConfigApply } from "@otto-code/protocol/messages";
|
|
11
13
|
import { type DaemonTransportFactory, type WebSocketFactory } from "./daemon-client-transport.js";
|
|
@@ -19,23 +21,8 @@ export interface Logger {
|
|
|
19
21
|
warn(obj: object, msg?: string): void;
|
|
20
22
|
error(obj: object, msg?: string): void;
|
|
21
23
|
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Workspace the import was requested from. Supply it whenever the caller has
|
|
26
|
-
* one, so the imported session lands in that workspace instead of the daemon
|
|
27
|
-
* resolving (or minting) another workspace for the same directory.
|
|
28
|
-
*/
|
|
29
|
-
workspaceId?: string;
|
|
30
|
-
labels?: Record<string, string>;
|
|
31
|
-
}
|
|
32
|
-
export type ImportAgentInput = (ImportAgentInputBase & {
|
|
33
|
-
providerId: string;
|
|
34
|
-
providerHandleId: string;
|
|
35
|
-
}) | (ImportAgentInputBase & {
|
|
36
|
-
provider: AgentProvider;
|
|
37
|
-
sessionId: string;
|
|
38
|
-
});
|
|
24
|
+
import type { ImportAgentInput } from "./agent-import-input.js";
|
|
25
|
+
export type { ImportAgentInput } from "./agent-import-input.js";
|
|
39
26
|
export type { DaemonTransport, DaemonTransportFactory, WebSocketFactory, WebSocketLike, } from "./daemon-client-transport.js";
|
|
40
27
|
export type { TerminalStreamEvent };
|
|
41
28
|
export type ConnectionState = {
|
|
@@ -139,6 +126,7 @@ export interface DaemonClientTrace {
|
|
|
139
126
|
}
|
|
140
127
|
export interface SendMessageOptions {
|
|
141
128
|
messageId?: string;
|
|
129
|
+
activeTurnBehavior?: ActiveTurnBehavior;
|
|
142
130
|
images?: Array<{
|
|
143
131
|
data: string;
|
|
144
132
|
mimeType: string;
|
|
@@ -166,6 +154,10 @@ export interface CreateAgentRequestOptions extends AgentConfigOverrides {
|
|
|
166
154
|
personality?: CreateAgentRequestMessage["personality"];
|
|
167
155
|
env?: CreateAgentRequestMessage["env"];
|
|
168
156
|
workspaceId?: string;
|
|
157
|
+
architecturalViewDraft?: {
|
|
158
|
+
viewId: string;
|
|
159
|
+
draftId: string;
|
|
160
|
+
};
|
|
169
161
|
/**
|
|
170
162
|
* Caller agent making this request. The daemon resolves the caller's own
|
|
171
163
|
* workspace and parentage from it, so a managed CLI run nests under its
|
|
@@ -229,9 +221,6 @@ type GitHubSearchPayload = GitHubSearchResponse["payload"];
|
|
|
229
221
|
type CheckoutForgeGetCheckDetailsPayload = CheckoutForgeGetCheckDetailsResponse["payload"];
|
|
230
222
|
type CheckoutForgeSetAutoMergePayload = CheckoutForgeSetAutoMergeResponse["payload"];
|
|
231
223
|
export type ProjectCreateDirectoryPayload = ProjectCreateDirectoryResponse["payload"];
|
|
232
|
-
export type ProjectListPayload = Extract<SessionOutboundMessage, {
|
|
233
|
-
type: "project.list.response";
|
|
234
|
-
}>["payload"];
|
|
235
224
|
export type WorkspaceGithubSearchRepositoriesPayload = Extract<SessionOutboundMessage, {
|
|
236
225
|
type: "workspace.github.search_repositories.response";
|
|
237
226
|
}>["payload"];
|
|
@@ -542,16 +531,50 @@ type ArtifactStarPayload = Extract<SessionOutboundMessage, {
|
|
|
542
531
|
type ArtifactGetContentPayload = Extract<SessionOutboundMessage, {
|
|
543
532
|
type: "artifact.get-content.response";
|
|
544
533
|
}>["payload"];
|
|
534
|
+
type ArtifactRepairPayload = Extract<SessionOutboundMessage, {
|
|
535
|
+
type: "artifact.repair.response";
|
|
536
|
+
}>["payload"];
|
|
537
|
+
type ArtifactDataGetPayload = Extract<SessionOutboundMessage, {
|
|
538
|
+
type: "artifact.data.get.response";
|
|
539
|
+
}>["payload"];
|
|
540
|
+
type ArtifactDataUpdatePayload = Extract<SessionOutboundMessage, {
|
|
541
|
+
type: "artifact.data.update.response";
|
|
542
|
+
}>["payload"];
|
|
543
|
+
type ArtifactStoreMovePayload = Extract<SessionOutboundMessage, {
|
|
544
|
+
type: "artifact.store.move.response";
|
|
545
|
+
}>["payload"];
|
|
546
|
+
type ArchitecturalViewsDeliverPayload = Extract<SessionOutboundMessage, {
|
|
547
|
+
type: "architectural-views.deliver.response";
|
|
548
|
+
}>["payload"];
|
|
549
|
+
type ArchitecturalViewsListPayload = Extract<SessionOutboundMessage, {
|
|
550
|
+
type: "architectural-views.list.response";
|
|
551
|
+
}>["payload"];
|
|
552
|
+
type ArchitecturalViewsGetContentPayload = Extract<SessionOutboundMessage, {
|
|
553
|
+
type: "architectural-views.get-content.response";
|
|
554
|
+
}>["payload"];
|
|
555
|
+
type ArchitecturalViewsDraftCreatePayload = Extract<SessionOutboundMessage, {
|
|
556
|
+
type: "architectural-views.draft.create.response";
|
|
557
|
+
}>["payload"];
|
|
558
|
+
type ArchitecturalViewsDraftUpdatePayload = Extract<SessionOutboundMessage, {
|
|
559
|
+
type: "architectural-views.draft.update.response";
|
|
560
|
+
}>["payload"];
|
|
561
|
+
type ArchitecturalViewsDraftPublishPayload = Extract<SessionOutboundMessage, {
|
|
562
|
+
type: "architectural-views.draft.publish.response";
|
|
563
|
+
}>["payload"];
|
|
564
|
+
type ArchitecturalViewsDraftDiscardPayload = Extract<SessionOutboundMessage, {
|
|
565
|
+
type: "architectural-views.draft.discard.response";
|
|
566
|
+
}>["payload"];
|
|
567
|
+
type ArchitecturalViewsDraftGetContentPayload = Extract<SessionOutboundMessage, {
|
|
568
|
+
type: "architectural-views.draft.get-content.response";
|
|
569
|
+
}>["payload"];
|
|
570
|
+
type ArchitecturalViewsDraftListPayload = Extract<SessionOutboundMessage, {
|
|
571
|
+
type: "architectural-views.draft.list.response";
|
|
572
|
+
}>["payload"];
|
|
545
573
|
export type FetchAgentTimelinePayload = FetchAgentTimelineResponseMessage["payload"];
|
|
546
574
|
export type AgentForkContextPayload = AgentForkContextResponseMessage["payload"];
|
|
547
575
|
export type FetchAgentTimelineDirection = FetchAgentTimelinePayload["direction"];
|
|
548
576
|
export type FetchAgentTimelineProjection = FetchAgentTimelinePayload["projection"];
|
|
549
577
|
export type FetchAgentTimelineCursor = NonNullable<FetchAgentTimelinePayload["startCursor"]>;
|
|
550
|
-
export interface FetchAgentOptions {
|
|
551
|
-
agentId: string;
|
|
552
|
-
requestId?: string;
|
|
553
|
-
timeout?: number;
|
|
554
|
-
}
|
|
555
578
|
type LegacyFetchAgentOptions = Omit<FetchAgentOptions, "agentId">;
|
|
556
579
|
export interface FetchAgentTimelineOptions {
|
|
557
580
|
direction?: FetchAgentTimelineDirection;
|
|
@@ -559,6 +582,7 @@ export interface FetchAgentTimelineOptions {
|
|
|
559
582
|
limit?: number;
|
|
560
583
|
projection?: FetchAgentTimelineProjection;
|
|
561
584
|
mergeWindow?: boolean;
|
|
585
|
+
includePromptIndex?: boolean;
|
|
562
586
|
requestId?: string;
|
|
563
587
|
timeout?: number;
|
|
564
588
|
}
|
|
@@ -643,6 +667,30 @@ export type FetchWorkspacesOptions = Omit<FetchWorkspacesRequest, "type" | "requ
|
|
|
643
667
|
};
|
|
644
668
|
export type FetchWorkspacesEntry = FetchWorkspacesPayload["entries"][number];
|
|
645
669
|
export type FetchWorkspacesPageInfo = FetchWorkspacesPayload["pageInfo"];
|
|
670
|
+
export type WorkspaceLabelListPayload = Extract<SessionOutboundMessage, {
|
|
671
|
+
type: "workspace.label.list.response";
|
|
672
|
+
}>["payload"];
|
|
673
|
+
export type WorkspaceLabelAssignmentPayload = Extract<SessionOutboundMessage, {
|
|
674
|
+
type: "workspace.label.assignment.set.response";
|
|
675
|
+
}>["payload"];
|
|
676
|
+
export type WorkspaceLabelUpdatePayload = Extract<SessionOutboundMessage, {
|
|
677
|
+
type: "workspace.label.update.response";
|
|
678
|
+
}>["payload"];
|
|
679
|
+
export type WorkspaceLabelDeletePayload = Extract<SessionOutboundMessage, {
|
|
680
|
+
type: "workspace.label.delete.response";
|
|
681
|
+
}>["payload"];
|
|
682
|
+
export type WorkspaceLabelDeleteInspectPayload = Extract<SessionOutboundMessage, {
|
|
683
|
+
type: "workspace.label.delete.inspect.response";
|
|
684
|
+
}>["payload"];
|
|
685
|
+
export type ProjectListPayload = Extract<SessionOutboundMessage, {
|
|
686
|
+
type: "project.list.response";
|
|
687
|
+
}>["payload"];
|
|
688
|
+
type ProjectListRequest = Extract<SessionInboundMessage, {
|
|
689
|
+
type: "project.list.request";
|
|
690
|
+
}>;
|
|
691
|
+
export type ProjectListOptions = Omit<ProjectListRequest, "type" | "requestId"> & {
|
|
692
|
+
requestId?: string;
|
|
693
|
+
};
|
|
646
694
|
export interface CreateScheduleOptions {
|
|
647
695
|
prompt: string;
|
|
648
696
|
name?: string | null;
|
|
@@ -677,6 +725,10 @@ export interface CreateScheduleOptions {
|
|
|
677
725
|
systemPrompt?: string;
|
|
678
726
|
mcpServers?: AgentSessionConfig["mcpServers"];
|
|
679
727
|
};
|
|
728
|
+
} | {
|
|
729
|
+
type: "workflow";
|
|
730
|
+
definitionId: string;
|
|
731
|
+
projectRoot: string;
|
|
680
732
|
};
|
|
681
733
|
maxRuns?: number;
|
|
682
734
|
expiresAt?: string;
|
|
@@ -768,6 +820,30 @@ type CorrelatedResponsePayload<TType extends CorrelatedResponseType> = Extract<C
|
|
|
768
820
|
type ProjectGithubClonePayload = Extract<SessionOutboundMessage, {
|
|
769
821
|
type: "project.github.clone.response";
|
|
770
822
|
}>["payload"];
|
|
823
|
+
export interface StartWorkflowInput {
|
|
824
|
+
flavor: "ai" | "graph";
|
|
825
|
+
cwd: string;
|
|
826
|
+
workspaceId?: string;
|
|
827
|
+
title?: string;
|
|
828
|
+
description?: string;
|
|
829
|
+
orchestratorPersonalityId?: string;
|
|
830
|
+
orchestratorProvider?: string;
|
|
831
|
+
orchestratorModel?: string;
|
|
832
|
+
orchestratorThinkingOptionId?: string;
|
|
833
|
+
prompt?: string;
|
|
834
|
+
graphId?: string;
|
|
835
|
+
graphInputs?: Record<string, string>;
|
|
836
|
+
startConfirmationToken?: string;
|
|
837
|
+
draft?: boolean;
|
|
838
|
+
runId?: string;
|
|
839
|
+
}
|
|
840
|
+
export interface WorkflowStartResult {
|
|
841
|
+
runId?: string;
|
|
842
|
+
agentId?: string;
|
|
843
|
+
workspaceId?: string;
|
|
844
|
+
confirmation?: WorkflowStartConfirmation;
|
|
845
|
+
confirmationToken?: string;
|
|
846
|
+
}
|
|
771
847
|
export declare class DaemonClient {
|
|
772
848
|
private config;
|
|
773
849
|
private transport;
|
|
@@ -896,6 +972,39 @@ export declare class DaemonClient {
|
|
|
896
972
|
getHistoryStorageStats(requestId?: string): Promise<HistoryAgentsStorageStatsResponse["payload"]>;
|
|
897
973
|
fetchRecentProviderSessions(options?: FetchRecentProviderSessionsOptions): Promise<FetchRecentProviderSessionsPayload>;
|
|
898
974
|
fetchWorkspaces(options?: FetchWorkspacesOptions): Promise<FetchWorkspacesPayload>;
|
|
975
|
+
listWorkspaceLabels(options: {
|
|
976
|
+
subscriptionId: string;
|
|
977
|
+
sync?: {
|
|
978
|
+
generation: string;
|
|
979
|
+
afterSeq: number;
|
|
980
|
+
};
|
|
981
|
+
requestId?: string;
|
|
982
|
+
}): Promise<WorkspaceLabelListPayload>;
|
|
983
|
+
setWorkspaceLabel(options: {
|
|
984
|
+
workspaceId: string;
|
|
985
|
+
label: Extract<SessionInboundMessage, {
|
|
986
|
+
type: "workspace.label.assignment.set.request";
|
|
987
|
+
}>["label"];
|
|
988
|
+
assigned: boolean;
|
|
989
|
+
requestId?: string;
|
|
990
|
+
}): Promise<WorkspaceLabelAssignmentPayload>;
|
|
991
|
+
updateWorkspaceLabel(options: {
|
|
992
|
+
name: string;
|
|
993
|
+
newName?: string;
|
|
994
|
+
color?: Extract<SessionInboundMessage, {
|
|
995
|
+
type: "workspace.label.update.request";
|
|
996
|
+
}>["color"];
|
|
997
|
+
requestId?: string;
|
|
998
|
+
}): Promise<WorkspaceLabelUpdatePayload>;
|
|
999
|
+
deleteWorkspaceLabel(options: {
|
|
1000
|
+
name: string;
|
|
1001
|
+
requestId?: string;
|
|
1002
|
+
}): Promise<WorkspaceLabelDeletePayload>;
|
|
1003
|
+
inspectWorkspaceLabelDelete(options: {
|
|
1004
|
+
name: string;
|
|
1005
|
+
requestId?: string;
|
|
1006
|
+
}): Promise<WorkspaceLabelDeleteInspectPayload>;
|
|
1007
|
+
listProjects(options?: string | ProjectListOptions): Promise<ProjectListPayload>;
|
|
899
1008
|
openProject(cwd: string, requestId?: string): Promise<OpenProjectPayload>;
|
|
900
1009
|
addProject(cwd: string, requestId?: string): Promise<ProjectAddPayload>;
|
|
901
1010
|
resolveWorkspaceForPath(path: string, requestId?: string): Promise<ProjectResolveWorkspaceForPathResponse["payload"]>;
|
|
@@ -1002,7 +1111,10 @@ export declare class DaemonClient {
|
|
|
1002
1111
|
* a single-element array; the "Start all" collective action passes the whole
|
|
1003
1112
|
* pending queue. Resolves to the count started; throws only if all failed.
|
|
1004
1113
|
*/
|
|
1005
|
-
startSuggestedTasks(parentAgentId: string, taskIds: readonly string[], mode: TasksSuggestedStartMode
|
|
1114
|
+
startSuggestedTasks(parentAgentId: string, taskIds: readonly string[], mode: TasksSuggestedStartMode, launch?: {
|
|
1115
|
+
provider: string;
|
|
1116
|
+
model: string;
|
|
1117
|
+
}): Promise<{
|
|
1006
1118
|
succeeded: number;
|
|
1007
1119
|
failed: number;
|
|
1008
1120
|
}>;
|
|
@@ -1028,40 +1140,46 @@ export declare class DaemonClient {
|
|
|
1028
1140
|
deleteRun(runId: string): Promise<string>;
|
|
1029
1141
|
/** Orchestration: list the host's reusable graph templates. */
|
|
1030
1142
|
listOrchestrationGraphs(): Promise<OrchestrationGraph[]>;
|
|
1143
|
+
/** List saved Workflow Graphs for one project, never the legacy host library. */
|
|
1144
|
+
listProjectWorkflowGraphs(cwd: string): Promise<OrchestrationGraph[]>;
|
|
1145
|
+
/** Persist a Graph in the selected project Workflow store. */
|
|
1146
|
+
saveProjectWorkflowGraph(cwd: string, graph: OrchestrationGraph): Promise<OrchestrationGraph>;
|
|
1031
1147
|
/** Orchestration: upsert a graph template. Returns the persisted graph. */
|
|
1032
1148
|
saveOrchestrationGraph(graph: OrchestrationGraph): Promise<OrchestrationGraph>;
|
|
1033
1149
|
/** Orchestration: delete a graph template (built-in starters refuse). */
|
|
1034
1150
|
deleteOrchestrationGraph(graphId: string): Promise<boolean>;
|
|
1151
|
+
exportWorkflowGraph(graphId: string): Promise<import("@otto-code/protocol/workflow").WorkflowGraphExport>;
|
|
1152
|
+
importWorkflowGraph(input: {
|
|
1153
|
+
cwd: string;
|
|
1154
|
+
export: import("@otto-code/protocol/workflow").WorkflowGraphExport;
|
|
1155
|
+
confirmed: boolean;
|
|
1156
|
+
}): Promise<import("@otto-code/protocol/workflow").WorkflowGraphImportResult>;
|
|
1035
1157
|
/** Orchestration: list the host's reusable prompt templates and snippets. */
|
|
1036
1158
|
listPromptTemplates(): Promise<PromptTemplate[]>;
|
|
1159
|
+
listProjectWorkflowTemplates(cwd: string): Promise<PromptTemplate[]>;
|
|
1160
|
+
saveProjectWorkflowTemplate(cwd: string, template: PromptTemplate): Promise<PromptTemplate>;
|
|
1161
|
+
transferProjectWorkflowRecord(input: {
|
|
1162
|
+
cwd: string;
|
|
1163
|
+
recordKind: "graph" | "template" | "run";
|
|
1164
|
+
recordId: string;
|
|
1165
|
+
source: "legacy-host-library" | "repository" | "host";
|
|
1166
|
+
destination: "repository" | "host";
|
|
1167
|
+
mode: "copy" | "move";
|
|
1168
|
+
}): Promise<import("@otto-code/protocol/workflow").WorkflowTransferReceipt>;
|
|
1037
1169
|
/** Orchestration: upsert a prompt template. Returns the persisted template. */
|
|
1038
1170
|
savePromptTemplate(template: PromptTemplate): Promise<PromptTemplate>;
|
|
1039
1171
|
/** Orchestration: delete a prompt template (built-in starters refuse). */
|
|
1040
1172
|
deletePromptTemplate(templateId: string): Promise<boolean>;
|
|
1041
1173
|
/**
|
|
1042
|
-
*
|
|
1043
|
-
*
|
|
1174
|
+
* Workflow: start (or draft) a user-initiated Workflow. Returns the workflow
|
|
1175
|
+
* id (graph flavor) and the orchestrator chat's agent id to navigate to.
|
|
1044
1176
|
*/
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
orchestratorPersonalityId?: string;
|
|
1052
|
-
orchestratorProvider?: string;
|
|
1053
|
-
orchestratorModel?: string;
|
|
1054
|
-
orchestratorThinkingOptionId?: string;
|
|
1055
|
-
prompt?: string;
|
|
1056
|
-
graphId?: string;
|
|
1057
|
-
graphInputs?: Record<string, string>;
|
|
1058
|
-
draft?: boolean;
|
|
1059
|
-
runId?: string;
|
|
1060
|
-
}): Promise<{
|
|
1061
|
-
runId?: string;
|
|
1062
|
-
agentId?: string;
|
|
1063
|
-
workspaceId?: string;
|
|
1064
|
-
}>;
|
|
1177
|
+
startWorkflow(input: StartWorkflowInput): Promise<WorkflowStartResult>;
|
|
1178
|
+
/** Answer a daemon-owned AI Workflow start confirmation. */
|
|
1179
|
+
respondToWorkflowStartConfirmation(input: {
|
|
1180
|
+
runId: string;
|
|
1181
|
+
approved: boolean;
|
|
1182
|
+
}): Promise<boolean>;
|
|
1065
1183
|
updateAgent(agentId: string, updates: {
|
|
1066
1184
|
name?: string;
|
|
1067
1185
|
labels?: Record<string, string>;
|
|
@@ -1190,7 +1308,6 @@ export declare class DaemonClient {
|
|
|
1190
1308
|
baseRef: string | null;
|
|
1191
1309
|
commits: CheckoutCommit[];
|
|
1192
1310
|
}>;
|
|
1193
|
-
listProjects(requestId?: string): Promise<ProjectListPayload>;
|
|
1194
1311
|
onAgentAttentionRequired(handler: (notification: AgentAttentionRequiredNotification) => void): () => void;
|
|
1195
1312
|
restoreWorkspace(workspaceId: string, requestId?: string): Promise<void>;
|
|
1196
1313
|
searchGithubRepositories(input: {
|
|
@@ -1452,7 +1569,7 @@ export declare class DaemonClient {
|
|
|
1452
1569
|
}, requestId?: string): Promise<DirectorySuggestionsPayload>;
|
|
1453
1570
|
private requestFileExplorer;
|
|
1454
1571
|
listDirectory(cwd: string, path: string, requestId?: string): Promise<FileExplorerDirectoryPayload>;
|
|
1455
|
-
readFile(cwd: string, path: string, requestId?: string): Promise<FileReadResult>;
|
|
1572
|
+
readFile(cwd: string, path: string, requestId?: string, maxBytes?: number): Promise<FileReadResult>;
|
|
1456
1573
|
/**
|
|
1457
1574
|
* Text-editor read: inline JSON path so the payload carries the editor's
|
|
1458
1575
|
* save-precondition baseline (modifiedAt, eol, hash) alongside the content.
|
|
@@ -1619,11 +1736,18 @@ export declare class DaemonClient {
|
|
|
1619
1736
|
/** Assemble only this section; omitted means the whole prompt. */
|
|
1620
1737
|
category?: ContextCategory;
|
|
1621
1738
|
}, requestId?: string): Promise<ContextPromptPreviewGetResponseMessage["payload"]>;
|
|
1622
|
-
listProjectKnowledge(workspaceId: string,
|
|
1739
|
+
listProjectKnowledge(workspaceId: string, options?: {
|
|
1740
|
+
includeRootBodies?: boolean;
|
|
1741
|
+
requestId?: string;
|
|
1742
|
+
}): Promise<ProjectKnowledgeListResponseMessage["payload"]>;
|
|
1623
1743
|
getProjectKnowledge(input: {
|
|
1624
1744
|
workspaceId: string;
|
|
1625
1745
|
id: string;
|
|
1626
1746
|
}, requestId?: string): Promise<ProjectKnowledgeGetResponseMessage["payload"]>;
|
|
1747
|
+
getProjectKnowledgeRoot(input: {
|
|
1748
|
+
workspaceId: string;
|
|
1749
|
+
slug: string;
|
|
1750
|
+
}, requestId?: string): Promise<ProjectKnowledgeRootGetResponseMessage["payload"]>;
|
|
1627
1751
|
createProjectKnowledge(input: {
|
|
1628
1752
|
workspaceId: string;
|
|
1629
1753
|
id?: string;
|
|
@@ -1813,6 +1937,41 @@ export declare class DaemonClient {
|
|
|
1813
1937
|
config: MutableDaemonConfig;
|
|
1814
1938
|
}>;
|
|
1815
1939
|
getDaemonStatus(options?: DaemonStatusOptions): Promise<DaemonStatusPayload>;
|
|
1940
|
+
reloadDaemonConfig(requestId?: string): Promise<DaemonConfigReloadResponse["payload"]>;
|
|
1941
|
+
connectHub(hubUrl: string, token: string, requestId?: string): Promise<{
|
|
1942
|
+
requestId: string;
|
|
1943
|
+
status: {
|
|
1944
|
+
state: "connected" | "connecting" | "not_connected" | "reconnecting" | "disconnecting" | "revoked";
|
|
1945
|
+
daemonId: string | null;
|
|
1946
|
+
hubOrigin: string | null;
|
|
1947
|
+
scopes: string[];
|
|
1948
|
+
connectedAt: string | null;
|
|
1949
|
+
lastError: string | null;
|
|
1950
|
+
};
|
|
1951
|
+
}>;
|
|
1952
|
+
getHubStatus(requestId?: string): Promise<{
|
|
1953
|
+
requestId: string;
|
|
1954
|
+
status: {
|
|
1955
|
+
state: "connected" | "connecting" | "not_connected" | "reconnecting" | "disconnecting" | "revoked";
|
|
1956
|
+
daemonId: string | null;
|
|
1957
|
+
hubOrigin: string | null;
|
|
1958
|
+
scopes: string[];
|
|
1959
|
+
connectedAt: string | null;
|
|
1960
|
+
lastError: string | null;
|
|
1961
|
+
};
|
|
1962
|
+
}>;
|
|
1963
|
+
disconnectHub(force?: boolean, requestId?: string): Promise<{
|
|
1964
|
+
requestId: string;
|
|
1965
|
+
status: {
|
|
1966
|
+
state: "connected" | "connecting" | "not_connected" | "reconnecting" | "disconnecting" | "revoked";
|
|
1967
|
+
daemonId: string | null;
|
|
1968
|
+
hubOrigin: string | null;
|
|
1969
|
+
scopes: string[];
|
|
1970
|
+
connectedAt: string | null;
|
|
1971
|
+
lastError: string | null;
|
|
1972
|
+
};
|
|
1973
|
+
warning?: string | undefined;
|
|
1974
|
+
}>;
|
|
1816
1975
|
getDaemonPairingOffer(options?: DaemonPairingOfferOptions): Promise<DaemonPairingOfferPayload>;
|
|
1817
1976
|
collectDiagnostics(requestId?: string): Promise<DiagnosticsPayload>;
|
|
1818
1977
|
patchDaemonConfig(config: MutableDaemonConfigPatch, requestId?: string): Promise<{
|
|
@@ -2120,6 +2279,30 @@ export declare class DaemonClient {
|
|
|
2120
2279
|
listCommands(agentId: string, requestId?: string): Promise<ListCommandsPayload>;
|
|
2121
2280
|
listCommands(agentId: string, options?: LegacyListCommandsOptions): Promise<ListCommandsPayload>;
|
|
2122
2281
|
respondToPermission(agentId: string, requestId: string, response: AgentPermissionResponse): Promise<void>;
|
|
2282
|
+
getPluginCatalog(): Promise<Array<{
|
|
2283
|
+
id: string;
|
|
2284
|
+
clientBundle: string;
|
|
2285
|
+
}>>;
|
|
2286
|
+
listPlugins(): Promise<PluginListItem[]>;
|
|
2287
|
+
getPluginLogs(pluginId: string): Promise<PluginLogEntry[]>;
|
|
2288
|
+
getAgentSkillsStatus(): Promise<AgentSkillsStatus>;
|
|
2289
|
+
reconcileAgentSkills(): Promise<AgentSkillsStatus>;
|
|
2290
|
+
uninstallAgentSkills(): Promise<AgentSkillsStatus>;
|
|
2291
|
+
saveAgentSkillsSelection(selection: AgentSkillSelection, confirmedRemovals?: readonly string[]): Promise<AgentSkillsSaveResult>;
|
|
2292
|
+
importLegacyAgentSkillsSelection(selection: AgentSkillSelection): Promise<{
|
|
2293
|
+
imported: boolean;
|
|
2294
|
+
selection: AgentSkillSelection;
|
|
2295
|
+
}>;
|
|
2296
|
+
installDirectoryPlugin(path: string, id?: string): Promise<PluginListItem>;
|
|
2297
|
+
inspectDirectoryPlugin(path: string): Promise<{
|
|
2298
|
+
id: string;
|
|
2299
|
+
}>;
|
|
2300
|
+
reloadPlugin(pluginId: string): Promise<PluginListItem>;
|
|
2301
|
+
enablePlugin(pluginId: string): Promise<PluginListItem>;
|
|
2302
|
+
disablePlugin(pluginId: string): Promise<PluginListItem>;
|
|
2303
|
+
removePlugin(pluginId: string): Promise<void>;
|
|
2304
|
+
private managePlugin;
|
|
2305
|
+
invokePluginRpc(pluginId: string, method: string, input: unknown): Promise<unknown>;
|
|
2123
2306
|
respondToPermissionAndWait(agentId: string, requestId: string, response: AgentPermissionResponse, timeout?: number): Promise<AgentPermissionResolvedPayload>;
|
|
2124
2307
|
waitForAgentUpsert(agentId: string, predicate: (snapshot: AgentSnapshotPayload) => boolean, timeout?: number): Promise<AgentSnapshotPayload>;
|
|
2125
2308
|
waitForFinish(agentId: string, timeout?: number): Promise<WaitForFinishResult>;
|
|
@@ -2173,6 +2356,17 @@ export declare class DaemonClient {
|
|
|
2173
2356
|
projectId?: string;
|
|
2174
2357
|
requestId?: string;
|
|
2175
2358
|
}): Promise<ArtifactListPayload>;
|
|
2359
|
+
setProjectArtifactStoreLocation(input: {
|
|
2360
|
+
projectId: string;
|
|
2361
|
+
location: "repository" | "host" | null;
|
|
2362
|
+
requestId?: string;
|
|
2363
|
+
}): Promise<void>;
|
|
2364
|
+
/** Requires server_info.features.categoryStorageResolver for Workflows. */
|
|
2365
|
+
setProjectWorkflowStoreLocation(input: {
|
|
2366
|
+
projectId: string;
|
|
2367
|
+
location: "repository" | "host" | null;
|
|
2368
|
+
requestId?: string;
|
|
2369
|
+
}): Promise<void>;
|
|
2176
2370
|
artifactCreate(options: {
|
|
2177
2371
|
name: string;
|
|
2178
2372
|
description: string;
|
|
@@ -2220,6 +2414,98 @@ export declare class DaemonClient {
|
|
|
2220
2414
|
artifactId: string;
|
|
2221
2415
|
requestId?: string;
|
|
2222
2416
|
}): Promise<ArtifactGetContentPayload>;
|
|
2417
|
+
artifactRepair(options: {
|
|
2418
|
+
artifactId: string;
|
|
2419
|
+
requestId?: string;
|
|
2420
|
+
}): Promise<ArtifactRepairPayload>;
|
|
2421
|
+
artifactGetData(options: {
|
|
2422
|
+
artifactId: string;
|
|
2423
|
+
requestId?: string;
|
|
2424
|
+
}): Promise<ArtifactDataGetPayload>;
|
|
2425
|
+
artifactUpdateData(options: {
|
|
2426
|
+
artifactId: string;
|
|
2427
|
+
data: unknown;
|
|
2428
|
+
requestId?: string;
|
|
2429
|
+
}): Promise<ArtifactDataUpdatePayload>;
|
|
2430
|
+
artifactMoveStore(options: {
|
|
2431
|
+
artifactId: string;
|
|
2432
|
+
destination: "repository" | "host";
|
|
2433
|
+
requestId?: string;
|
|
2434
|
+
}): Promise<ArtifactStoreMovePayload>;
|
|
2435
|
+
deliverArchitecturalView(options: {
|
|
2436
|
+
workspaceId: string;
|
|
2437
|
+
viewId: string;
|
|
2438
|
+
title: string;
|
|
2439
|
+
knowledgeReferences: Array<{
|
|
2440
|
+
kind: "root" | "record";
|
|
2441
|
+
id: string;
|
|
2442
|
+
}>;
|
|
2443
|
+
sourcePath: string;
|
|
2444
|
+
diagramType?: "architecture" | "workflow" | "sequence" | "dataflow" | "lifecycle";
|
|
2445
|
+
quality?: "standard" | "showcase";
|
|
2446
|
+
requestId?: string;
|
|
2447
|
+
}): Promise<ArchitecturalViewsDeliverPayload>;
|
|
2448
|
+
listArchitecturalViews(options: {
|
|
2449
|
+
workspaceId: string;
|
|
2450
|
+
knowledgeReference?: {
|
|
2451
|
+
kind: "root" | "record";
|
|
2452
|
+
id: string;
|
|
2453
|
+
};
|
|
2454
|
+
requestId?: string;
|
|
2455
|
+
}): Promise<ArchitecturalViewsListPayload>;
|
|
2456
|
+
getArchitecturalViewContent(options: {
|
|
2457
|
+
workspaceId: string;
|
|
2458
|
+
viewId: string;
|
|
2459
|
+
requestId?: string;
|
|
2460
|
+
}): Promise<ArchitecturalViewsGetContentPayload>;
|
|
2461
|
+
createArchitecturalViewDraft(options: {
|
|
2462
|
+
workspaceId: string;
|
|
2463
|
+
viewId: string;
|
|
2464
|
+
draftId: string;
|
|
2465
|
+
title: string;
|
|
2466
|
+
knowledgeReferences: Array<{
|
|
2467
|
+
kind: "root" | "record";
|
|
2468
|
+
id: string;
|
|
2469
|
+
}>;
|
|
2470
|
+
sourcePath?: string;
|
|
2471
|
+
diagramType?: "architecture" | "workflow" | "sequence" | "dataflow" | "lifecycle";
|
|
2472
|
+
quality?: "standard" | "showcase";
|
|
2473
|
+
requestId?: string;
|
|
2474
|
+
}): Promise<ArchitecturalViewsDraftCreatePayload>;
|
|
2475
|
+
publishArchitecturalViewDraft(options: {
|
|
2476
|
+
workspaceId: string;
|
|
2477
|
+
viewId: string;
|
|
2478
|
+
draftId: string;
|
|
2479
|
+
requestId?: string;
|
|
2480
|
+
}): Promise<ArchitecturalViewsDraftPublishPayload>;
|
|
2481
|
+
updateArchitecturalViewDraft(options: {
|
|
2482
|
+
workspaceId: string;
|
|
2483
|
+
viewId: string;
|
|
2484
|
+
draftId: string;
|
|
2485
|
+
sourcePath: string;
|
|
2486
|
+
quality?: "standard" | "showcase";
|
|
2487
|
+
requestId?: string;
|
|
2488
|
+
}): Promise<ArchitecturalViewsDraftUpdatePayload>;
|
|
2489
|
+
discardArchitecturalViewDraft(options: {
|
|
2490
|
+
workspaceId: string;
|
|
2491
|
+
viewId: string;
|
|
2492
|
+
draftId: string;
|
|
2493
|
+
requestId?: string;
|
|
2494
|
+
}): Promise<ArchitecturalViewsDraftDiscardPayload>;
|
|
2495
|
+
getArchitecturalViewDraftContent(options: {
|
|
2496
|
+
workspaceId: string;
|
|
2497
|
+
viewId: string;
|
|
2498
|
+
draftId: string;
|
|
2499
|
+
requestId?: string;
|
|
2500
|
+
}): Promise<ArchitecturalViewsDraftGetContentPayload>;
|
|
2501
|
+
listArchitecturalViewDrafts(options: {
|
|
2502
|
+
workspaceId: string;
|
|
2503
|
+
knowledgeReference?: {
|
|
2504
|
+
kind: "root" | "record";
|
|
2505
|
+
id: string;
|
|
2506
|
+
};
|
|
2507
|
+
requestId?: string;
|
|
2508
|
+
}): Promise<ArchitecturalViewsDraftListPayload>;
|
|
2223
2509
|
onTerminalStreamEvent(handler: (event: TerminalStreamEvent) => void): () => void;
|
|
2224
2510
|
waitForTerminalStreamEvent(predicate: (event: TerminalStreamEvent) => boolean, timeout?: number): Promise<TerminalStreamEvent>;
|
|
2225
2511
|
private createRequestId;
|
|
@@ -2238,6 +2524,7 @@ export declare class DaemonClient {
|
|
|
2238
2524
|
* not a protocol surface.
|
|
2239
2525
|
*/
|
|
2240
2526
|
getInboundDispatchTimings(sinceMs?: number): DaemonClientInboundDispatchTiming[];
|
|
2527
|
+
private requireDaemonConfigReloadSupport;
|
|
2241
2528
|
private resolveTransportUrlForAttempt;
|
|
2242
2529
|
private sendHelloMessage;
|
|
2243
2530
|
private disposeTransport;
|
|
@@ -2285,40 +2572,6 @@ export declare class DaemonClient {
|
|
|
2285
2572
|
stopWorkspaceScript(workspaceId: string, scriptName: string, requestId?: string): Promise<Extract<SessionOutboundMessage, {
|
|
2286
2573
|
type: "workspace.script.stop.response";
|
|
2287
2574
|
}>["payload"]>;
|
|
2288
|
-
connectHub(hubUrl: string, token: string, requestId?: string): Promise<{
|
|
2289
|
-
requestId: string;
|
|
2290
|
-
status: {
|
|
2291
|
-
state: "connected" | "connecting" | "not_connected" | "reconnecting" | "disconnecting" | "revoked";
|
|
2292
|
-
daemonId: string | null;
|
|
2293
|
-
hubOrigin: string | null;
|
|
2294
|
-
scopes: string[];
|
|
2295
|
-
connectedAt: string | null;
|
|
2296
|
-
lastError: string | null;
|
|
2297
|
-
};
|
|
2298
|
-
}>;
|
|
2299
|
-
getHubStatus(requestId?: string): Promise<{
|
|
2300
|
-
requestId: string;
|
|
2301
|
-
status: {
|
|
2302
|
-
state: "connected" | "connecting" | "not_connected" | "reconnecting" | "disconnecting" | "revoked";
|
|
2303
|
-
daemonId: string | null;
|
|
2304
|
-
hubOrigin: string | null;
|
|
2305
|
-
scopes: string[];
|
|
2306
|
-
connectedAt: string | null;
|
|
2307
|
-
lastError: string | null;
|
|
2308
|
-
};
|
|
2309
|
-
}>;
|
|
2310
|
-
disconnectHub(force?: boolean, requestId?: string): Promise<{
|
|
2311
|
-
requestId: string;
|
|
2312
|
-
status: {
|
|
2313
|
-
state: "connected" | "connecting" | "not_connected" | "reconnecting" | "disconnecting" | "revoked";
|
|
2314
|
-
daemonId: string | null;
|
|
2315
|
-
hubOrigin: string | null;
|
|
2316
|
-
scopes: string[];
|
|
2317
|
-
connectedAt: string | null;
|
|
2318
|
-
lastError: string | null;
|
|
2319
|
-
};
|
|
2320
|
-
warning?: string | undefined;
|
|
2321
|
-
}>;
|
|
2322
2575
|
private requireHubRelationshipSupport;
|
|
2323
2576
|
}
|
|
2324
2577
|
//# sourceMappingURL=daemon-client.d.ts.map
|