@ycodium-ai/plugin-api 0.2.6072 → 0.2.6153

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.
@@ -209,7 +209,7 @@ export type ThreadsExecutionGetOutput = { readonly threadId: string, readonly pr
209
209
  export type ThreadsTurnStartsCountInput = { readonly threadIds: ReadonlyArray<string> };
210
210
  export type ThreadsTurnStartsCountOutput = number;
211
211
  export type ThreadsMessagesGetInput = { readonly messageId: string };
212
- export type ThreadsMessagesGetOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
212
+ export type ThreadsMessagesGetOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly confirmedSequence?: number | null | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly modelSelection?: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_ } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
213
213
  export type ThreadsUserInputPendingListInput = { readonly threadId: string };
214
214
  export type ThreadsUserInputPendingListOutput = ReadonlyArray<{ readonly requestId: string, readonly createdAt: string, readonly questions: ReadonlyArray<{ readonly id: string, readonly header: string, readonly question: string, readonly options: ReadonlyArray<{ readonly value: string, readonly label: string, readonly description: string, readonly planAction?: "approve" | "revise" | "stop", readonly displayKind?: "acknowledge" }>, readonly multiSelect: boolean, readonly allowFreeform: boolean, readonly kind: "question" | "plan" }> }>;
215
215
  export type ThreadsCommandReceiptsGetInput = { readonly commandId: string, readonly commandType: string, readonly threadId?: string };
