@bobannomi/client 0.8.0 → 0.8.1
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 +18 -2
- package/dist/index.d.ts +282 -120
- package/dist/index.js +141 -24
- package/dist/index.js.map +3 -3
- package/dist/service.js +149 -32
- package/dist/service.js.map +3 -3
- package/package.json +4 -4
package/dist/index.d.ts
CHANGED
|
@@ -1457,7 +1457,7 @@ interface FeishuRegistrationStartInput {
|
|
|
1457
1457
|
domain?: ChannelDomain;
|
|
1458
1458
|
}
|
|
1459
1459
|
|
|
1460
|
-
declare const CURRENT_PROTOCOL_VERSION =
|
|
1460
|
+
declare const CURRENT_PROTOCOL_VERSION = 1;
|
|
1461
1461
|
interface ProtocolVersion {
|
|
1462
1462
|
version: number;
|
|
1463
1463
|
}
|
|
@@ -2373,7 +2373,12 @@ interface SessionComposerContext {
|
|
|
2373
2373
|
data: JsonValue;
|
|
2374
2374
|
}
|
|
2375
2375
|
|
|
2376
|
-
interface
|
|
2376
|
+
interface AttachmentRequestOptions {
|
|
2377
|
+
/** Selects the known session for access checks and temporary draft storage. */
|
|
2378
|
+
sessionId?: string;
|
|
2379
|
+
signal?: AbortSignal;
|
|
2380
|
+
}
|
|
2381
|
+
interface UploadAttachmentInput extends AttachmentRequestOptions {
|
|
2377
2382
|
requestId: string;
|
|
2378
2383
|
draftId: string;
|
|
2379
2384
|
expectedSha256: string;
|
|
@@ -2381,15 +2386,17 @@ interface UploadAttachmentInput {
|
|
|
2381
2386
|
displayName: string;
|
|
2382
2387
|
mediaType?: string;
|
|
2383
2388
|
body: Blob | ArrayBuffer | Uint8Array | ReadableStream<Uint8Array>;
|
|
2384
|
-
signal?: AbortSignal;
|
|
2385
2389
|
}
|
|
2386
|
-
interface DownloadAttachmentOptions {
|
|
2390
|
+
interface DownloadAttachmentOptions extends AttachmentRequestOptions {
|
|
2387
2391
|
range?: {
|
|
2388
2392
|
start?: number;
|
|
2389
2393
|
end?: number;
|
|
2390
2394
|
suffixBytes?: number;
|
|
2391
2395
|
};
|
|
2392
|
-
|
|
2396
|
+
}
|
|
2397
|
+
interface DeleteAttachmentOptions extends AttachmentRequestOptions {
|
|
2398
|
+
/** The original upload draft that owns this asset. */
|
|
2399
|
+
draftId: string;
|
|
2393
2400
|
}
|
|
2394
2401
|
|
|
2395
2402
|
/**
|
|
@@ -2713,6 +2720,13 @@ interface AdmitClientPromptInput {
|
|
|
2713
2720
|
attachments?: AdmitPromptAttachmentInput[];
|
|
2714
2721
|
metadata?: Record<string, unknown>;
|
|
2715
2722
|
}
|
|
2723
|
+
/** Plain text is converted to one text item before the prompt is sent. */
|
|
2724
|
+
type SessionPromptInput = (AdmitClientPromptInput & {
|
|
2725
|
+
text?: never;
|
|
2726
|
+
}) | (Omit<AdmitClientPromptInput, "items"> & {
|
|
2727
|
+
text: string;
|
|
2728
|
+
items?: never;
|
|
2729
|
+
});
|
|
2716
2730
|
/** Session identity is carried by the URL; only lifecycle prompt fields are public. */
|
|
2717
2731
|
/** `POST /sessions/:id/runs/:runId/resume` 请求体。`id` 用于安全重试。 */
|
|
2718
2732
|
interface ResumeInterruptedRunInput {
|
|
@@ -2939,66 +2953,68 @@ interface SessionObservation {
|
|
|
2939
2953
|
interface RunResult {
|
|
2940
2954
|
run: SessionRunRecord;
|
|
2941
2955
|
messages: SessionMessageWithParts[];
|
|
2956
|
+
/** Visible assistant text for this run, joined in message and part order. */
|
|
2957
|
+
text: string;
|
|
2942
2958
|
}
|
|
2943
2959
|
|
|
2944
|
-
type RequestOptions$
|
|
2960
|
+
type RequestOptions$9 = {
|
|
2945
2961
|
signal?: AbortSignal;
|
|
2946
2962
|
};
|
|
2947
|
-
/** Operations for one session
|
|
2948
|
-
interface
|
|
2963
|
+
/** Operations for one session on the bound daemon connection. */
|
|
2964
|
+
interface Session {
|
|
2949
2965
|
readonly id: string;
|
|
2950
|
-
get(options?: RequestOptions$
|
|
2951
|
-
getState(options?: RequestOptions$
|
|
2966
|
+
get(options?: RequestOptions$9): Promise<SessionRecord>;
|
|
2967
|
+
getState(options?: RequestOptions$9 & {
|
|
2952
2968
|
partView?: "summary";
|
|
2953
2969
|
}): Promise<AgentSessionStateSnapshot>;
|
|
2954
2970
|
/** Observe the current messages, inputs, runs and permission requests for this session. */
|
|
2955
|
-
observe(options?: RequestOptions$
|
|
2971
|
+
observe(options?: RequestOptions$9 & {
|
|
2956
2972
|
partView?: "summary";
|
|
2957
2973
|
}): AsyncIterable<SessionObservation>;
|
|
2958
2974
|
/** Merge JSON fields into this session's application metadata on the daemon. */
|
|
2959
|
-
updateAppMetadata(metadata: Record<string, unknown>, options?: RequestOptions$
|
|
2960
|
-
/** Submit
|
|
2961
|
-
prompt(input:
|
|
2975
|
+
updateAppMetadata(metadata: Record<string, unknown>, options?: RequestOptions$9): Promise<SessionRecord>;
|
|
2976
|
+
/** Submit plain text or structured input and return its admission result. */
|
|
2977
|
+
prompt(input: SessionPromptInput, options?: RequestOptions$9): Promise<PromptResponse>;
|
|
2962
2978
|
/** Observe an existing run until it reaches a durable terminal state. */
|
|
2963
|
-
waitForRun(runId: string, options?: RequestOptions$
|
|
2964
|
-
interrupt(options?: RequestOptions$
|
|
2979
|
+
waitForRun(runId: string, options?: RequestOptions$9): Promise<RunResult>;
|
|
2980
|
+
interrupt(options?: RequestOptions$9 & {
|
|
2965
2981
|
expectedRunId?: string;
|
|
2966
2982
|
}): Promise<InterruptSessionResponse>;
|
|
2967
|
-
getControls(options?: RequestOptions$
|
|
2983
|
+
getControls(options?: RequestOptions$9): Promise<SessionControls>;
|
|
2968
2984
|
getControlResult(input: {
|
|
2969
2985
|
requestId: string;
|
|
2970
2986
|
original: SessionControlOriginal;
|
|
2971
|
-
}, options?: RequestOptions$
|
|
2972
|
-
getContextUsage(options?: RequestOptions$
|
|
2973
|
-
getUsage(options?: RequestOptions$
|
|
2974
|
-
editLatestPrompt(input: EditLatestClientPromptInput, options?: RequestOptions$
|
|
2975
|
-
resumeInterruptedRun(runId: string, input?: ResumeInterruptedRunInput, options?: RequestOptions$
|
|
2976
|
-
fork(input?: ForkClientSessionInput, options?: RequestOptions$
|
|
2987
|
+
}, options?: RequestOptions$9): Promise<SessionControlReceipt | null>;
|
|
2988
|
+
getContextUsage(options?: RequestOptions$9): Promise<ContextUsageSnapshot>;
|
|
2989
|
+
getUsage(options?: RequestOptions$9): Promise<SessionUsageResponse>;
|
|
2990
|
+
editLatestPrompt(input: EditLatestClientPromptInput, options?: RequestOptions$9): Promise<PromptResponse>;
|
|
2991
|
+
resumeInterruptedRun(runId: string, input?: ResumeInterruptedRunInput, options?: RequestOptions$9): Promise<ResumeInterruptedRunResponse>;
|
|
2992
|
+
fork(input?: ForkClientSessionInput, options?: RequestOptions$9): Promise<SessionRecord>;
|
|
2977
2993
|
/** Compact the transcript using the recorded configuration revision and request ID. */
|
|
2978
2994
|
compact(input: {
|
|
2979
2995
|
requestId: string;
|
|
2980
2996
|
expectedRevision: number;
|
|
2981
|
-
}, options?: RequestOptions$
|
|
2997
|
+
}, options?: RequestOptions$9): Promise<SessionControlReceipt>;
|
|
2982
2998
|
rewind(input?: {
|
|
2983
2999
|
count?: number;
|
|
2984
|
-
}, options?: RequestOptions$
|
|
2985
|
-
remember(options?: RequestOptions$
|
|
3000
|
+
}, options?: RequestOptions$9): Promise<RewindSessionResponse>;
|
|
3001
|
+
remember(options?: RequestOptions$9): Promise<RememberSessionResponse>;
|
|
2986
3002
|
export(input?: {
|
|
2987
3003
|
filename?: string;
|
|
2988
3004
|
json?: boolean;
|
|
2989
|
-
}, options?: RequestOptions$
|
|
3005
|
+
}, options?: RequestOptions$9): Promise<SessionExportResponse>;
|
|
2990
3006
|
/** Read or update settings, and recover the result of the original update. */
|
|
2991
3007
|
readonly configuration: {
|
|
2992
|
-
get(options?: RequestOptions$
|
|
2993
|
-
update(input: ConfigureClientSessionInput, options?: RequestOptions$
|
|
2994
|
-
getResult(input: SessionConfigurationResultInput, options?: RequestOptions$
|
|
3008
|
+
get(options?: RequestOptions$9): Promise<SessionConfigurationSnapshot>;
|
|
3009
|
+
update(input: ConfigureClientSessionInput, options?: RequestOptions$9): Promise<SessionControlReceipt>;
|
|
3010
|
+
getResult(input: SessionConfigurationResultInput, options?: RequestOptions$9): Promise<SessionControlReceipt | null>;
|
|
2995
3011
|
};
|
|
2996
3012
|
readonly queue: {
|
|
2997
|
-
promote(inputId: string, input: PromoteQueuedClientPromptInput, options?: RequestOptions$
|
|
2998
|
-
cancel(inputId: string, input: CancelQueuedClientPromptInput, options: RequestOptions$
|
|
3013
|
+
promote(inputId: string, input: PromoteQueuedClientPromptInput, options?: RequestOptions$9): Promise<PromoteQueuedPromptResponse>;
|
|
3014
|
+
cancel(inputId: string, input: CancelQueuedClientPromptInput, options: RequestOptions$9 & {
|
|
2999
3015
|
responseMode: "receipt";
|
|
3000
3016
|
}): Promise<QueuedPromptCancelReceipt>;
|
|
3001
|
-
cancel(inputId: string, input: CancelQueuedClientPromptInput, options?: RequestOptions$
|
|
3017
|
+
cancel(inputId: string, input: CancelQueuedClientPromptInput, options?: RequestOptions$9 & {
|
|
3002
3018
|
responseMode?: "snapshot";
|
|
3003
3019
|
}): Promise<CancelQueuedPromptResponse>;
|
|
3004
3020
|
};
|
|
@@ -3012,34 +3028,34 @@ interface SessionHandle {
|
|
|
3012
3028
|
/** Perform versioned management operations and query their durable receipts. */
|
|
3013
3029
|
readonly management: {
|
|
3014
3030
|
/** Interrupt active work before archiving the session tree. */
|
|
3015
|
-
archiveAndInterrupt(options?: RequestOptions$
|
|
3031
|
+
archiveAndInterrupt(options?: RequestOptions$9): Promise<SessionRecord>;
|
|
3016
3032
|
getRevision(input: {
|
|
3017
3033
|
action: SessionManagementAction;
|
|
3018
|
-
}, options?: RequestOptions$
|
|
3034
|
+
}, options?: RequestOptions$9): Promise<SessionResourceRevision>;
|
|
3019
3035
|
rename(input: {
|
|
3020
3036
|
requestId: string;
|
|
3021
3037
|
title: string;
|
|
3022
3038
|
expectedRevision: number;
|
|
3023
|
-
}, options?: RequestOptions$
|
|
3039
|
+
}, options?: RequestOptions$9): Promise<SessionMutationPublicReceipt>;
|
|
3024
3040
|
setPinned(input: {
|
|
3025
3041
|
requestId: string;
|
|
3026
3042
|
pinned: boolean;
|
|
3027
3043
|
expectedRevision: number;
|
|
3028
|
-
}, options?: RequestOptions$
|
|
3044
|
+
}, options?: RequestOptions$9): Promise<SessionMutationPublicReceipt>;
|
|
3029
3045
|
archive(input: {
|
|
3030
3046
|
requestId: string;
|
|
3031
3047
|
expectedTreeRevision: string;
|
|
3032
|
-
}, options?: RequestOptions$
|
|
3048
|
+
}, options?: RequestOptions$9): Promise<SessionMutationPublicReceipt>;
|
|
3033
3049
|
delete(input: {
|
|
3034
3050
|
requestId: string;
|
|
3035
3051
|
expectedTreeRevision: string;
|
|
3036
|
-
}, options?: RequestOptions$
|
|
3037
|
-
getMutation(requestId: string, options?: RequestOptions$
|
|
3052
|
+
}, options?: RequestOptions$9): Promise<SessionMutationPublicReceipt>;
|
|
3053
|
+
getMutation(requestId: string, options?: RequestOptions$9): Promise<SessionMutationPublicReceipt | null>;
|
|
3038
3054
|
};
|
|
3039
3055
|
readonly messages: {
|
|
3040
|
-
list(options?: ListMessagesOptions & RequestOptions$
|
|
3041
|
-
listParts(options?: ListClientMessagePartsOptions & RequestOptions$
|
|
3042
|
-
getPart(messageId: string, partId: string, options?: RequestOptions$
|
|
3056
|
+
list(options?: ListMessagesOptions & RequestOptions$9): Promise<SessionMessageRecord[]>;
|
|
3057
|
+
listParts(options?: ListClientMessagePartsOptions & RequestOptions$9): Promise<SessionMessagePartRecord[]>;
|
|
3058
|
+
getPart(messageId: string, partId: string, options?: RequestOptions$9): Promise<SessionMessagePartRecord>;
|
|
3043
3059
|
};
|
|
3044
3060
|
/** Read-only access. Paths are relative to the session's execution directory on the daemon. */
|
|
3045
3061
|
readonly files: {
|
|
@@ -3051,18 +3067,18 @@ interface SessionHandle {
|
|
|
3051
3067
|
};
|
|
3052
3068
|
/** Observe terminals already associated with this session. */
|
|
3053
3069
|
readonly terminals: {
|
|
3054
|
-
list(options?: RequestOptions$
|
|
3055
|
-
read(terminalId: string, options?: RequestOptions$
|
|
3070
|
+
list(options?: RequestOptions$9): Promise<TerminalSessionInfo[]>;
|
|
3071
|
+
read(terminalId: string, options?: RequestOptions$9 & {
|
|
3056
3072
|
after?: number;
|
|
3057
3073
|
maxChars?: number;
|
|
3058
3074
|
}): Promise<TerminalReadResult>;
|
|
3059
|
-
stream(terminalId: string, options?: RequestOptions$
|
|
3075
|
+
stream(terminalId: string, options?: RequestOptions$9): Promise<AsyncIterable<TerminalEvent>>;
|
|
3060
3076
|
};
|
|
3061
3077
|
/** Manage background jobs and subagent runs belonging to this session. */
|
|
3062
3078
|
readonly jobs: {
|
|
3063
3079
|
list(options?: ListSessionJobsOptions): Promise<JobListResult>;
|
|
3064
|
-
createBackgroundShell(input: CreateBackgroundShellInput, options?: RequestOptions$
|
|
3065
|
-
read(target: JobTarget, options?: RequestOptions$
|
|
3080
|
+
createBackgroundShell(input: CreateBackgroundShellInput, options?: RequestOptions$9): Promise<CreateBackgroundShellResult>;
|
|
3081
|
+
read(target: JobTarget, options?: RequestOptions$9 & {
|
|
3066
3082
|
after?: number;
|
|
3067
3083
|
maxChars?: number;
|
|
3068
3084
|
}): Promise<JobReadResult>;
|
|
@@ -3070,34 +3086,38 @@ interface SessionHandle {
|
|
|
3070
3086
|
timeoutMs?: number;
|
|
3071
3087
|
after?: number;
|
|
3072
3088
|
maxChars?: number;
|
|
3073
|
-
}, options?: RequestOptions$
|
|
3089
|
+
}, options?: RequestOptions$9): Promise<JobWaitResult>;
|
|
3074
3090
|
send(target: JobTarget, input: {
|
|
3075
3091
|
data: string;
|
|
3076
|
-
}, options?: RequestOptions$
|
|
3092
|
+
}, options?: RequestOptions$9): Promise<JobInputReceipt | void>;
|
|
3077
3093
|
cancel(target: JobTarget, input: {
|
|
3078
3094
|
reason?: string;
|
|
3079
|
-
} | undefined, options: RequestOptions$
|
|
3095
|
+
} | undefined, options: RequestOptions$9 & {
|
|
3080
3096
|
responseMode: "receipt";
|
|
3081
3097
|
}): Promise<JobCancelReceipt>;
|
|
3082
3098
|
cancel(target: JobTarget, input?: {
|
|
3083
3099
|
reason?: string;
|
|
3084
|
-
}, options?: RequestOptions$
|
|
3100
|
+
}, options?: RequestOptions$9 & {
|
|
3085
3101
|
responseMode?: "snapshot";
|
|
3086
3102
|
}): Promise<JobSnapshot>;
|
|
3087
3103
|
};
|
|
3088
3104
|
/** Read MCP connection status for this session. The daemon may initialize its runtime. */
|
|
3089
3105
|
readonly mcp: {
|
|
3090
|
-
list(options?: RequestOptions$
|
|
3106
|
+
list(options?: RequestOptions$9): Promise<McpServerStatus[]>;
|
|
3091
3107
|
};
|
|
3092
3108
|
}
|
|
3093
3109
|
|
|
3110
|
+
interface CreatedSession extends Session {
|
|
3111
|
+
/** The record returned by the creation request. Use get() to read current data. */
|
|
3112
|
+
readonly record: SessionRecord;
|
|
3113
|
+
}
|
|
3094
3114
|
/** Find, prepare, and create sessions on one daemon connection. */
|
|
3095
3115
|
declare class SessionResource {
|
|
3096
3116
|
#private;
|
|
3097
3117
|
private readonly prepareModel?;
|
|
3098
3118
|
constructor(transport: HttpTransport, events?: EventResource, prepareModel?: PrepareModelConnection | undefined);
|
|
3099
3119
|
/** Bind a session ID locally. Operations use this resource's daemon connection when called. */
|
|
3100
|
-
byId(sessionId: string):
|
|
3120
|
+
byId(sessionId: string): Session;
|
|
3101
3121
|
/** `GET /sessions/search` - search saved conversation text without opening it. */
|
|
3102
3122
|
search(options: SearchSessionsOptions & {
|
|
3103
3123
|
signal?: AbortSignal;
|
|
@@ -3117,10 +3137,10 @@ declare class SessionResource {
|
|
|
3117
3137
|
getDraftComposerOptions(input: DraftComposerTarget, options?: {
|
|
3118
3138
|
signal?: AbortSignal;
|
|
3119
3139
|
}): Promise<DraftComposerOptions>;
|
|
3120
|
-
/**
|
|
3140
|
+
/** Create a session and bind its operations to this connection. */
|
|
3121
3141
|
create(input: SessionCreationInput, options?: {
|
|
3122
3142
|
signal?: AbortSignal;
|
|
3123
|
-
}): Promise<
|
|
3143
|
+
}): Promise<CreatedSession>;
|
|
3124
3144
|
getConfigurationOptions(input: {
|
|
3125
3145
|
cwd: string;
|
|
3126
3146
|
projectId?: string;
|
|
@@ -3145,7 +3165,7 @@ declare function createSessionRequestId(): string;
|
|
|
3145
3165
|
declare class AttachmentResource {
|
|
3146
3166
|
private readonly transport;
|
|
3147
3167
|
constructor(transport: HttpTransport);
|
|
3148
|
-
/**
|
|
3168
|
+
/** Inspect and maintain attachment storage for the current daemon. */
|
|
3149
3169
|
readonly storage: {
|
|
3150
3170
|
scan: (options?: {
|
|
3151
3171
|
signal?: AbortSignal;
|
|
@@ -3160,14 +3180,10 @@ declare class AttachmentResource {
|
|
|
3160
3180
|
/** `POST /attachments` — upload bytes without JSON or multipart buffering. */
|
|
3161
3181
|
upload(input: UploadAttachmentInput): Promise<AttachmentAssetRecord>;
|
|
3162
3182
|
getUpload(input: Omit<UploadAttachmentInput, "body">): Promise<AttachmentAssetRecord | null>;
|
|
3163
|
-
get(id: string, options?:
|
|
3164
|
-
signal?: AbortSignal;
|
|
3165
|
-
}): Promise<AttachmentAssetRecord>;
|
|
3183
|
+
get(id: string, options?: AttachmentRequestOptions): Promise<AttachmentAssetRecord>;
|
|
3166
3184
|
/** Returns the raw response so callers can consume the body as a stream. */
|
|
3167
3185
|
download(id: string, options?: DownloadAttachmentOptions): Promise<Response>;
|
|
3168
|
-
delete(id: string, options
|
|
3169
|
-
signal?: AbortSignal;
|
|
3170
|
-
}): Promise<AttachmentAssetRecord>;
|
|
3186
|
+
delete(id: string, options: DeleteAttachmentOptions): Promise<AttachmentAssetRecord>;
|
|
3171
3187
|
}
|
|
3172
3188
|
|
|
3173
3189
|
type SavedToolApproval = PermissionRequestRecord & {
|
|
@@ -3198,7 +3214,7 @@ declare class PermissionResource {
|
|
|
3198
3214
|
};
|
|
3199
3215
|
}
|
|
3200
3216
|
|
|
3201
|
-
type RequestOptions$
|
|
3217
|
+
type RequestOptions$8 = {
|
|
3202
3218
|
signal?: AbortSignal;
|
|
3203
3219
|
};
|
|
3204
3220
|
type DirectoryOptional<T> = Omit<T, "cwd"> & {
|
|
@@ -3208,20 +3224,20 @@ type DirectoryOptional<T> = Omit<T, "cwd"> & {
|
|
|
3208
3224
|
declare class PluginMarketplaceResource {
|
|
3209
3225
|
private readonly transport;
|
|
3210
3226
|
constructor(transport: HttpTransport);
|
|
3211
|
-
catalog({ signal, ...query }?: DirectoryOptional<MarketplaceCatalogRequest> & RequestOptions$
|
|
3212
|
-
listSources(options?: RequestOptions$
|
|
3213
|
-
addSource(input: MarketplaceAddSourceRequest, options?: RequestOptions$
|
|
3214
|
-
setSourceEnabled(sourceId: string, input: MarketplaceSourceEnabledRequest, options?: RequestOptions$
|
|
3215
|
-
removeSource(sourceId: string, options?: RequestOptions$
|
|
3216
|
-
preview(input: DirectoryOptional<MarketplacePreviewRequest>, options?: RequestOptions$
|
|
3217
|
-
cancel(input: MarketplaceCancelRequest, options?: RequestOptions$
|
|
3227
|
+
catalog({ signal, ...query }?: DirectoryOptional<MarketplaceCatalogRequest> & RequestOptions$8): Promise<MarketplaceCatalog>;
|
|
3228
|
+
listSources(options?: RequestOptions$8): Promise<MarketplaceSourcesResponse>;
|
|
3229
|
+
addSource(input: MarketplaceAddSourceRequest, options?: RequestOptions$8): Promise<MarketplaceSourcesResponse>;
|
|
3230
|
+
setSourceEnabled(sourceId: string, input: MarketplaceSourceEnabledRequest, options?: RequestOptions$8): Promise<MarketplaceSourcesResponse>;
|
|
3231
|
+
removeSource(sourceId: string, options?: RequestOptions$8): Promise<MarketplaceSourcesResponse>;
|
|
3232
|
+
preview(input: DirectoryOptional<MarketplacePreviewRequest>, options?: RequestOptions$8): Promise<MarketplacePreview>;
|
|
3233
|
+
cancel(input: MarketplaceCancelRequest, options?: RequestOptions$8): Promise<MarketplaceCancelResponse>;
|
|
3218
3234
|
/** Save the operation ID before submitting. Recover an uncertain result with getOperation. */
|
|
3219
|
-
install(input: DirectoryOptional<MarketplaceInstallRequest>, options?: RequestOptions$
|
|
3235
|
+
install(input: DirectoryOptional<MarketplaceInstallRequest>, options?: RequestOptions$8): Promise<MarketplaceOperation>;
|
|
3220
3236
|
/** Look up the original operation without repeating its install. */
|
|
3221
|
-
getOperation(operationId: string, options?: RequestOptions$
|
|
3237
|
+
getOperation(operationId: string, options?: RequestOptions$8): Promise<MarketplaceOperation>;
|
|
3222
3238
|
}
|
|
3223
3239
|
|
|
3224
|
-
type RequestOptions$
|
|
3240
|
+
type RequestOptions$7 = {
|
|
3225
3241
|
signal?: AbortSignal;
|
|
3226
3242
|
};
|
|
3227
3243
|
type DirectoryInput = {
|
|
@@ -3230,6 +3246,9 @@ type DirectoryInput = {
|
|
|
3230
3246
|
type PluginMessage = {
|
|
3231
3247
|
message: string;
|
|
3232
3248
|
};
|
|
3249
|
+
type PluginChangeMessage = PluginMessage & {
|
|
3250
|
+
warning?: string;
|
|
3251
|
+
};
|
|
3233
3252
|
type IconInput = DirectoryInput & {
|
|
3234
3253
|
pluginId: string;
|
|
3235
3254
|
} & ({
|
|
@@ -3245,30 +3264,48 @@ declare class PluginResource {
|
|
|
3245
3264
|
readonly marketplace: PluginMarketplaceResource;
|
|
3246
3265
|
constructor(transport: HttpTransport);
|
|
3247
3266
|
/** List native plugins for a directory in the daemon environment. */
|
|
3248
|
-
list({ signal, cwd }?: DirectoryInput & RequestOptions$
|
|
3267
|
+
list({ signal, cwd }?: DirectoryInput & RequestOptions$7): Promise<PluginListResult>;
|
|
3249
3268
|
/** Load an image from an installed plugin or a marketplace entry in the daemon. */
|
|
3250
|
-
getIcon(input: IconInput, options?: RequestOptions$
|
|
3269
|
+
getIcon(input: IconInput, options?: RequestOptions$7): Promise<{
|
|
3251
3270
|
icon: string | null;
|
|
3252
3271
|
}>;
|
|
3253
|
-
enable(id: string, input: DirectoryInput, options?: RequestOptions$
|
|
3254
|
-
disable(id: string, input: DirectoryInput, options?: RequestOptions$
|
|
3272
|
+
enable(id: string, input: DirectoryInput, options?: RequestOptions$7): Promise<PluginChangeMessage>;
|
|
3273
|
+
disable(id: string, input: DirectoryInput, options?: RequestOptions$7): Promise<PluginChangeMessage>;
|
|
3255
3274
|
/** Read the identity, digest and requested permissions for a directory on the daemon machine. */
|
|
3256
|
-
previewLocal(input: PluginLocalPreviewInput, options?: RequestOptions$
|
|
3275
|
+
previewLocal(input: PluginLocalPreviewInput, options?: RequestOptions$7): Promise<PluginLocalPreview>;
|
|
3257
3276
|
/** Install or link a plugin directory the daemon can read after approval. */
|
|
3258
|
-
installLocal(input: PluginLocalInstallInput, options?: RequestOptions$
|
|
3277
|
+
installLocal(input: PluginLocalInstallInput, options?: RequestOptions$7): Promise<PluginMessage>;
|
|
3259
3278
|
/** Read the digest and required permissions for an archive on the daemon machine. */
|
|
3260
|
-
previewArchive(input: PluginArchivePreviewInput, options?: RequestOptions$
|
|
3279
|
+
previewArchive(input: PluginArchivePreviewInput, options?: RequestOptions$7): Promise<PluginArchivePreview>;
|
|
3261
3280
|
/** Install the previewed archive with its original digest and approved permissions. */
|
|
3262
|
-
installArchive(input: PluginArchiveInstallInput, options?: RequestOptions$
|
|
3281
|
+
installArchive(input: PluginArchiveInstallInput, options?: RequestOptions$7): Promise<PluginMessage>;
|
|
3282
|
+
/** Preview a client-selected archive by uploading its bytes to the daemon. */
|
|
3283
|
+
uploadArchive(input: DirectoryInput & {
|
|
3284
|
+
archive: Blob | ArrayBuffer;
|
|
3285
|
+
fileName: string;
|
|
3286
|
+
}, options?: RequestOptions$7): Promise<PluginArchivePreview & {
|
|
3287
|
+
candidateId: string;
|
|
3288
|
+
}>;
|
|
3289
|
+
/** Release an uploaded archive preview. Unclaimed previews also expire. */
|
|
3290
|
+
cancelUploadedArchive(candidateId: string, options?: RequestOptions$7): Promise<{
|
|
3291
|
+
cancelled: true;
|
|
3292
|
+
}>;
|
|
3293
|
+
/** Save the operation ID before submitting. Recover an uncertain result with getArchiveInstallOperation. */
|
|
3294
|
+
installUploadedArchive(input: Omit<PluginArchiveInstallInput, "archivePath"> & {
|
|
3295
|
+
candidateId: string;
|
|
3296
|
+
operationId: string;
|
|
3297
|
+
}, options?: RequestOptions$7): Promise<MarketplaceOperation>;
|
|
3298
|
+
/** Read the result of the original upload install without submitting it again. */
|
|
3299
|
+
getArchiveInstallOperation(operationId: string, options?: RequestOptions$7): Promise<MarketplaceOperation>;
|
|
3263
3300
|
/** Read the digest and required permissions for a Git source. */
|
|
3264
|
-
previewGit(input: PluginGitPreviewInput, options?: RequestOptions$
|
|
3301
|
+
previewGit(input: PluginGitPreviewInput, options?: RequestOptions$7): Promise<PluginGitPreview>;
|
|
3265
3302
|
/** Install the previewed Git source with its original digest and approved permissions. */
|
|
3266
|
-
installGit(input: PluginGitInstallInput, options?: RequestOptions$
|
|
3267
|
-
uninstall(id: string, input: DirectoryInput, options?: RequestOptions$
|
|
3268
|
-
reload(input?: DirectoryInput, options?: RequestOptions$
|
|
3303
|
+
installGit(input: PluginGitInstallInput, options?: RequestOptions$7): Promise<PluginMessage>;
|
|
3304
|
+
uninstall(id: string, input: DirectoryInput, options?: RequestOptions$7): Promise<PluginChangeMessage>;
|
|
3305
|
+
reload(input?: DirectoryInput, options?: RequestOptions$7): Promise<ReloadPluginsResponse>;
|
|
3269
3306
|
}
|
|
3270
3307
|
|
|
3271
|
-
type RequestOptions$
|
|
3308
|
+
type RequestOptions$6 = {
|
|
3272
3309
|
signal?: AbortSignal;
|
|
3273
3310
|
};
|
|
3274
3311
|
interface ChannelQuery {
|
|
@@ -3285,35 +3322,35 @@ declare class ChannelResource {
|
|
|
3285
3322
|
constructor(transport: HttpTransport);
|
|
3286
3323
|
/** Read the running connectors or temporarily start and stop them. */
|
|
3287
3324
|
readonly runtime: {
|
|
3288
|
-
status: (options?: RequestOptions$
|
|
3289
|
-
start: (input?: ChannelRuntimeControlInput, options?: RequestOptions$
|
|
3290
|
-
stop: (input?: ChannelRuntimeControlInput, options?: RequestOptions$
|
|
3325
|
+
status: (options?: RequestOptions$6) => Promise<ChannelRuntimeStatus>;
|
|
3326
|
+
start: (input?: ChannelRuntimeControlInput, options?: RequestOptions$6) => Promise<ChannelRuntimeStatus>;
|
|
3327
|
+
stop: (input?: ChannelRuntimeControlInput, options?: RequestOptions$6) => Promise<ChannelRuntimeStatus>;
|
|
3291
3328
|
};
|
|
3292
3329
|
/** Configure Feishu or Lark. Status snapshots omit credentials. */
|
|
3293
3330
|
readonly feishu: {
|
|
3294
|
-
status: (options?: RequestOptions$
|
|
3295
|
-
connect: (input: FeishuConnectInput, options?: RequestOptions$
|
|
3296
|
-
update: (input: FeishuPatchInput, options?: RequestOptions$
|
|
3297
|
-
disconnect: (options?: RequestOptions$
|
|
3331
|
+
status: (options?: RequestOptions$6) => Promise<FeishuChannelSnapshot>;
|
|
3332
|
+
connect: (input: FeishuConnectInput, options?: RequestOptions$6) => Promise<FeishuComposedSnapshot>;
|
|
3333
|
+
update: (input: FeishuPatchInput, options?: RequestOptions$6) => Promise<FeishuComposedSnapshot>;
|
|
3334
|
+
disconnect: (options?: RequestOptions$6) => Promise<FeishuComposedSnapshot>;
|
|
3298
3335
|
allowlist: {
|
|
3299
|
-
add: (input: FeishuAllowInput, options?: RequestOptions$
|
|
3300
|
-
remove: (key: string, options?: RequestOptions$
|
|
3336
|
+
add: (input: FeishuAllowInput, options?: RequestOptions$6) => Promise<FeishuChannelSnapshot>;
|
|
3337
|
+
remove: (key: string, options?: RequestOptions$6) => Promise<FeishuChannelSnapshot>;
|
|
3301
3338
|
};
|
|
3302
3339
|
registration: {
|
|
3303
|
-
start: (input?: FeishuRegistrationStartInput, options?: RequestOptions$
|
|
3304
|
-
status: (options?: RequestOptions$
|
|
3305
|
-
cancel: (options?: RequestOptions$
|
|
3340
|
+
start: (input?: FeishuRegistrationStartInput, options?: RequestOptions$6) => Promise<FeishuRegistrationSnapshot>;
|
|
3341
|
+
status: (options?: RequestOptions$6) => Promise<FeishuRegistrationSnapshot>;
|
|
3342
|
+
cancel: (options?: RequestOptions$6) => Promise<FeishuRegistrationSnapshot>;
|
|
3306
3343
|
};
|
|
3307
3344
|
};
|
|
3308
3345
|
/** Submit external messages and work with durable delivery records. */
|
|
3309
3346
|
readonly connector: {
|
|
3310
3347
|
/** Retain the external message ID when retrying the same input. */
|
|
3311
|
-
submitMessage: (input: DurableChannelMessageInput, options?: RequestOptions$
|
|
3312
|
-
status: (query?: ChannelQuery, options?: RequestOptions$
|
|
3313
|
-
listPendingDeliveries: (query?: ChannelQuery, options?: RequestOptions$
|
|
3348
|
+
submitMessage: (input: DurableChannelMessageInput, options?: RequestOptions$6) => Promise<DurableChannelMessageResult>;
|
|
3349
|
+
status: (query?: ChannelQuery, options?: RequestOptions$6) => Promise<ChannelStatusSnapshot>;
|
|
3350
|
+
listPendingDeliveries: (query?: ChannelQuery, options?: RequestOptions$6) => Promise<ChannelDeliveryRecord[]>;
|
|
3314
3351
|
/** Look up the stored result after an interrupted request. Returns null for an unknown ID. */
|
|
3315
|
-
getDelivery: (deliveryId: string, options?: RequestOptions$
|
|
3316
|
-
recordDelivery: (deliveryId: string, input: RecordChannelDeliveryInput, options?: RequestOptions$
|
|
3352
|
+
getDelivery: (deliveryId: string, options?: RequestOptions$6) => Promise<ChannelDeliveryRecord | null>;
|
|
3353
|
+
recordDelivery: (deliveryId: string, input: RecordChannelDeliveryInput, options?: RequestOptions$6) => Promise<ChannelDeliveryRecord>;
|
|
3317
3354
|
};
|
|
3318
3355
|
}
|
|
3319
3356
|
|
|
@@ -3321,32 +3358,58 @@ declare class ChannelResource {
|
|
|
3321
3358
|
* ProjectResource: 项目目录探测、绑定、别名与元数据管理资源。
|
|
3322
3359
|
*/
|
|
3323
3360
|
|
|
3324
|
-
type RequestOptions$
|
|
3361
|
+
type RequestOptions$5 = {
|
|
3325
3362
|
signal?: AbortSignal;
|
|
3326
3363
|
};
|
|
3364
|
+
interface ProjectDirectory {
|
|
3365
|
+
workspaceId: string;
|
|
3366
|
+
projectId: string;
|
|
3367
|
+
name: string;
|
|
3368
|
+
path: string;
|
|
3369
|
+
rootIdentity?: {
|
|
3370
|
+
dev: string;
|
|
3371
|
+
ino: string;
|
|
3372
|
+
};
|
|
3373
|
+
available: boolean;
|
|
3374
|
+
lastOpenedAt: number;
|
|
3375
|
+
defaultShell?: string;
|
|
3376
|
+
}
|
|
3377
|
+
interface ProjectDirectorySnapshot {
|
|
3378
|
+
dataScopeId: string;
|
|
3379
|
+
projects: ProjectDirectory[];
|
|
3380
|
+
}
|
|
3327
3381
|
declare class ProjectResource {
|
|
3328
3382
|
private readonly transport;
|
|
3329
3383
|
constructor(transport: HttpTransport);
|
|
3384
|
+
/** Read the daemon's registered project directories and their current directory identities. */
|
|
3385
|
+
listDirectories(options?: RequestOptions$5): Promise<ProjectDirectorySnapshot>;
|
|
3386
|
+
/** Apply the default shell only while the observed project and registered directory still match. */
|
|
3387
|
+
setDirectoryDefaultShell(input: {
|
|
3388
|
+
dataScopeId: string;
|
|
3389
|
+
projectId: string;
|
|
3390
|
+
workspaceId: string;
|
|
3391
|
+
shell: string | null;
|
|
3392
|
+
}, options?: RequestOptions$5): Promise<ProjectDirectorySnapshot>;
|
|
3330
3393
|
/** `GET /projects` */
|
|
3331
3394
|
list(options?: ListProjectsOptions & {
|
|
3332
3395
|
signal?: AbortSignal;
|
|
3333
3396
|
}): Promise<ProjectRecord[]>;
|
|
3334
|
-
/** Register or reopen a
|
|
3335
|
-
register(path: string, options?: RequestOptions$
|
|
3397
|
+
/** Register or reopen a project on the daemon host, recording the directory identity and last-opened time. */
|
|
3398
|
+
register(path: string, options?: RequestOptions$5): Promise<ProjectRecord>;
|
|
3336
3399
|
/** Alias for register. This can create or restore a project record. */
|
|
3337
|
-
inspect(path: string, options?: RequestOptions$
|
|
3400
|
+
inspect(path: string, options?: RequestOptions$5): Promise<ProjectRecord>;
|
|
3338
3401
|
/** `PATCH /projects/:id` (name) */
|
|
3339
|
-
rename(projectId: string, name: string, options?: RequestOptions$
|
|
3402
|
+
rename(projectId: string, name: string, options?: RequestOptions$5): Promise<ProjectRecord>;
|
|
3340
3403
|
/** `PATCH /projects/:id` (pinned) */
|
|
3341
|
-
setPinned(projectId: string, pinned: boolean, options?: RequestOptions$
|
|
3404
|
+
setPinned(projectId: string, pinned: boolean, options?: RequestOptions$5): Promise<ProjectRecord>;
|
|
3342
3405
|
/** `PATCH /projects/:id` (defaultShell) */
|
|
3343
|
-
setDefaultShell(projectId: string, defaultShell: string | null, options?: RequestOptions$
|
|
3344
|
-
/**
|
|
3345
|
-
rebind(projectId: string, path: string, options?: string | (RequestOptions$
|
|
3406
|
+
setDefaultShell(projectId: string, defaultShell: string | null, options?: RequestOptions$5): Promise<ProjectRecord>;
|
|
3407
|
+
/** Rebind a project to the current directory at path. Pass the prior project path as expectedPath to reject a stale update. */
|
|
3408
|
+
rebind(projectId: string, path: string, options?: string | (RequestOptions$5 & {
|
|
3346
3409
|
expectedPath?: string;
|
|
3347
3410
|
})): Promise<ProjectRecord>;
|
|
3348
3411
|
/** `DELETE /projects/:id` */
|
|
3349
|
-
archive(projectId: string, options?: RequestOptions$
|
|
3412
|
+
archive(projectId: string, options?: RequestOptions$5): Promise<ProjectRecord>;
|
|
3350
3413
|
/** `POST /project/init` */
|
|
3351
3414
|
init(input: {
|
|
3352
3415
|
cwd: string;
|
|
@@ -3372,21 +3435,120 @@ interface TaskWorktreeRecord {
|
|
|
3372
3435
|
directoryRemoved?: boolean;
|
|
3373
3436
|
reason?: string;
|
|
3374
3437
|
}
|
|
3375
|
-
type RequestOptions$
|
|
3438
|
+
type RequestOptions$4 = {
|
|
3376
3439
|
signal?: AbortSignal;
|
|
3377
3440
|
};
|
|
3378
3441
|
/** Inspect and maintain task worktrees managed by the daemon. */
|
|
3379
3442
|
declare class WorktreeResource {
|
|
3380
3443
|
private readonly transport;
|
|
3381
3444
|
constructor(transport: HttpTransport);
|
|
3382
|
-
list(options?: RequestOptions$
|
|
3383
|
-
cleanup(id: string, options?: RequestOptions$
|
|
3384
|
-
setDisposable(id: string, disposable: boolean, options?: RequestOptions$
|
|
3445
|
+
list(options?: RequestOptions$4): Promise<TaskWorktreeRecord[]>;
|
|
3446
|
+
cleanup(id: string, options?: RequestOptions$4): Promise<void>;
|
|
3447
|
+
setDisposable(id: string, disposable: boolean, options?: RequestOptions$4): Promise<void>;
|
|
3385
3448
|
}
|
|
3386
3449
|
|
|
3450
|
+
interface GitWorkspaceRoot {
|
|
3451
|
+
path: string;
|
|
3452
|
+
identity: {
|
|
3453
|
+
dev: string;
|
|
3454
|
+
ino: string;
|
|
3455
|
+
};
|
|
3456
|
+
}
|
|
3457
|
+
type GitWorkspaceTarget = {
|
|
3458
|
+
dataScopeId: string;
|
|
3459
|
+
} & ({
|
|
3460
|
+
source: {
|
|
3461
|
+
projectId: string;
|
|
3462
|
+
workspaceId: string;
|
|
3463
|
+
};
|
|
3464
|
+
root: GitWorkspaceRoot;
|
|
3465
|
+
} | {
|
|
3466
|
+
source: {
|
|
3467
|
+
sessionId: string;
|
|
3468
|
+
};
|
|
3469
|
+
root: {
|
|
3470
|
+
path: string;
|
|
3471
|
+
identity?: GitWorkspaceRoot["identity"];
|
|
3472
|
+
};
|
|
3473
|
+
});
|
|
3474
|
+
type GitBranchOperation = {
|
|
3475
|
+
kind: "git.switchBranch" | "git.createBranch";
|
|
3476
|
+
body: {
|
|
3477
|
+
branch: string;
|
|
3478
|
+
expectedHead: string;
|
|
3479
|
+
};
|
|
3480
|
+
};
|
|
3481
|
+
interface GitBranchReceipt {
|
|
3482
|
+
requestId: string;
|
|
3483
|
+
kind: GitBranchOperation["kind"];
|
|
3484
|
+
state: "prepared" | "running" | "completed" | "failed" | "unknown";
|
|
3485
|
+
result?: {
|
|
3486
|
+
root: string;
|
|
3487
|
+
commonDir: string;
|
|
3488
|
+
head: string;
|
|
3489
|
+
branch: string;
|
|
3490
|
+
changes: string[];
|
|
3491
|
+
};
|
|
3492
|
+
error?: {
|
|
3493
|
+
code: string;
|
|
3494
|
+
};
|
|
3495
|
+
createdAt: number;
|
|
3496
|
+
updatedAt: number;
|
|
3497
|
+
}
|
|
3498
|
+
type GitChangesOptions = {
|
|
3499
|
+
range?: "uncommitted" | "working" | "staged";
|
|
3500
|
+
ignoreWhitespace?: boolean;
|
|
3501
|
+
};
|
|
3502
|
+
type GitDiffOptions = GitChangesOptions & {
|
|
3503
|
+
path?: string;
|
|
3504
|
+
base?: string;
|
|
3505
|
+
head?: string;
|
|
3506
|
+
};
|
|
3507
|
+
type RequestOptions$3 = {
|
|
3508
|
+
signal?: AbortSignal;
|
|
3509
|
+
};
|
|
3510
|
+
/** Git operations for a project directory or a session's actual execution directory. */
|
|
3511
|
+
declare class GitWorkspaceResource {
|
|
3512
|
+
private readonly transport;
|
|
3513
|
+
private readonly target;
|
|
3514
|
+
constructor(transport: HttpTransport, target: GitWorkspaceTarget);
|
|
3515
|
+
status(options?: RequestOptions$3): Promise<{
|
|
3516
|
+
root: string;
|
|
3517
|
+
commonDir: string;
|
|
3518
|
+
head: string;
|
|
3519
|
+
branch: string;
|
|
3520
|
+
changes: string[];
|
|
3521
|
+
}>;
|
|
3522
|
+
listBranches(options?: RequestOptions$3): Promise<{
|
|
3523
|
+
branches: string[];
|
|
3524
|
+
}>;
|
|
3525
|
+
changes(params?: GitChangesOptions, options?: RequestOptions$3): Promise<{
|
|
3526
|
+
files: {
|
|
3527
|
+
path: string;
|
|
3528
|
+
oldPath?: string;
|
|
3529
|
+
status: "added" | "modified" | "deleted" | "renamed" | "copied" | "untracked";
|
|
3530
|
+
additions: number | null;
|
|
3531
|
+
deletions: number | null;
|
|
3532
|
+
binary: boolean;
|
|
3533
|
+
}[];
|
|
3534
|
+
totalAdditions: number;
|
|
3535
|
+
totalDeletions: number;
|
|
3536
|
+
}>;
|
|
3537
|
+
diff(params?: GitDiffOptions, options?: RequestOptions$3): Promise<{
|
|
3538
|
+
text: string;
|
|
3539
|
+
truncated: boolean;
|
|
3540
|
+
}>;
|
|
3541
|
+
/** Submit an original branch operation for a registered project. */
|
|
3542
|
+
changeBranch(requestId: string, original: GitBranchOperation, options?: RequestOptions$3): Promise<GitBranchReceipt>;
|
|
3543
|
+
/** Query the same original body and request ID after an interrupted branch operation. */
|
|
3544
|
+
getBranchOperation(requestId: string, original: GitBranchOperation, options?: RequestOptions$3): Promise<GitBranchReceipt | null>;
|
|
3545
|
+
private read;
|
|
3546
|
+
}
|
|
3387
3547
|
declare class GitResource {
|
|
3388
3548
|
private readonly transport;
|
|
3389
3549
|
constructor(transport: HttpTransport);
|
|
3550
|
+
/** Open Git operations for a registered project or an existing session in the current daemon. */
|
|
3551
|
+
workspace(target: GitWorkspaceTarget): GitWorkspaceResource;
|
|
3390
3552
|
/** `GET /git/diff?cwd=&full=` */
|
|
3391
3553
|
getDiff(options: {
|
|
3392
3554
|
cwd: string;
|
|
@@ -4349,5 +4511,5 @@ declare function isWorkMode(value: unknown): value is WorkMode;
|
|
|
4349
4511
|
declare function readSessionRuntimeConfig(session: SessionRecord, defaults?: Partial<SessionRuntimeConfig>): SessionRuntimeConfig;
|
|
4350
4512
|
declare function patchSessionRuntimeMetadata(metadata: Record<string, unknown>, patch: SessionRuntimeConfigPatch): Record<string, unknown>;
|
|
4351
4513
|
|
|
4352
|
-
export { AttachmentResource, BobanNomiApiError, BobanNomiClient, CURRENT_PROTOCOL_VERSION, ChannelResource, CommandResource, ContextResource, DiagnosticResource, EventResource, GitResource, HookResource, HttpTransport, IncompatibleProtocolError, MaintenanceResource, McpResource, McpServersResource, MemoryResource, PermissionResource, PluginMarketplaceResource, PluginResource, ProjectResource, ProtocolClient, ProtocolValidationError, ScheduleResource, SessionResource, SessionSyncController, SettingsResource, SseTransport, TerminalResource, UnsupportedSessionEventSchemaVersionError, WorktreeResource, applyEvent, applyEvents, attachmentRangeHeader, checkProtocolCompatibility, createClientState, createSessionRequestId, getVisibleSessionMessages, hydrateState, isSupersededModelPart, isWorkMode, normalizeApprovalMode, normalizeDaemonBaseUrl, parseCreateSessionGoalInput, parseGoalActionInput, parseMcpCallResultData, parseUpdateSessionGoalInput, patchSessionRuntimeMetadata, readRuntimeMetadata, readSessionModelRetryState, readSessionModelUsage, readSessionRuntimeConfig, readWorkspaceChangesMetadata, replaceSessionState, responseArray, responseField, selectFirstPendingPermission, selectSessionInputs, selectSessionMessagesWithParts, selectSessionModelRetry, selectSessionModelUsage, selectSessionOrderedMessages, selectSessionParts, selectSessionPermissions, selectSessionRuns, selectSessionTasks, streamServerSentEvents, supportsFeature, syncEvents };
|
|
4353
|
-
export type { AdmitClientPromptInput, AdmitPromptAttachmentInput, AgentEnvironmentCapabilities, AgentPersonaInfo, ApprovalMode, ApprovalReviewRecord, AttachmentAssetRecord, AttachmentStorageGcResult, AttachmentStorageIssue, AttachmentStorageRepairResult, AttachmentStorageReport, AuthStatus, BobanNomiClientOptions, BobanNomiClientState, BobanNomiServerHealth, CancelQueuedClientPromptInput, CancelQueuedPromptResponse, CancelResponseMode, ChannelConnectorRuntimeStatus, ChannelDeliveryRecord, ChannelDeliveryStatus, ChannelDenialNotice, ChannelDomain, ChannelQuery, ChannelRuntimeControlInput, ChannelRuntimeState, ChannelRuntimeStatus, ChannelStatusSnapshot, CheckPermissionConfigurationInput, CleanupCandidate, CleanupPreview, CleanupResult, ClearMemoryInput, ClientModelConnection, ClientModelProvider, ClientProtocolSupport, CommandCatalogEntry, CommandKind, CommandSelection, CommandSource, ConfigureClientSessionInput, ContextBucketId, ContextUsageBucket, ContextUsageSnapshot, ContextUsageTip, ContextUsageTipCode, CreateBackgroundShellInput, CreateBackgroundShellResult, CreateClientSessionInput, CreateScheduledTaskInput, CreateSessionByProjectInput, CreateSessionGoalInput, CreateSessionWithDirectoryInput, CustomModelProviderInput, DaemonRestartPreview, DiagnosticExecutionQuery, DispatchedSessionCreation, DispatchedSessionCreationRequest, DownloadAttachmentOptions, DraftComposerOptions, DraftComposerTarget, DurableChannelMessageInput, DurableChannelMessageResult, EditLatestClientPromptInput, EventSyncOptions, ExecutionInstructions, ExpectedModelConnection, ExternalConversationRecord, FactReplacementResult, FeishuAllowInput, FeishuChannelSnapshot, FeishuComposedSnapshot, FeishuConnectInput, FeishuPatchInput, FeishuRegistrationSnapshot, FeishuRegistrationStartInput, FeishuRegistrationState, ForkClientSessionInput, GlobalPermissionRules, GlobalSettingsPatch, GoalActionInput, GoalExternalWait, GoalStopReason, HookInfo, HostDiagnosticSnapshots, HttpRequestOptions, HttpTransportOptions, InputDelivery, InterruptSessionResponse, IsolationSettings, JobCancelReceipt, JobCapabilities, JobInputReceipt, JobKind, JobListResult, JobReadResult, JobSnapshot, JobStatus, JobTarget, JobWaitResult, JsonValue, ListClientMessagePartsOptions, ListCommandsOptions, ListEventsOptions, ListMessagePartsOptions, ListMessagesOptions, ListPermissionsOptions, ListProjectsOptions, ListSessionJobsOptions, ListSessionsOptions, MaintenanceBackupManifest, MaintenanceBackupResult, MarketplaceAddSourceRequest, MarketplaceCancelRequest, MarketplaceCancelResponse, MarketplaceCatalog, MarketplaceCatalogRequest, MarketplaceEntry, MarketplaceInstallInput, MarketplaceInstallRequest, MarketplaceOperation, MarketplacePreview, MarketplacePreviewRequest, MarketplaceProvenance, MarketplaceSelection, MarketplaceSource, MarketplaceSourceEnabledRequest, MarketplaceSourceView, MarketplaceSourcesResponse, McpConfigOperationResult, McpManagedServerConfig, McpManagedServerSummary, McpOAuthLoginInput, McpOAuthLoginResponse, McpOAuthStatusSnapshot, McpRuntimeStatus, McpRuntimeSyncResult, McpServerInventoryEntry, McpServerRuntimeRef, McpServerStatus, MemoryEntryRecord, MemoryListResponse, MemoryRevision, ModelInfo, ModelProviderConnection, ModelProviderInfo, ModelProviderRequest, OAuthOperationEvent, OAuthOperationView, OutputStyleInfo, PermissionConfigurationSnapshot, PermissionRequestRecord, PermissionStatus, PersonalizationMemoryPreferences, PersonalizationSettingsSnapshot, PluginArchiveError, PluginArchiveInstallInput, PluginArchivePreview, PluginArchivePreviewInput, PluginGitInstallInput, PluginGitPreview, PluginGitPreviewInput, PluginInfo, PluginListResult, PluginLocalInstallInput, PluginLocalPreview, PluginLocalPreviewInput, PluginRuntimeStatus, PortableSettingsFile, PortableSettingsPreview, ProjectFactRecord, ProjectRecord, PromoteQueuedClientPromptInput, PromoteQueuedPromptResponse, PromptResponse, ProtocolCompatibility, ProviderConnectionTestResult, ProviderDefaultsRequest, ProviderDefaultsSnapshot, ProviderInfo, QueuedPromptCancelReceipt, RawRequestOptions, RecordChannelDeliveryInput, ReloadPluginsResponse, RememberSessionResponse, ReplyPermissionInput, ResolvedSessionConfiguration, ResumeInterruptedRunInput, ResumeInterruptedRunResponse, RewindSessionResponse, RunResult, RuntimeEnvironmentCheck, RuntimeEnvironmentConfig, RuntimeSettingsSnapshot, SavePersonalizationSettingsInput, SaveRuntimeEnvironmentInput, ScheduledRunRecord, ScheduledTaskRecord, ScheduledTaskStatusSummary, SearchSessionsOptions, ServerCapabilities, SessionActivityPage, SessionAttachmentMessagePartRecord, SessionBucket, SessionComposerContext, SessionConfigurationInput, SessionConfigurationOptions, SessionConfigurationResultInput, SessionConfigurationSnapshot, SessionControlOriginal, SessionControlReceipt, SessionControls, SessionCreationInput, SessionCreationReceipt, SessionDirectoryEntry, SessionDirectoryPage, SessionDirectoryResult, SessionEventRecord, SessionExecutionRecord, SessionExportResponse, SessionFileErrorCode, SessionFileFindInput, SessionFileFindOptions, SessionFileInfo, SessionFileListInput, SessionFileListOptions, SessionFileReadInput, SessionFileReadOptions, SessionFileRequestOptions, SessionFileSearchInput, SessionFileSearchMatch, SessionFileSearchOptions, SessionFileStatInput, SessionFindFilesResult, SessionGoal, SessionGoalRequestReceipt,
|
|
4514
|
+
export { AttachmentResource, BobanNomiApiError, BobanNomiClient, CURRENT_PROTOCOL_VERSION, ChannelResource, CommandResource, ContextResource, DiagnosticResource, EventResource, GitResource, GitWorkspaceResource, HookResource, HttpTransport, IncompatibleProtocolError, MaintenanceResource, McpResource, McpServersResource, MemoryResource, PermissionResource, PluginMarketplaceResource, PluginResource, ProjectResource, ProtocolClient, ProtocolValidationError, ScheduleResource, SessionResource, SessionSyncController, SettingsResource, SseTransport, TerminalResource, UnsupportedSessionEventSchemaVersionError, WorktreeResource, applyEvent, applyEvents, attachmentRangeHeader, checkProtocolCompatibility, createClientState, createSessionRequestId, getVisibleSessionMessages, hydrateState, isSupersededModelPart, isWorkMode, normalizeApprovalMode, normalizeDaemonBaseUrl, parseCreateSessionGoalInput, parseGoalActionInput, parseMcpCallResultData, parseUpdateSessionGoalInput, patchSessionRuntimeMetadata, readRuntimeMetadata, readSessionModelRetryState, readSessionModelUsage, readSessionRuntimeConfig, readWorkspaceChangesMetadata, replaceSessionState, responseArray, responseField, selectFirstPendingPermission, selectSessionInputs, selectSessionMessagesWithParts, selectSessionModelRetry, selectSessionModelUsage, selectSessionOrderedMessages, selectSessionParts, selectSessionPermissions, selectSessionRuns, selectSessionTasks, streamServerSentEvents, supportsFeature, syncEvents };
|
|
4515
|
+
export type { AdmitClientPromptInput, AdmitPromptAttachmentInput, AgentEnvironmentCapabilities, AgentPersonaInfo, ApprovalMode, ApprovalReviewRecord, AttachmentAssetRecord, AttachmentRequestOptions, AttachmentStorageGcResult, AttachmentStorageIssue, AttachmentStorageRepairResult, AttachmentStorageReport, AuthStatus, BobanNomiClientOptions, BobanNomiClientState, BobanNomiServerHealth, CancelQueuedClientPromptInput, CancelQueuedPromptResponse, CancelResponseMode, ChannelConnectorRuntimeStatus, ChannelDeliveryRecord, ChannelDeliveryStatus, ChannelDenialNotice, ChannelDomain, ChannelQuery, ChannelRuntimeControlInput, ChannelRuntimeState, ChannelRuntimeStatus, ChannelStatusSnapshot, CheckPermissionConfigurationInput, CleanupCandidate, CleanupPreview, CleanupResult, ClearMemoryInput, ClientModelConnection, ClientModelProvider, ClientProtocolSupport, CommandCatalogEntry, CommandKind, CommandSelection, CommandSource, ConfigureClientSessionInput, ContextBucketId, ContextUsageBucket, ContextUsageSnapshot, ContextUsageTip, ContextUsageTipCode, CreateBackgroundShellInput, CreateBackgroundShellResult, CreateClientSessionInput, CreateScheduledTaskInput, CreateSessionByProjectInput, CreateSessionGoalInput, CreateSessionWithDirectoryInput, CreatedSession, CustomModelProviderInput, DaemonRestartPreview, DeleteAttachmentOptions, DiagnosticExecutionQuery, DispatchedSessionCreation, DispatchedSessionCreationRequest, DownloadAttachmentOptions, DraftComposerOptions, DraftComposerTarget, DurableChannelMessageInput, DurableChannelMessageResult, EditLatestClientPromptInput, EventSyncOptions, ExecutionInstructions, ExpectedModelConnection, ExternalConversationRecord, FactReplacementResult, FeishuAllowInput, FeishuChannelSnapshot, FeishuComposedSnapshot, FeishuConnectInput, FeishuPatchInput, FeishuRegistrationSnapshot, FeishuRegistrationStartInput, FeishuRegistrationState, ForkClientSessionInput, GitBranchOperation, GitBranchReceipt, GitWorkspaceRoot, GitWorkspaceTarget, GlobalPermissionRules, GlobalSettingsPatch, GoalActionInput, GoalExternalWait, GoalStopReason, HookInfo, HostDiagnosticSnapshots, HttpRequestOptions, HttpTransportOptions, InputDelivery, InterruptSessionResponse, IsolationSettings, JobCancelReceipt, JobCapabilities, JobInputReceipt, JobKind, JobListResult, JobReadResult, JobSnapshot, JobStatus, JobTarget, JobWaitResult, JsonValue, ListClientMessagePartsOptions, ListCommandsOptions, ListEventsOptions, ListMessagePartsOptions, ListMessagesOptions, ListPermissionsOptions, ListProjectsOptions, ListSessionJobsOptions, ListSessionsOptions, MaintenanceBackupManifest, MaintenanceBackupResult, MarketplaceAddSourceRequest, MarketplaceCancelRequest, MarketplaceCancelResponse, MarketplaceCatalog, MarketplaceCatalogRequest, MarketplaceEntry, MarketplaceInstallInput, MarketplaceInstallRequest, MarketplaceOperation, MarketplacePreview, MarketplacePreviewRequest, MarketplaceProvenance, MarketplaceSelection, MarketplaceSource, MarketplaceSourceEnabledRequest, MarketplaceSourceView, MarketplaceSourcesResponse, McpConfigOperationResult, McpManagedServerConfig, McpManagedServerSummary, McpOAuthLoginInput, McpOAuthLoginResponse, McpOAuthStatusSnapshot, McpRuntimeStatus, McpRuntimeSyncResult, McpServerInventoryEntry, McpServerRuntimeRef, McpServerStatus, MemoryEntryRecord, MemoryListResponse, MemoryRevision, ModelInfo, ModelProviderConnection, ModelProviderInfo, ModelProviderRequest, OAuthOperationEvent, OAuthOperationView, OutputStyleInfo, PermissionConfigurationSnapshot, PermissionRequestRecord, PermissionStatus, PersonalizationMemoryPreferences, PersonalizationSettingsSnapshot, PluginArchiveError, PluginArchiveInstallInput, PluginArchivePreview, PluginArchivePreviewInput, PluginGitInstallInput, PluginGitPreview, PluginGitPreviewInput, PluginInfo, PluginListResult, PluginLocalInstallInput, PluginLocalPreview, PluginLocalPreviewInput, PluginRuntimeStatus, PortableSettingsFile, PortableSettingsPreview, ProjectDirectory, ProjectDirectorySnapshot, ProjectFactRecord, ProjectRecord, PromoteQueuedClientPromptInput, PromoteQueuedPromptResponse, PromptResponse, ProtocolCompatibility, ProviderConnectionTestResult, ProviderDefaultsRequest, ProviderDefaultsSnapshot, ProviderInfo, QueuedPromptCancelReceipt, RawRequestOptions, RecordChannelDeliveryInput, ReloadPluginsResponse, RememberSessionResponse, ReplyPermissionInput, ResolvedSessionConfiguration, ResumeInterruptedRunInput, ResumeInterruptedRunResponse, RewindSessionResponse, RunResult, RuntimeEnvironmentCheck, RuntimeEnvironmentConfig, RuntimeSettingsSnapshot, SavePersonalizationSettingsInput, SaveRuntimeEnvironmentInput, ScheduledRunRecord, ScheduledTaskRecord, ScheduledTaskStatusSummary, SearchSessionsOptions, ServerCapabilities, Session, SessionActivityPage, SessionAttachmentMessagePartRecord, SessionBucket, SessionComposerContext, SessionConfigurationInput, SessionConfigurationOptions, SessionConfigurationResultInput, SessionConfigurationSnapshot, SessionControlOriginal, SessionControlReceipt, SessionControls, SessionCreationInput, SessionCreationReceipt, SessionDirectoryEntry, SessionDirectoryPage, SessionDirectoryResult, SessionEventRecord, SessionExecutionRecord, SessionExportResponse, SessionFileErrorCode, SessionFileFindInput, SessionFileFindOptions, SessionFileInfo, SessionFileListInput, SessionFileListOptions, SessionFileReadInput, SessionFileReadOptions, SessionFileRequestOptions, SessionFileSearchInput, SessionFileSearchMatch, SessionFileSearchOptions, SessionFileStatInput, SessionFindFilesResult, SessionGoal, SessionGoalRequestReceipt, SessionInputAttachmentRecord, SessionInputRecord, SessionManagementAction, SessionMessagePartRecord, SessionMessageRecord, SessionMessageWithParts, SessionModelRetryState, SessionModelUsageSummary, SessionMutationPublicReceipt, SessionObservation, SessionPromptInput, SessionRecord, SessionResourceRevision, SessionRunAttemptRecord, SessionRunRecord, SessionRuntimeConfig, SessionRuntimeConfigPatch, SessionSearchFilesResult, SessionSearchResult, AgentSessionStateSnapshot as SessionStateSnapshot, SessionSyncControllerOptions, SessionTextFileResult, SessionTransformationMessagePartRecord, SessionUsageResponse, SessionUserInputItem, SkillInfo, SkillInstallInput, SkillMarketplaceEntry, SkillMarketplaceInstallInput, SkillProject, SkillSnapshot, SkillSource, StartDreamResponse, StorageCategory, StorageReport, StorageRetentionPolicy, SyncConnectionStatus, SyncEventUpdate, SyncEventsClient, TaskWorktreeRecord, TerminalCreateRequest, TerminalEvent, TerminalReadRequest, TerminalReadResult, TerminalResizeRequest, TerminalRuntime, TerminalSessionInfo, TerminalSessionStatus, TerminalSignal, TerminalSource, TerminalWriteRequest, UpdateMemoryEntryInput, UpdateScheduledTaskInput, UpdateSessionGoalInput, UploadAttachmentInput, UsageFilter, UsagePrice, UsageReport, UsageRequest, UsageSettings, WorkMode, WorkspaceChangeFile, WorkspaceChangesMetadata };
|