@bendyline/docblocks 2.6.1 → 2.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/THIRD_PARTY_NOTICES.txt +33 -33
- package/dist/capabilities-CdQAc745.d.ts +1233 -0
- package/dist/catalog-BQK05tne.d.ts +122 -0
- package/dist/chunk-245W57QP.js +31 -0
- package/dist/{chunk-2WDJ27EH.js → chunk-46AGYHDY.js} +8 -0
- package/dist/{chunk-4437YWLE.js → chunk-6UPO2GE6.js} +4 -2
- package/dist/{chunk-UMWCTEXW.js → chunk-7SN7YQL4.js} +211 -40
- package/dist/{chunk-OQCPBOQA.js → chunk-DAPFSEKY.js} +35 -0
- package/dist/{chunk-M62ZGJ5I.js → chunk-HABG2JM3.js} +0 -17
- package/dist/{chunk-YM7O3PWO.js → chunk-HKOOHM67.js} +20 -12
- package/dist/chunk-IDYE73TU.js +77 -0
- package/dist/{chunk-KLQKU74Q.js → chunk-IGB2VSRE.js} +124 -330
- package/dist/{chunk-BVY7GGNV.js → chunk-L6PRMR7T.js} +137 -95
- package/dist/chunk-LPIJ6HKL.js +19 -0
- package/dist/{chunk-SJBB5OD7.js → chunk-QS5WTLUZ.js} +10 -8
- package/dist/chunk-R2JX5N3F.js +382 -0
- package/dist/{chunk-ZO7G53QP.js → chunk-UDEWLHQI.js} +4 -2
- package/dist/chunk-UK7R3RC7.js +514 -0
- package/dist/chunk-XTNWCNSK.js +464 -0
- package/dist/chunk-YHSFRPBS.js +42 -0
- package/dist/chunk-YNUQG4GF.js +1173 -0
- package/dist/document/index.d.ts +31 -1
- package/dist/document/index.js +7 -6
- package/dist/filesystem/electron.d.ts +8 -34
- package/dist/filesystem/electron.js +7 -4
- package/dist/filesystem/host.d.ts +28 -0
- package/dist/filesystem/host.js +103 -0
- package/dist/filesystem/index.d.ts +52 -6
- package/dist/filesystem/index.js +36 -15
- package/dist/filesystem/indexeddb.d.ts +8 -1
- package/dist/filesystem/indexeddb.js +7 -6
- package/dist/filesystem/memory.d.ts +2 -1
- package/dist/filesystem/memory.js +3 -2
- package/dist/filesystem/native.d.ts +2 -1
- package/dist/filesystem/native.js +3 -2
- package/dist/filesystem-v2-C8AdSXUN.d.ts +74 -0
- package/dist/host/index.d.ts +127 -5
- package/dist/host/index.js +100 -4
- package/dist/host/mobile.d.ts +389 -0
- package/dist/host/mobile.js +315 -0
- package/dist/host-provider-v2-CyLTRKJF.d.ts +51 -0
- package/dist/index.d.ts +8 -5
- package/dist/index.js +153 -34
- package/dist/mcp/index.d.ts +2 -2
- package/dist/mcp/zod.d.ts +23 -1
- package/dist/mcp/zod.js +1 -0
- package/dist/settings-HrrCikVX.d.ts +170 -0
- package/dist/types-BvDnr3YU.d.ts +88 -0
- package/dist/{types-Oy9U5FST.d.ts → types-d0yvHUJz.d.ts} +6 -0
- package/dist/{types-Bb3yccTH.d.ts → v2-BVnZZyd4.d.ts} +1 -86
- package/dist/vscode/index.d.ts +43 -1
- package/dist/vscode/index.js +67 -1
- package/dist/workspace/index.d.ts +10 -6
- package/dist/workspace/index.js +4 -2
- package/dist/workspace-index/index.d.ts +240 -0
- package/dist/workspace-index/index.js +1287 -0
- package/dist/workspace-settings/index.d.ts +301 -0
- package/dist/workspace-settings/index.js +820 -0
- package/package.json +22 -2
- package/dist/chunk-6XHOOBYF.js +0 -36
- package/dist/chunk-QI6YKTQV.js +0 -110
- package/dist/types-DBYraXxE.d.ts +0 -557
|
@@ -8,10 +8,11 @@ import {
|
|
|
8
8
|
removeDirectoryHandle,
|
|
9
9
|
restoreNativeFolder,
|
|
10
10
|
storeDirectoryHandle
|
|
11
|
-
} from "../chunk-
|
|
11
|
+
} from "../chunk-6UPO2GE6.js";
|
|
12
12
|
import "../chunk-DZB666V7.js";
|
|
13
13
|
import "../chunk-KQ6756AJ.js";
|
|
14
|
-
import "../chunk-
|
|
14
|
+
import "../chunk-HABG2JM3.js";
|
|
15
|
+
import "../chunk-LPIJ6HKL.js";
|
|
15
16
|
import "../chunk-M5ZNQGR5.js";
|
|
16
17
|
import "../chunk-AYWKIZLD.js";
|
|
17
18
|
export {
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
import { m as FileSystemProviderCapabilities, S as SerializedFsError, j as FileSystemFileSnapshot, D as FileSystemWriteOptions, g as FileSystemEntrySnapshot, i as FileSystemFileRead, d as FileSystemCreateDirectoryOptions, e as FileSystemDirectorySnapshot, o as FileSystemRemoveOptions, p as FileSystemRemoveResult, k as FileSystemMoveOptions, q as FileSystemSnapshot, w as FileSystemWatchEvent } from './v2-BVnZZyd4.js';
|
|
2
|
+
import { a as WorkspacePath } from './workspace-path-CWVrcuPL.js';
|
|
3
|
+
|
|
4
|
+
/** File size and per-message size are deliberately separate budgets. */
|
|
5
|
+
declare const FILE_SYSTEM_TRANSFER_LIMITS: Readonly<{
|
|
6
|
+
fileBytes: number;
|
|
7
|
+
chunkBytes: number;
|
|
8
|
+
totalBytes: number;
|
|
9
|
+
transfers: 4;
|
|
10
|
+
idleMs: 120000;
|
|
11
|
+
lifetimeMs: number;
|
|
12
|
+
}>;
|
|
13
|
+
interface HostFileSystemReadTransfer {
|
|
14
|
+
readonly transferId: string;
|
|
15
|
+
readonly entry: FileSystemFileSnapshot;
|
|
16
|
+
}
|
|
17
|
+
/** Stable capabilities shared by the Electron v2 client and native backend. */
|
|
18
|
+
declare const ELECTRON_FILE_SYSTEM_V2_CAPABILITIES: FileSystemProviderCapabilities;
|
|
19
|
+
/** Explicit result envelope; Electron does not preserve custom Error fields. */
|
|
20
|
+
type HostFileSystemV2Result<T> = {
|
|
21
|
+
readonly ok: true;
|
|
22
|
+
readonly value: T;
|
|
23
|
+
} | {
|
|
24
|
+
readonly ok: false;
|
|
25
|
+
readonly error: SerializedFsError;
|
|
26
|
+
};
|
|
27
|
+
interface HostFileSystemV2OpenRequest {
|
|
28
|
+
readonly instanceId: string;
|
|
29
|
+
/** Main-owned persisted workspace authority, never an absolute path. */
|
|
30
|
+
readonly providerId: string;
|
|
31
|
+
readonly label: string;
|
|
32
|
+
}
|
|
33
|
+
type HostFileSystemV2WatchMessage = {
|
|
34
|
+
readonly instanceId: string;
|
|
35
|
+
readonly subscriptionId: string;
|
|
36
|
+
readonly kind: 'event';
|
|
37
|
+
readonly event: FileSystemWatchEvent;
|
|
38
|
+
} | {
|
|
39
|
+
readonly instanceId: string;
|
|
40
|
+
readonly subscriptionId: string;
|
|
41
|
+
readonly kind: 'error';
|
|
42
|
+
readonly error: SerializedFsError;
|
|
43
|
+
};
|
|
44
|
+
/** Wire-level filesystem v2 API exposed by preload. */
|
|
45
|
+
interface DocBlocksHostFsV2API {
|
|
46
|
+
/** Validated during native bootstrap; available before a provider is mounted. */
|
|
47
|
+
capabilitiesFor?(workspaceId: string): FileSystemProviderCapabilities;
|
|
48
|
+
readonly transferLimits?: {
|
|
49
|
+
readonly fileBytes: number;
|
|
50
|
+
readonly chunkBytes: number;
|
|
51
|
+
};
|
|
52
|
+
/** Optional for compatibility with older preload versions. */
|
|
53
|
+
beginRead?(instanceId: string, path: WorkspacePath): Promise<HostFileSystemV2Result<HostFileSystemReadTransfer | null>>;
|
|
54
|
+
readChunk?(instanceId: string, transferId: string, offset: number): Promise<HostFileSystemV2Result<ArrayBuffer>>;
|
|
55
|
+
beginWrite?(instanceId: string, path: WorkspacePath, byteLength: number, options?: FileSystemWriteOptions): Promise<HostFileSystemV2Result<string>>;
|
|
56
|
+
writeChunk?(instanceId: string, transferId: string, offset: number, data: ArrayBuffer | Uint8Array): Promise<HostFileSystemV2Result<null>>;
|
|
57
|
+
finishWrite?(instanceId: string, transferId: string): Promise<HostFileSystemV2Result<FileSystemFileSnapshot>>;
|
|
58
|
+
closeTransfer?(instanceId: string, transferId: string): Promise<HostFileSystemV2Result<null>>;
|
|
59
|
+
open(request: HostFileSystemV2OpenRequest): Promise<HostFileSystemV2Result<FileSystemProviderCapabilities>>;
|
|
60
|
+
stat(instanceId: string, path: WorkspacePath): Promise<HostFileSystemV2Result<FileSystemEntrySnapshot | null>>;
|
|
61
|
+
readFile(instanceId: string, path: WorkspacePath): Promise<HostFileSystemV2Result<FileSystemFileRead | null>>;
|
|
62
|
+
readDirectory(instanceId: string, path: WorkspacePath): Promise<HostFileSystemV2Result<readonly FileSystemEntrySnapshot[]>>;
|
|
63
|
+
writeFile(instanceId: string, path: WorkspacePath, data: ArrayBuffer | Uint8Array, options?: FileSystemWriteOptions): Promise<HostFileSystemV2Result<FileSystemFileSnapshot>>;
|
|
64
|
+
createDirectory(instanceId: string, path: WorkspacePath, options?: FileSystemCreateDirectoryOptions): Promise<HostFileSystemV2Result<FileSystemDirectorySnapshot>>;
|
|
65
|
+
remove(instanceId: string, path: WorkspacePath, options?: FileSystemRemoveOptions): Promise<HostFileSystemV2Result<FileSystemRemoveResult>>;
|
|
66
|
+
move(instanceId: string, oldPath: WorkspacePath, newPath: WorkspacePath, options?: FileSystemMoveOptions): Promise<HostFileSystemV2Result<FileSystemEntrySnapshot>>;
|
|
67
|
+
snapshot(instanceId: string): Promise<HostFileSystemV2Result<FileSystemSnapshot>>;
|
|
68
|
+
watchSubscribe(instanceId: string, subscriptionId: string): Promise<HostFileSystemV2Result<null>>;
|
|
69
|
+
watchUnsubscribe(instanceId: string, subscriptionId: string): Promise<HostFileSystemV2Result<null>>;
|
|
70
|
+
dispose(instanceId: string): Promise<HostFileSystemV2Result<null>>;
|
|
71
|
+
onWatchMessage(listener: (message: HostFileSystemV2WatchMessage) => void): () => void;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { type DocBlocksHostFsV2API as D, ELECTRON_FILE_SYSTEM_V2_CAPABILITIES as E, FILE_SYSTEM_TRANSFER_LIMITS as F, type HostFileSystemReadTransfer as H, type HostFileSystemV2OpenRequest as a, type HostFileSystemV2Result as b, type HostFileSystemV2WatchMessage as c };
|
package/dist/host/index.d.ts
CHANGED
|
@@ -1,8 +1,103 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export {
|
|
3
|
-
|
|
1
|
+
import { a as AiChatEvent, d as AiChatProgress, f as AiChatRequest, i as AiError, q as AiModelDownloadInfo, r as AiModelInfo, s as AiModelInstallEvent, u as AiPreferences, v as AiPreferencesPatch, w as AiProgress, F as AiStatus, as as SpeechAudioChunk, at as SpeechCatalog, au as SpeechError, aw as SpeechInstallEvent, ay as SpeechModelInfo, az as SpeechModelKind, aF as SpeechResult, aA as SpeechPreferences, aB as SpeechPreferencesPatch, aC as SpeechProgress, aD as SpeechReadiness, aH as SpeechStatus, aJ as SpeechSynthesisSummary, aK as SpeechSynthesizeEvent, aL as SpeechSynthesizeRequest, aM as SpeechTranscribeRequest, aN as SpeechTranscript, aO as SpeechVoiceInfo, ar as OpenRequest, ak as HostPinnedDocument, K as DocBlocksHostAPI, ag as HostCapabilities, ai as HostEnvironment } from '../capabilities-CdQAc745.js';
|
|
2
|
+
export { A as AiChatCompletion, b as AiChatHandle, c as AiChatMessage, e as AiChatPurpose, g as AiConnectionStep, h as AiEnsureWorkspaceHandle, j as AiErrorCode, k as AiImageRequest, l as AiImageResult, m as AiKnowledgeAPI, n as AiKnowledgeAction, o as AiKnowledgeCatalog, p as AiKnowledgeState, t as AiModelInstallHandle, x as AiProviderInfo, y as AiResult, z as AiReviewMode, B as AiSearchHit, C as AiSearchQuery, D as AiSearchResult, E as AiSpeechAudio, G as AiSynthesizeRequest, H as AiTranscribeRequest, I as AiTranscript, J as AiUnavailableReason, L as DocBlocksHostAiAPI, M as DocBlocksHostClipboardAPI, N as DocBlocksHostExportAPI, O as DocBlocksHostExternalAPI, P as DocBlocksHostFfmpegAPI, Q as DocBlocksHostFsAPI, R as DocBlocksHostGitAPI, S as DocBlocksHostLifecycleAPI, T as DocBlocksHostMenuAPI, U as DocBlocksHostShellAPI, V as DocBlocksHostSpeechAPI, W as DocBlocksHostUpdaterAPI, X as DocBlocksHostWorkspacesAPI, Y as ElectronWorkspaceInfo, Z as ExternalBinaryCommitResult, _ as GitBranchInfo, $ as GitCapabilities, a0 as GitCloneHandle, a1 as GitCloneProgress, a2 as GitError, a3 as GitErrorCode, a4 as GitFileAtRevision, a5 as GitFileChange, a6 as GitFileStatusCode, a7 as GitLogEntry, a8 as GitLogOptions, a9 as GitRemoteInfo, aa as GitRepoDetection, ab as GitResult, ac as GitRevision, ad as GitStatus, ae as HOST_PLATFORMS, af as HOST_SURFACE_KINDS, ah as HostCloseReason, aj as HostExportTargetGrant, al as HostPlatform, am as HostPrepareCloseRequest, an as HostPrepareCloseResult, ao as HostSurfaceKind, ap as MenuCommand, aq as NO_HOST_CAPABILITIES, av as SpeechErrorCode, ax as SpeechInstallHandle, aE as SpeechReadinessState, aG as SpeechSegment, aI as SpeechSynthesisHandle, aP as SpeechWordTiming, aQ as UpdateCheckResult, aR as UpdateInstallResult, aS as UpdaterStatus, aT as deriveHostCapabilities, aU as parseAiKnowledgeAction, aV as parseAiKnowledgeState, aW as parseHostEnvironment } from '../capabilities-CdQAc745.js';
|
|
3
|
+
export { D as DocBlocksHostFsV2API, E as ELECTRON_FILE_SYSTEM_V2_CAPABILITIES, F as FILE_SYSTEM_TRANSFER_LIMITS, H as HostFileSystemReadTransfer, a as HostFileSystemV2OpenRequest, b as HostFileSystemV2Result, c as HostFileSystemV2WatchMessage } from '../filesystem-v2-C8AdSXUN.js';
|
|
4
|
+
import '../types-BvDnr3YU.js';
|
|
5
|
+
import '../v2-BVnZZyd4.js';
|
|
4
6
|
import '../workspace-path-CWVrcuPL.js';
|
|
5
7
|
|
|
8
|
+
/**
|
|
9
|
+
* Bounds for the AI boundary.
|
|
10
|
+
*
|
|
11
|
+
* These are deliberately separate from `HOST_WIRE_LIMITS`: a prompt is not a
|
|
12
|
+
* document, and a delta is not a label. Sizing them together would mean either
|
|
13
|
+
* a 20 MiB prompt or a 2 KiB completion.
|
|
14
|
+
*/
|
|
15
|
+
declare const AI_WIRE_LIMITS: Readonly<{
|
|
16
|
+
messageEntries: 64;
|
|
17
|
+
/** Sum of every message's content in one request. */
|
|
18
|
+
promptCharacters: number;
|
|
19
|
+
deltaCharacters: number;
|
|
20
|
+
/** Generated documents have the same transport capacity as other documents. */
|
|
21
|
+
completionCharacters: number;
|
|
22
|
+
maxTokensCeiling: 32768;
|
|
23
|
+
temperatureCeiling: 2;
|
|
24
|
+
verificationCodeCharacters: 16;
|
|
25
|
+
progressPhaseCharacters: 64;
|
|
26
|
+
modelEntries: 200;
|
|
27
|
+
contextWindowCeiling: 8000000;
|
|
28
|
+
downloadBytesCeiling: number;
|
|
29
|
+
}>;
|
|
30
|
+
declare function parseAiError(value: unknown): AiError | null;
|
|
31
|
+
declare function parseAiProgress(value: unknown): AiProgress | null;
|
|
32
|
+
declare function parseAiModelInfo(value: unknown): AiModelInfo | null;
|
|
33
|
+
declare function parseAiModelInfoList(value: unknown): AiModelInfo[] | null;
|
|
34
|
+
declare function parseAiModelDownloadInfo(value: unknown): AiModelDownloadInfo | null;
|
|
35
|
+
declare function parseAiModelDownloadInfoList(value: unknown): AiModelDownloadInfo[] | null;
|
|
36
|
+
declare function parseAiModelInstallEvent(value: unknown): AiModelInstallEvent | null;
|
|
37
|
+
/**
|
|
38
|
+
* Parse a renderer-originated chat request.
|
|
39
|
+
*
|
|
40
|
+
* The per-message bound is not enough on its own: sixty-four messages each just
|
|
41
|
+
* under the cap would be sixteen megabytes of prompt. The total is what is
|
|
42
|
+
* actually checked here.
|
|
43
|
+
*/
|
|
44
|
+
declare function parseAiChatRequest(value: unknown): AiChatRequest | null;
|
|
45
|
+
declare function parseAiChatProgress(value: unknown): AiChatProgress | null;
|
|
46
|
+
declare function parseAiChatEvent(value: unknown): AiChatEvent | null;
|
|
47
|
+
declare function parseAiStatus(value: unknown): AiStatus | null;
|
|
48
|
+
declare function parseAiPreferences(value: unknown): AiPreferences | null;
|
|
49
|
+
/** Parse a partial update. An empty patch is valid and means "change nothing". */
|
|
50
|
+
declare function parseAiPreferencesPatch(value: unknown): AiPreferencesPatch | null;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Bounds for the speech boundary.
|
|
54
|
+
*
|
|
55
|
+
* A dictation take is a few seconds of 16 kHz PCM, so 16 MiB is generous; a
|
|
56
|
+
* synthesis request is a block or a selection, not a whole book. The prompt
|
|
57
|
+
* ceiling matches Gezel's `AUDIO_TRANSCRIBE_PROMPT_MAX_CHARS`.
|
|
58
|
+
*/
|
|
59
|
+
declare const SPEECH_WIRE_LIMITS: Readonly<{
|
|
60
|
+
transcribeAudioBytes: number;
|
|
61
|
+
promptCharacters: 2000;
|
|
62
|
+
languageCharacters: 16;
|
|
63
|
+
transcriptCharacters: number;
|
|
64
|
+
segmentEntries: 4096;
|
|
65
|
+
synthesizeTextCharacters: 20000;
|
|
66
|
+
chunkPcmBytes: number;
|
|
67
|
+
chunkWordEntries: 1024;
|
|
68
|
+
minSampleRate: 8000;
|
|
69
|
+
maxSampleRate: 96000;
|
|
70
|
+
minSpeed: 0.5;
|
|
71
|
+
maxSpeed: 2;
|
|
72
|
+
modelEntries: 64;
|
|
73
|
+
voiceEntries: 256;
|
|
74
|
+
/** Seconds; a take or a chunk is never an hour long. */
|
|
75
|
+
durationCeiling: 3600;
|
|
76
|
+
downloadBytesCeiling: number;
|
|
77
|
+
}>;
|
|
78
|
+
declare function isSpeechModelId(value: unknown): value is string;
|
|
79
|
+
declare function parseSpeechModelKind(value: unknown): SpeechModelKind | null;
|
|
80
|
+
declare function parseSpeechTranscribeRequest(value: unknown): SpeechTranscribeRequest | null;
|
|
81
|
+
declare function parseSpeechSynthesizeRequest(value: unknown): SpeechSynthesizeRequest | null;
|
|
82
|
+
declare function parseSpeechPreferencesPatch(value: unknown): SpeechPreferencesPatch | null;
|
|
83
|
+
declare function parseSpeechError(value: unknown): SpeechError | null;
|
|
84
|
+
/** Parse a result envelope, delegating the success payload to `parseValue`. */
|
|
85
|
+
declare function parseSpeechResult<T>(value: unknown, parseValue: (value: unknown) => T | null): SpeechResult<T> | null;
|
|
86
|
+
/** For `SpeechResult<null>` operations, where `null` is the success payload. */
|
|
87
|
+
declare function parseSpeechNullResult(value: unknown): SpeechResult<null> | null;
|
|
88
|
+
declare function parseSpeechReadiness(value: unknown): SpeechReadiness | null;
|
|
89
|
+
declare function parseSpeechStatus(value: unknown): SpeechStatus | null;
|
|
90
|
+
declare function parseSpeechModelInfo(value: unknown): SpeechModelInfo | null;
|
|
91
|
+
declare function parseSpeechVoiceInfo(value: unknown): SpeechVoiceInfo | null;
|
|
92
|
+
declare function parseSpeechCatalog(value: unknown): SpeechCatalog | null;
|
|
93
|
+
declare function parseSpeechProgress(value: unknown): SpeechProgress | null;
|
|
94
|
+
declare function parseSpeechInstallEvent(value: unknown): SpeechInstallEvent | null;
|
|
95
|
+
declare function parseSpeechPreferences(value: unknown): SpeechPreferences | null;
|
|
96
|
+
declare function parseSpeechTranscript(value: unknown): SpeechTranscript | null;
|
|
97
|
+
declare function parseSpeechAudioChunk(value: unknown): SpeechAudioChunk | null;
|
|
98
|
+
declare function parseSpeechSynthesisSummary(value: unknown): SpeechSynthesisSummary | null;
|
|
99
|
+
declare function parseSpeechSynthesizeEvent(value: unknown): SpeechSynthesizeEvent | null;
|
|
100
|
+
|
|
6
101
|
/** Upper bound on shortcuts mirrored into the native menu, to keep it usable. */
|
|
7
102
|
declare const MAX_HOST_PINNED_DOCUMENTS = 50;
|
|
8
103
|
/** Quantitative limits shared by privileged host boundaries. */
|
|
@@ -17,6 +112,18 @@ declare const HOST_WIRE_LIMITS: Readonly<{
|
|
|
17
112
|
base64Characters: number;
|
|
18
113
|
arrayEntries: 10000;
|
|
19
114
|
}>;
|
|
115
|
+
/**
|
|
116
|
+
* Chunked export uploads. A finished export — a long video, say — can be far
|
|
117
|
+
* larger than any single host message, so it crosses in bounded chunks into a
|
|
118
|
+
* spool beside its granted target and is published only once complete.
|
|
119
|
+
*/
|
|
120
|
+
declare const EXPORT_TRANSFER_LIMITS: Readonly<{
|
|
121
|
+
fileBytes: number;
|
|
122
|
+
chunkBytes: number;
|
|
123
|
+
transfers: 4;
|
|
124
|
+
idleMs: 120000;
|
|
125
|
+
lifetimeMs: number;
|
|
126
|
+
}>;
|
|
20
127
|
declare function isBoundedString(value: unknown, maximumCharacters: number, minimumCharacters?: number): value is string;
|
|
21
128
|
declare function isBoundedBytePayload(value: unknown, maximumBytes?: number): value is ArrayBuffer | Uint8Array;
|
|
22
129
|
/** Parse one exact, bounded main-to-renderer open request. */
|
|
@@ -38,11 +145,26 @@ declare function isTrustedRendererUrl(value: unknown, developmentOrigin?: string
|
|
|
38
145
|
* contextBridge; `isElectronHost()` gates desktop-only UI branches.
|
|
39
146
|
*/
|
|
40
147
|
|
|
41
|
-
/** True when
|
|
148
|
+
/** True when any privileged host bridge is installed. */
|
|
149
|
+
declare function hasDocBlocksHost(): boolean;
|
|
150
|
+
/**
|
|
151
|
+
* What the installed host can do. All-false when there is no host, so callers
|
|
152
|
+
* never need a null check before asking.
|
|
153
|
+
*/
|
|
154
|
+
declare function getHostCapabilities(): HostCapabilities;
|
|
155
|
+
/** Ask one capability question. The replacement for `isElectronHost()`. */
|
|
156
|
+
declare function hostSupports(capability: keyof HostCapabilities): boolean;
|
|
157
|
+
/** The parsed host environment, or null when there is no trustworthy host. */
|
|
158
|
+
declare function getHostEnvironment(): HostEnvironment | null;
|
|
159
|
+
/**
|
|
160
|
+
* @deprecated Ask a capability with `hostSupports(...)` instead. This conflated
|
|
161
|
+
* a dozen unrelated decisions into one boolean that no non-Electron host can
|
|
162
|
+
* answer honestly. Retained only until the last caller is migrated.
|
|
163
|
+
*/
|
|
42
164
|
declare function isElectronHost(): boolean;
|
|
43
165
|
/** Return the host API, or throw if not running under Electron. */
|
|
44
166
|
declare function getDocBlocksHost(): DocBlocksHostAPI;
|
|
45
167
|
/** Return the host API, or null if not running under Electron. */
|
|
46
168
|
declare function maybeGetDocBlocksHost(): DocBlocksHostAPI | null;
|
|
47
169
|
|
|
48
|
-
export { DocBlocksHostAPI, HOST_WIRE_LIMITS, HostPinnedDocument, MAX_HOST_PINNED_DOCUMENTS, OpenRequest, getDocBlocksHost, isBoundedBytePayload, isBoundedString, isElectronHost, isTrustedRendererUrl, maybeGetDocBlocksHost, parseExternalHttpUrl, parseOpenRequest, parsePinnedMenuDocuments };
|
|
170
|
+
export { AI_WIRE_LIMITS, AiChatEvent, AiChatProgress, AiChatRequest, AiError, AiModelDownloadInfo, AiModelInfo, AiModelInstallEvent, AiPreferences, AiPreferencesPatch, AiProgress, AiStatus, DocBlocksHostAPI, EXPORT_TRANSFER_LIMITS, HOST_WIRE_LIMITS, HostCapabilities, HostEnvironment, HostPinnedDocument, MAX_HOST_PINNED_DOCUMENTS, OpenRequest, SPEECH_WIRE_LIMITS, SpeechAudioChunk, SpeechCatalog, SpeechError, SpeechInstallEvent, SpeechModelInfo, SpeechModelKind, SpeechPreferences, SpeechPreferencesPatch, SpeechProgress, SpeechReadiness, SpeechResult, SpeechStatus, SpeechSynthesisSummary, SpeechSynthesizeEvent, SpeechSynthesizeRequest, SpeechTranscribeRequest, SpeechTranscript, SpeechVoiceInfo, getDocBlocksHost, getHostCapabilities, getHostEnvironment, hasDocBlocksHost, hostSupports, isBoundedBytePayload, isBoundedString, isElectronHost, isSpeechModelId, isTrustedRendererUrl, maybeGetDocBlocksHost, parseAiChatEvent, parseAiChatProgress, parseAiChatRequest, parseAiError, parseAiModelDownloadInfo, parseAiModelDownloadInfoList, parseAiModelInfo, parseAiModelInfoList, parseAiModelInstallEvent, parseAiPreferences, parseAiPreferencesPatch, parseAiProgress, parseAiStatus, parseExternalHttpUrl, parseOpenRequest, parsePinnedMenuDocuments, parseSpeechAudioChunk, parseSpeechCatalog, parseSpeechError, parseSpeechInstallEvent, parseSpeechModelInfo, parseSpeechModelKind, parseSpeechNullResult, parseSpeechPreferences, parseSpeechPreferencesPatch, parseSpeechProgress, parseSpeechReadiness, parseSpeechResult, parseSpeechStatus, parseSpeechSynthesisSummary, parseSpeechSynthesizeEvent, parseSpeechSynthesizeRequest, parseSpeechTranscribeRequest, parseSpeechTranscript, parseSpeechVoiceInfo };
|
package/dist/host/index.js
CHANGED
|
@@ -1,10 +1,58 @@
|
|
|
1
1
|
import {
|
|
2
|
+
AI_WIRE_LIMITS,
|
|
2
3
|
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
4
|
+
FILE_SYSTEM_TRANSFER_LIMITS,
|
|
5
|
+
HOST_PLATFORMS,
|
|
6
|
+
HOST_SURFACE_KINDS,
|
|
7
|
+
NO_HOST_CAPABILITIES,
|
|
8
|
+
SPEECH_WIRE_LIMITS,
|
|
9
|
+
deriveHostCapabilities,
|
|
3
10
|
getDocBlocksHost,
|
|
11
|
+
getHostCapabilities,
|
|
12
|
+
getHostEnvironment,
|
|
13
|
+
hasDocBlocksHost,
|
|
14
|
+
hostSupports,
|
|
4
15
|
isElectronHost,
|
|
5
|
-
|
|
6
|
-
|
|
16
|
+
isSpeechModelId,
|
|
17
|
+
maybeGetDocBlocksHost,
|
|
18
|
+
parseAiChatEvent,
|
|
19
|
+
parseAiChatProgress,
|
|
20
|
+
parseAiChatRequest,
|
|
21
|
+
parseAiError,
|
|
22
|
+
parseAiKnowledgeAction,
|
|
23
|
+
parseAiKnowledgeState,
|
|
24
|
+
parseAiModelDownloadInfo,
|
|
25
|
+
parseAiModelDownloadInfoList,
|
|
26
|
+
parseAiModelInfo,
|
|
27
|
+
parseAiModelInfoList,
|
|
28
|
+
parseAiModelInstallEvent,
|
|
29
|
+
parseAiPreferences,
|
|
30
|
+
parseAiPreferencesPatch,
|
|
31
|
+
parseAiProgress,
|
|
32
|
+
parseAiStatus,
|
|
33
|
+
parseHostEnvironment,
|
|
34
|
+
parseSpeechAudioChunk,
|
|
35
|
+
parseSpeechCatalog,
|
|
36
|
+
parseSpeechError,
|
|
37
|
+
parseSpeechInstallEvent,
|
|
38
|
+
parseSpeechModelInfo,
|
|
39
|
+
parseSpeechModelKind,
|
|
40
|
+
parseSpeechNullResult,
|
|
41
|
+
parseSpeechPreferences,
|
|
42
|
+
parseSpeechPreferencesPatch,
|
|
43
|
+
parseSpeechProgress,
|
|
44
|
+
parseSpeechReadiness,
|
|
45
|
+
parseSpeechResult,
|
|
46
|
+
parseSpeechStatus,
|
|
47
|
+
parseSpeechSynthesisSummary,
|
|
48
|
+
parseSpeechSynthesizeEvent,
|
|
49
|
+
parseSpeechSynthesizeRequest,
|
|
50
|
+
parseSpeechTranscribeRequest,
|
|
51
|
+
parseSpeechTranscript,
|
|
52
|
+
parseSpeechVoiceInfo
|
|
53
|
+
} from "../chunk-YNUQG4GF.js";
|
|
7
54
|
import {
|
|
55
|
+
EXPORT_TRANSFER_LIMITS,
|
|
8
56
|
HOST_WIRE_LIMITS,
|
|
9
57
|
MAX_HOST_PINNED_DOCUMENTS,
|
|
10
58
|
isBoundedBytePayload,
|
|
@@ -13,18 +61,66 @@ import {
|
|
|
13
61
|
parseExternalHttpUrl,
|
|
14
62
|
parseOpenRequest,
|
|
15
63
|
parsePinnedMenuDocuments
|
|
16
|
-
} from "../chunk-
|
|
64
|
+
} from "../chunk-46AGYHDY.js";
|
|
17
65
|
export {
|
|
66
|
+
AI_WIRE_LIMITS,
|
|
18
67
|
ELECTRON_FILE_SYSTEM_V2_CAPABILITIES,
|
|
68
|
+
EXPORT_TRANSFER_LIMITS,
|
|
69
|
+
FILE_SYSTEM_TRANSFER_LIMITS,
|
|
70
|
+
HOST_PLATFORMS,
|
|
71
|
+
HOST_SURFACE_KINDS,
|
|
19
72
|
HOST_WIRE_LIMITS,
|
|
20
73
|
MAX_HOST_PINNED_DOCUMENTS,
|
|
74
|
+
NO_HOST_CAPABILITIES,
|
|
75
|
+
SPEECH_WIRE_LIMITS,
|
|
76
|
+
deriveHostCapabilities,
|
|
21
77
|
getDocBlocksHost,
|
|
78
|
+
getHostCapabilities,
|
|
79
|
+
getHostEnvironment,
|
|
80
|
+
hasDocBlocksHost,
|
|
81
|
+
hostSupports,
|
|
22
82
|
isBoundedBytePayload,
|
|
23
83
|
isBoundedString,
|
|
24
84
|
isElectronHost,
|
|
85
|
+
isSpeechModelId,
|
|
25
86
|
isTrustedRendererUrl,
|
|
26
87
|
maybeGetDocBlocksHost,
|
|
88
|
+
parseAiChatEvent,
|
|
89
|
+
parseAiChatProgress,
|
|
90
|
+
parseAiChatRequest,
|
|
91
|
+
parseAiError,
|
|
92
|
+
parseAiKnowledgeAction,
|
|
93
|
+
parseAiKnowledgeState,
|
|
94
|
+
parseAiModelDownloadInfo,
|
|
95
|
+
parseAiModelDownloadInfoList,
|
|
96
|
+
parseAiModelInfo,
|
|
97
|
+
parseAiModelInfoList,
|
|
98
|
+
parseAiModelInstallEvent,
|
|
99
|
+
parseAiPreferences,
|
|
100
|
+
parseAiPreferencesPatch,
|
|
101
|
+
parseAiProgress,
|
|
102
|
+
parseAiStatus,
|
|
27
103
|
parseExternalHttpUrl,
|
|
104
|
+
parseHostEnvironment,
|
|
28
105
|
parseOpenRequest,
|
|
29
|
-
parsePinnedMenuDocuments
|
|
106
|
+
parsePinnedMenuDocuments,
|
|
107
|
+
parseSpeechAudioChunk,
|
|
108
|
+
parseSpeechCatalog,
|
|
109
|
+
parseSpeechError,
|
|
110
|
+
parseSpeechInstallEvent,
|
|
111
|
+
parseSpeechModelInfo,
|
|
112
|
+
parseSpeechModelKind,
|
|
113
|
+
parseSpeechNullResult,
|
|
114
|
+
parseSpeechPreferences,
|
|
115
|
+
parseSpeechPreferencesPatch,
|
|
116
|
+
parseSpeechProgress,
|
|
117
|
+
parseSpeechReadiness,
|
|
118
|
+
parseSpeechResult,
|
|
119
|
+
parseSpeechStatus,
|
|
120
|
+
parseSpeechSynthesisSummary,
|
|
121
|
+
parseSpeechSynthesizeEvent,
|
|
122
|
+
parseSpeechSynthesizeRequest,
|
|
123
|
+
parseSpeechTranscribeRequest,
|
|
124
|
+
parseSpeechTranscript,
|
|
125
|
+
parseSpeechVoiceInfo
|
|
30
126
|
};
|