@@ -732,7 +732,7 @@ export type ThreadsListEncodedOutput = { readonly items: ReadonlyArray<{ readonl
732
732
  export type ThreadsArchivedListEncodedOutput = { readonly snapshotSequence: number, readonly projects: ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>, readonly threads: ReadonlyArray<{ readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined }>, readonly updatedAt: string };
733
733
  export type ThreadsHistoryEncodedOutput = { readonly snapshotSequence: number, readonly historyEpoch?: string, readonly thread: { readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly actualModel?: { readonly selection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly requested: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly source: "reported" | "echo", readonly turnId?: string | undefined, readonly recordedAt: string } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly nativeModeId?: string | null | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly pendingNotifications?: ReadonlyArray<{ readonly dedupeKey: string, readonly notification: { readonly kind: "child.settled" | "child.failed" | "child.approval" | "child.question" | "child.stopped" | "child.resolved", readonly childThreadId: string, readonly childTitle: string, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string } | { readonly kind: "plugin.notice" | "selfdev.resolved" | "cookie-import.resolved" | "remote.post", readonly sourceThreadId?: string | undefined, readonly sourceTitle?: string | undefined, readonly childThreadId?: string | undefined, readonly childTitle?: string | undefined, readonly remotePost?: { readonly postId: string, readonly targetKey: string, readonly authorKind: "human" | "agent", readonly authorName?: string | undefined, readonly authorThreadId?: string | undefined, readonly homeName?: string | undefined } | undefined, readonly summary: string, readonly requestId?: string | undefined, readonly questionRequest?: ChildQuestionRequest, readonly resolution?: "approved" | "denied" | "handled" | "answered" | "dismissed" | undefined, readonly pluginId?: string | undefined, readonly recordId?: string | undefined, readonly postId?: string }, readonly queuedAt: string }> | undefined, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly turnIntents?: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly paused?: boolean, readonly revision?: number, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly legacyModelSelection: { readonly instanceId: string, readonly model: string, readonly options?: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }> | { readonly [x: string]: unknown } }, readonly runSettings?: { readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode: "default" | "plan", readonly nativeModeId?: string }, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly sourceBlocks?: ReadonlyArray<{ readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string }, readonly textOffset: number, readonly textLength: number }>, readonly noticesFolded?: true, readonly binding?: { readonly bindingId: string, readonly generation: number, readonly selection: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } }, readonly compatibility: { readonly match: "native" | "via-adapter" | "unsupported" | "unknown", readonly reasonCode: "native-protocol" | "native-source" | "protocol-conversion" | "wrong-environment" | "resource-missing" | "resource-disabled" | "revision-conflict" | "source-mismatch" | "endpoint-mismatch" | "model-mapping-missing" | "driver-missing" | "driver-unknown" | "driver-identity-mismatch" | "external-endpoint-unsupported" | "protocol-unknown" | "protocol-unsupported" | "auth-unsupported" | "source-ownership-mismatch" | "platform-unsupported" | "version-unknown" | "version-unsupported" | "feature-unsupported" | "feature-unknown" | "capability-validation-failed" | "invalid-options" | "endpoint-invalid", readonly endpointId: string | null, readonly requestedModelId: string | null, readonly effectiveOptions: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly conversion: { readonly id: string, readonly version: string, readonly from: string, readonly to: string, readonly enabled: boolean, readonly capabilities: { readonly text: "supported" | "unsupported" | "unknown", readonly streaming: "supported" | "unsupported" | "unknown", readonly "tool-calls": "supported" | "unsupported" | "unknown", readonly "image-input": "supported" | "unsupported" | "unknown", readonly "audio-input": "supported" | "unsupported" | "unknown", readonly "structured-output": "supported" | "unsupported" | "unknown", readonly reasoning: "supported" | "unsupported" | "unknown" }, readonly limitations: ReadonlyArray<string>, readonly validationRefs: ReadonlyArray<string> } | null, readonly limitations: ReadonlyArray<string>, readonly evidence: ReadonlyArray<{ readonly recordId: string, readonly freshness: "current" | "stale" }>, readonly fingerprint: string | null }, readonly credentialIdentity: { readonly id: string, readonly revision: number } | null, readonly requestedModelId: string, readonly executedModelId: string | null } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt?: { readonly attemptId: string, readonly intentId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly deliveredTurnId?: string | null, readonly blockedReason?: string | null, readonly replacementIntentId?: string | null, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly scheduledWakes?: ReadonlyArray<{ readonly wakeId: string, readonly threadId: string, readonly dueAt: string, readonly note: string, readonly createdBy: { readonly kind: "thread", readonly threadId: string } | { readonly kind: "person" } | { readonly kind: "plugin", readonly pluginId: string }, readonly state: "scheduled" | "fired" | "cancelled", readonly afterServerUpgrade: boolean, readonly scheduledOnServerVersion: string | null, readonly intentId: string | null, readonly skipped?: true, readonly firedAt: string | null, readonly cancelledAt: string | null, readonly upgrade?: { readonly requestedVersion: string, readonly updateId: string | null, readonly expectsVerdict?: boolean | undefined, readonly outcome: { readonly status: "committed" | "rolled-back" | "failed" | "unknown", readonly targetVersion?: string | undefined, readonly fromVersion: string | null, readonly reason: string | null } | null } | undefined, readonly repeat?: { readonly cron: string, readonly timeZone: string } | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly turnQueuePaused?: boolean | undefined, readonly turnQueuePauseSource?: "automatic-failure" | "manual" | "unknown" | undefined, readonly acceptedInteractionRequestIds?: ReadonlyArray<string> | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly deletedAt: string | null, readonly messages: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string }>, readonly proposedPlans?: ReadonlyArray<{ readonly id: string, readonly turnId: string | null, readonly planMarkdown: string, readonly implementedAt?: string | null | undefined, readonly implementationThreadId?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string }> | undefined, readonly activities: ReadonlyArray<{ readonly id: string, readonly tone: "info" | "tool" | "approval" | "error", readonly kind: string, readonly summary: string, readonly payload: unknown, readonly turnId: string | null, readonly sequence?: number | undefined, readonly createdAt: string }>, readonly checkpoints: ReadonlyArray<{ readonly turnId: string, readonly checkpointTurnCount: number, readonly checkpointRef: string, readonly status: "ready" | "missing" | "error", readonly files: ReadonlyArray<{ readonly path: string, readonly kind: string, readonly additions: number, readonly deletions: number }>, readonly assistantMessageId: string | null, readonly completedAt: string }>, readonly turnSummaries?: ReadonlyArray<{ readonly turnId: string, readonly userMessageId?: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }>, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> }> | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null }, readonly page?: { readonly beforeCursor: string | null, readonly hasMore: boolean, readonly afterCursor?: string | null, readonly hasNewer?: boolean, readonly boundedHistory?: boolean, readonly history?: { readonly turnIds: ReadonlyArray<string>, readonly messageIds: ReadonlyArray<string>, readonly activityIds: ReadonlyArray<string>, readonly proposedPlanIds: ReadonlyArray<string>, readonly checkpointTurnIds: ReadonlyArray<string>, readonly turnIntentIds: ReadonlyArray<string> }, readonly snapshotSequence: number, readonly threadSequence?: number } | undefined };
734
734
  export type ThreadsExecutionGetEncodedOutput = { readonly threadId: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly origin: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null, readonly forkedFrom: { readonly sourceThreadId: string, readonly sourceMessageId: string } | null, readonly session: { readonly activeTurnId: string | null, readonly lastError: string | null, readonly updatedAt: string, readonly endReason?: "server-restart", readonly failureCategory?: string, readonly status: string, readonly providerInstanceId: string | null } | null, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly turnIntents: ReadonlyArray<{ readonly intentId: string, readonly threadId: string, readonly sequence: number, readonly commandId: string, readonly messageId: string, readonly action?: { readonly kind: "steer" | "interrupt", readonly turnId: string, readonly commandId: string, readonly source?: "automatic" } | null, readonly deliveredTurnId?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly revision: number, readonly turn: { readonly turnId: string | null, readonly userMessageId: string, readonly state: "pending" | "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly waitSpans: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> } | null, readonly status: "queued" | "preparing" | "dispatching" | "running" | "completed" | "interrupted" | "failed" | "reconciling" | "blocked" | "cancelled" | "abandoned", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly attempt: { readonly attemptId: string, readonly workerEpoch: number, readonly sourceBindingId: string | null, readonly targetBindingId: string | null, readonly nativeLocator: { readonly sessionId?: string, readonly turnId?: string, readonly generationId?: string } | null, readonly stage: "preparing" | "dispatching" | "running" | "reconciling", readonly deliveryCertainty: "not-dispatched" | "confirmed" | "unknown", readonly createdAt: string, readonly updatedAt: string } | null, readonly blockedReason: string | null, readonly replacementIntentId: string | null }>, readonly queuePaused: boolean, readonly providerProcessLive: boolean, readonly hasPendingApprovals: boolean, readonly hasPendingUserInput: boolean, readonly pendingApprovalCount: number, readonly pendingUserInputCount: number, readonly turnStartCount: number } | null;
735
- export type ThreadsMessagesGetEncodedOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
735
+ export type ThreadsMessagesGetEncodedOutput = { readonly messageId: string, readonly role: string, readonly text: string, readonly turnId: string | null, readonly createdAt: string, readonly confirmedSequence?: number | null | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly attachments: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "snap-shot", readonly capturedAt: string, readonly appName: string, readonly windowTitle: string, readonly accessibleText?: string | undefined, readonly accessibility?: { readonly format: "flat-text", readonly text: string, readonly truncated: boolean } | { readonly format: "element-tree", readonly coordinateSpace: "captured-image", readonly imageSize: { readonly width: number, readonly height: number }, readonly truncated: boolean, readonly root: Objects_4 } | undefined, readonly appIdentifier?: string | undefined, readonly appIconDataUrl?: string | undefined } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | undefined } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number, readonly source?: { readonly _tag: "pasted-text" } | { readonly _tag: "agent-artifact", readonly sourcePath: string, readonly linkBase?: string | undefined, readonly toolCallId?: string | undefined, readonly title?: string | undefined, readonly note?: string | undefined, readonly delivered?: true | undefined, readonly sha256?: string | undefined, readonly fileCount?: number | undefined, readonly deliveryId?: string | undefined } | { readonly _tag: "thread-reference", readonly environmentId: string, readonly threadId: string } | undefined }> } | null;
736
736
  export type ThreadsGetEncodedOutput = { readonly nativeSessionImported?: true, readonly id: string, readonly projectId: string, readonly title: string, readonly modelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined }, readonly executionSelection?: { readonly environmentId: string, readonly runtimeId: string, readonly sourceId: string, readonly profileId: string, readonly endpointId?: string, readonly optionOverrides: ReadonlyArray<{ readonly id: string, readonly value: string | boolean }>, readonly expectedRevisions: { readonly runtime: number, readonly source: number, readonly profile: number, readonly endpoint?: number } } | undefined, readonly runtimeMode: "approval-required" | "auto-accept-edits" | "auto" | "full-access", readonly nativeModeId?: string | null | undefined, readonly interactionMode?: "default" | "plan" | undefined, readonly branch: string | null, readonly worktreePath: string | null, readonly startFolderId?: string | null | undefined, readonly folderIds?: ReadonlyArray<string> | undefined, readonly linkedPullRequest?: { readonly projectId: string, readonly repository: string, readonly number: number, readonly url: string } | null | undefined, readonly origin?: { readonly parentThreadId: string, readonly delegationDepth: number, readonly requestedBy: "agent" | "continuation" | "person", readonly notificationPolicy?: "wake" | "activity-only" | undefined } | null | undefined, readonly forkedFrom?: { readonly sourceThreadId: string, readonly sourceMessageId: string, readonly sourceTurnNumber?: number } | null | undefined, readonly presetId?: string | null | undefined, readonly memberId?: string | undefined, readonly members?: ThreadMembers_1, readonly createdBy?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly creatorPrincipal?: ThreadCreatorPrincipal_1, readonly latestTurn: { readonly turnId: string, readonly state: "running" | "interrupted" | "completed" | "error", readonly requestedAt: string, readonly startedAt: string | null, readonly completedAt: string | null, readonly assistantMessageId: string | null, readonly userMessageId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly sourceProposedPlan?: { readonly threadId: string, readonly planId: string } | undefined, readonly waitSpans?: ReadonlyArray<{ readonly kind: "approval" | "userInput", readonly requestId: string, readonly startedAt: string, readonly completedAt: string | null, readonly waitingForYouStartedAt?: string | null | undefined }> | undefined, readonly runSegments?: ReadonlyArray<{ readonly startedAt: string, readonly endedAt: string | null }> | undefined } | null, readonly stopRequestedAt?: string | null, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined, readonly settledOverride?: "settled" | "active" | null | undefined, readonly settledAt?: string | null | undefined, readonly unsettledAt?: string | null | undefined, readonly snoozedUntil?: string | null | undefined, readonly snoozedAt?: string | null | undefined, readonly pinnedAt?: string | null | undefined, readonly pinOrderKey?: string | null | undefined, readonly sortOrderKey?: string | null | undefined, readonly titleRegeneration?: { readonly requestId: string, readonly startedAt: string } | null | undefined, readonly titleState?: { readonly source: "manual" | "generated", readonly version: string, readonly needsRefinement: boolean } | null | undefined, readonly session: { readonly threadId: string, readonly status: "idle" | "starting" | "running" | "ready" | "interrupted" | "stopped" | "error", readonly providerName: string | null, readonly providerInstanceId?: string | undefined, readonly runtimeMode?: "approval-required" | "auto-accept-edits" | "auto" | "full-access" | undefined, readonly nativeModeId?: string | undefined, readonly activeTurnId: string | null, readonly activeTurnSharedSpaceIds?: ReadonlyArray<string> | undefined, readonly lastError: string | null, readonly failureCategory?: string | undefined, readonly retry?: { readonly source?: "provider" | undefined, readonly attempt: number, readonly maxAttempts: number, readonly retryDelayMs: number, readonly httpStatus?: number | undefined } | { readonly source: "http-observer", readonly consecutiveFailures: number, readonly failureKind: "http" | "transport", readonly httpStatus?: number | undefined } | null | undefined, readonly endReason?: "server-restart" | undefined, readonly updatedAt: string } | null, readonly latestUserMessageAt: string | null, readonly userTurnCount?: number | undefined, readonly queuedMessageCount?: number | undefined, readonly awaitingPersonReplyCount?: number | undefined, readonly pendingAsyncQuestionCount?: number | undefined, readonly preview?: string | null | undefined, readonly previewDeliveryCount?: number | undefined, readonly deliveredFileCount?: number | undefined, readonly latestDeliveryAt?: string | null | undefined, readonly hasPendingApprovals: boolean, readonly pendingDecisionActivityId?: string | undefined, readonly hasPendingUserInput: boolean, readonly askRoute?: { readonly phase: "handling" | "unanswered" | "direct", readonly parentThreadId: string } | undefined, readonly hasActionableProposedPlan: boolean, readonly status?: "needs-approval" | "needs-input" | "plan-ready" | "running" | "failed" | "background" | "stopped" | "idle" | undefined, readonly backgroundLiveness?: "working" | "monitoring" | null | undefined, readonly continuationCheck?: ThreadContinuationCheckOrNull_1, readonly backgroundMonitorCount?: number | undefined, readonly planProgress?: { readonly step: string, readonly completedSteps: number, readonly totalSteps: number } | null | undefined };
737
737
  export type ThreadsMessagesListEncodedOutput = { readonly items: ReadonlyArray<{ readonly rewrite?: { readonly original: string, readonly steps: ReadonlyArray<{ readonly pluginId: string, readonly via: "before-send" | "slash-command", readonly command?: string | undefined }> } | undefined, readonly id: string, readonly role: "user" | "assistant" | "system", readonly text: string, readonly attachments?: ReadonlyArray<{ readonly type: "image", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number } | { readonly type: "file", readonly id: string, readonly name: string, readonly mimeType: string, readonly sizeBytes: number }> | undefined, readonly turnId: string | null, readonly streaming: boolean, readonly author?: { readonly userId: string, readonly displayName: string } | null | undefined, readonly recordId?: string | undefined, readonly modelSelection?: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | undefined, readonly source?: { readonly kind: "native-session", readonly provider: string, readonly sessionId: string, readonly messageId: string, readonly turnId?: string | undefined, readonly order: number } | undefined, readonly origin?: { readonly kind: "user" } | { readonly kind: "schedule", readonly scheduleId: string, readonly name: string, readonly pluginId?: string, readonly entryId?: string } | { readonly kind: "scheduled-wake", readonly wakeId: string, readonly dueAt: string, readonly note: string } | { readonly kind: "record", readonly recordId: string } | { readonly kind: "session", readonly threadId: string, readonly turnId?: string | undefined } | { readonly kind: "reply", readonly recordId: string } | { readonly kind: "child-report", readonly childThreadId: string, readonly outcome: "settled" | "failed" | null } | { readonly kind: "plugin-wake", readonly pluginId: string, readonly continuation?: TurnIntentContinuation_1 } | { readonly kind: "board-dispatch", readonly workItemId: string } | { readonly kind: "person", readonly pluginId: string, readonly displayName: string } | { readonly kind: "plugin-notice", readonly title: string, readonly pluginId?: string | undefined } | { readonly kind: "home-machine" } | { readonly kind: "restart-resume" } | { readonly kind: "remote-post", readonly postId: string, readonly authorKind: "human" | "agent", readonly authorName?: string } | undefined, readonly createdAt: string, readonly updatedAt: string, readonly attachmentsTotal?: number, readonly textWindow?: { readonly offset: number, readonly returned: number, readonly total: number, readonly nextOffset: number | null } }>, readonly nextCursor: string | null, readonly snapshotSequence: number, readonly total?: number };
738
738
  export type ProjectsListEncodedOutput = ReadonlyArray<{ readonly id: string, readonly title: string, readonly workspaceRoot: string, readonly purpose?: "conversation" | "project" | undefined, readonly homeEnvironmentId?: string | null | undefined, readonly folders?: ReadonlyArray<{ readonly canonicalTarget?: string | null | undefined, readonly id: string, readonly path: string, readonly kind?: "user" | "managed" | undefined, readonly attachedAt: string, readonly detachedAt?: string | null | undefined, readonly clone?: { readonly state: "cloning" | "failed", readonly remoteUrl: string, readonly failureKind?: "cancelled" | "interrupted" | "git" | undefined, readonly failureCategory?: "authentication" | "unreachable" | "repository" | "locked-reference" | "timeout" | "other" | undefined, readonly failure?: string | undefined, readonly createdDirectory?: boolean | undefined, readonly startedAt: string } | undefined, readonly sharedSpaceId?: string | undefined, readonly sharedSpaceAttachState?: "attaching" | "ready" | "detaching" | "failed" | undefined }> | undefined, readonly defaultFolderId?: string | null | undefined, readonly repositoryIdentity?: { readonly canonicalKey: string, readonly locator: { readonly source: "git-remote", readonly remoteName: string, readonly remoteUrl: string }, readonly rootPath?: string, readonly displayName?: string, readonly provider?: string, readonly owner?: string, readonly name?: string } | null | undefined, readonly defaultModelSelection: { readonly provider?: unknown | undefined, readonly instanceId?: unknown | undefined, readonly model: unknown, readonly options?: unknown | undefined } | null, readonly faviconPath?: string | null | undefined, readonly projectIcon?: { readonly kind: "lucide", readonly name: string, readonly color: "gray" | "red" | "orange" | "amber" | "yellow" | "lime" | "green" | "emerald" | "teal" | "cyan" | "sky" | "blue" | "indigo" | "violet" | "purple" | "fuchsia" | "pink" | "rose" } | { readonly kind: "emoji", readonly emoji: string } | null | undefined, readonly scripts: ReadonlyArray<{ readonly id: string, readonly name: string, readonly command: string, readonly icon: "play" | "test" | "lint" | "configure" | "build" | "debug", readonly runOnWorktreeCreate: boolean, readonly browserUrl?: string | undefined, readonly autoOpenBrowser?: boolean | undefined }>, readonly sortOrderKey?: string | null | undefined, readonly createdAt: string, readonly updatedAt: string, readonly archivedAt?: string | null | undefined }>;
@@ -9,7 +9,7 @@
9
9
  *
10
10
  * @module @ycodium-ai/plugin-api/version
11
11
  */
12
- export const PLUGIN_API_VERSION = 197;
12
+ export const PLUGIN_API_VERSION = 198;
13
13
  export const PLUGIN_API_MIN_VERSION = 193;
14
14
  /** 插件可以声明的版本:窗口内的每一个。 */
15
- export type PluginApiVersion = 193 | 194 | 195 | 196 | 197;
15
+ export type PluginApiVersion = 193 | 194 | 195 | 196 | 197 | 198;
package/dist/version.d.ts CHANGED
@@ -7,8 +7,8 @@
7
7
  *
8
8
  * @module @ycodium-ai/plugin-api/version
9
9
  */
10
- export declare const PLUGIN_API_VERSION = 197;
10
+ export declare const PLUGIN_API_VERSION = 198;
11
11
  export declare const PLUGIN_API_MIN_VERSION = 193;
12
12
  /** 插件可以声明的版本:窗口内的每一个。 */
13
- export type PluginApiVersion = 193 | 194 | 195 | 196 | 197;
13
+ export type PluginApiVersion = 193 | 194 | 195 | 196 | 197 | 198;
14
14
  //# sourceMappingURL=version.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["source/version.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,yBAAyB;AACzB,MAAM,MAAM,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC"}
1
+ {"version":3,"file":"version.d.ts","sourceRoot":"","sources":["source/version.ts"],"names":[],"mappings":"AAEA;;;;;;;;GAQG;AACH,eAAO,MAAM,kBAAkB,MAAM,CAAC;AACtC,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAC1C,yBAAyB;AACzB,MAAM,MAAM,gBAAgB,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,CAAC"}
package/dist/version.js CHANGED
@@ -9,6 +9,6 @@
9
9
  *
10
10
  * @module @ycodium-ai/plugin-api/version
11
11
  */
12
- export const PLUGIN_API_VERSION = 197;
12
+ export const PLUGIN_API_VERSION = 198;
13
13
  export const PLUGIN_API_MIN_VERSION = 193;
14
14
  //# sourceMappingURL=version.js.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ycodium-ai/plugin-api",
3
- "version": "0.2.6072",
3
+ "version": "0.2.6153",
4
4
  "description": "Contracts and shared libraries for authoring Ycodium plugins.",
5
5
  "keywords": [
6
6
  "ycodium"
@@ -170,23 +170,23 @@
170
170
  "ycodium-attachment-kinds": "0.0.0",
171
171
  "ycodium-composer-tokens": "0.0.0",
172
172
  "ycodium-credential-account": "0.0.0",
173
- "ycodium-day-format": "0.0.0",
174
- "ycodium-diff-format": "0.0.0",
175
173
  "ycodium-decision-order": "0.0.0",
174
+ "ycodium-diff-format": "0.0.0",
175
+ "ycodium-day-format": "0.0.0",
176
176
  "ycodium-duration-format": "0.0.0",
177
- "ycodium-fetch-ports": "0.0.0",
178
177
  "ycodium-executor-common": "0.0.0",
178
+ "ycodium-fetch-ports": "0.0.0",
179
179
  "ycodium-full-access-mode": "0.0.0",
180
- "ycodium-jsonl-stream": "0.0.0",
181
180
  "ycodium-instance-config": "0.0.0",
181
+ "ycodium-jsonl-stream": "0.0.0",
182
182
  "ycodium-markdown-fence": "0.0.0",
183
183
  "ycodium-source-control": "0.0.0",
184
- "ycodium-system-text": "0.0.0",
185
184
  "ycodium-sse-stream": "0.0.0",
186
185
  "ycodium-text-generation": "0.0.0",
186
+ "ycodium-system-text": "0.0.0",
187
+ "ycodium-tool-label": "0.0.0",
187
188
  "ycodium-ui-hooks": "0.0.0",
188
- "ycodium-workspace-path": "0.0.0",
189
- "ycodium-tool-label": "0.0.0"
189
+ "ycodium-workspace-path": "0.0.0"
190
190
  },
191
191
  "peerDependencies": {
192
192
  "@pierre/diffs": "1.6.4",