@sideboard-ai/core 0.1.275 → 0.1.277
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs +531 -81
- package/dist/index.d.cts +37 -2
- package/dist/index.d.ts +37 -2
- package/dist/index.js +514 -70
- package/package.json +1 -1
package/dist/index.d.cts
CHANGED
|
@@ -7151,6 +7151,20 @@ interface IpcApi {
|
|
|
7151
7151
|
};
|
|
7152
7152
|
/** Subscribe to orchestrator events; returns unsubscribe. */
|
|
7153
7153
|
onEvent(listener: (event: OrchestratorEvent) => void): () => void;
|
|
7154
|
+
/** Phone asked the Mac to open a worktree file or reveal a folder. */
|
|
7155
|
+
onPhoneOpenFile(listener: (request: {
|
|
7156
|
+
threadId: string;
|
|
7157
|
+
path: string;
|
|
7158
|
+
directory?: boolean;
|
|
7159
|
+
startLine?: number;
|
|
7160
|
+
endLine?: number;
|
|
7161
|
+
}) => void): () => void;
|
|
7162
|
+
/** Phone asked the Mac to open a chat artifact in the side column. */
|
|
7163
|
+
onPhoneOpenArtifact(listener: (request: {
|
|
7164
|
+
threadId: string;
|
|
7165
|
+
title: string;
|
|
7166
|
+
hint?: string;
|
|
7167
|
+
}) => void): () => void;
|
|
7154
7168
|
/** Subscribe to store directory changes (CLI threads appear live). */
|
|
7155
7169
|
onThreadsChanged(listener: () => void): () => void;
|
|
7156
7170
|
getRepoPath(): Promise<string>;
|
|
@@ -7767,6 +7781,20 @@ declare class RemoteHub {
|
|
|
7767
7781
|
private fromHost;
|
|
7768
7782
|
}
|
|
7769
7783
|
|
|
7784
|
+
type PhoneOpenArtifactRequest = {
|
|
7785
|
+
threadId: string;
|
|
7786
|
+
title: string;
|
|
7787
|
+
hint?: string;
|
|
7788
|
+
};
|
|
7789
|
+
|
|
7790
|
+
type PhoneOpenFileRequest = {
|
|
7791
|
+
threadId: string;
|
|
7792
|
+
path: string;
|
|
7793
|
+
directory?: boolean;
|
|
7794
|
+
startLine?: number;
|
|
7795
|
+
endLine?: number;
|
|
7796
|
+
};
|
|
7797
|
+
|
|
7770
7798
|
interface RemoteHostClientOptions {
|
|
7771
7799
|
url: string;
|
|
7772
7800
|
deviceId: string;
|
|
@@ -7783,6 +7811,10 @@ interface RemoteHostClientOptions {
|
|
|
7783
7811
|
onLog?: (line: string) => void;
|
|
7784
7812
|
/** Mac speech recognizer for a phone recording (wav base64). */
|
|
7785
7813
|
transcribeWav?: (wavBase64: string) => Promise<string>;
|
|
7814
|
+
/** Open a worktree file or folder in the desktop window. */
|
|
7815
|
+
onOpenWorktreeFile?: (request: PhoneOpenFileRequest) => void;
|
|
7816
|
+
/** Open a chat artifact in the desktop side column. */
|
|
7817
|
+
onOpenArtifact?: (request: PhoneOpenArtifactRequest) => void;
|
|
7786
7818
|
/** Tests: override keepalive cadence. */
|
|
7787
7819
|
pingIntervalMs?: number;
|
|
7788
7820
|
pongTimeoutMs?: number;
|
|
@@ -7858,8 +7890,6 @@ type RemoteServerMessage = {
|
|
|
7858
7890
|
type: 'pong';
|
|
7859
7891
|
};
|
|
7860
7892
|
|
|
7861
|
-
declare function formatRemotePrompt(text: string): string;
|
|
7862
|
-
declare function isRemoteStopCommand(text: string): boolean;
|
|
7863
7893
|
type RemoteOutbound = {
|
|
7864
7894
|
type: 'assistant';
|
|
7865
7895
|
text: string;
|
|
@@ -7868,12 +7898,17 @@ type RemoteOutbound = {
|
|
|
7868
7898
|
text: string;
|
|
7869
7899
|
questions: RemoteAskQuestion[];
|
|
7870
7900
|
};
|
|
7901
|
+
|
|
7902
|
+
declare function formatRemotePrompt(text: string): string;
|
|
7903
|
+
declare function isRemoteStopCommand(text: string): boolean;
|
|
7871
7904
|
declare function handleRemoteInbound(text: string, opts: {
|
|
7872
7905
|
deviceId: string;
|
|
7873
7906
|
agent?: AgentKind;
|
|
7874
7907
|
onOutbound: (msg: RemoteOutbound) => void;
|
|
7875
7908
|
onLog?: (line: string) => void;
|
|
7876
7909
|
transcribeWav?: (wavBase64: string) => Promise<string>;
|
|
7910
|
+
onOpenWorktreeFile?: (request: PhoneOpenFileRequest) => void;
|
|
7911
|
+
onOpenArtifact?: (request: PhoneOpenArtifactRequest) => void;
|
|
7877
7912
|
}): void;
|
|
7878
7913
|
|
|
7879
7914
|
declare function isRemoteAccountLoginCancelled(err: unknown): boolean;
|
package/dist/index.d.ts
CHANGED
|
@@ -7151,6 +7151,20 @@ interface IpcApi {
|
|
|
7151
7151
|
};
|
|
7152
7152
|
/** Subscribe to orchestrator events; returns unsubscribe. */
|
|
7153
7153
|
onEvent(listener: (event: OrchestratorEvent) => void): () => void;
|
|
7154
|
+
/** Phone asked the Mac to open a worktree file or reveal a folder. */
|
|
7155
|
+
onPhoneOpenFile(listener: (request: {
|
|
7156
|
+
threadId: string;
|
|
7157
|
+
path: string;
|
|
7158
|
+
directory?: boolean;
|
|
7159
|
+
startLine?: number;
|
|
7160
|
+
endLine?: number;
|
|
7161
|
+
}) => void): () => void;
|
|
7162
|
+
/** Phone asked the Mac to open a chat artifact in the side column. */
|
|
7163
|
+
onPhoneOpenArtifact(listener: (request: {
|
|
7164
|
+
threadId: string;
|
|
7165
|
+
title: string;
|
|
7166
|
+
hint?: string;
|
|
7167
|
+
}) => void): () => void;
|
|
7154
7168
|
/** Subscribe to store directory changes (CLI threads appear live). */
|
|
7155
7169
|
onThreadsChanged(listener: () => void): () => void;
|
|
7156
7170
|
getRepoPath(): Promise<string>;
|
|
@@ -7767,6 +7781,20 @@ declare class RemoteHub {
|
|
|
7767
7781
|
private fromHost;
|
|
7768
7782
|
}
|
|
7769
7783
|
|
|
7784
|
+
type PhoneOpenArtifactRequest = {
|
|
7785
|
+
threadId: string;
|
|
7786
|
+
title: string;
|
|
7787
|
+
hint?: string;
|
|
7788
|
+
};
|
|
7789
|
+
|
|
7790
|
+
type PhoneOpenFileRequest = {
|
|
7791
|
+
threadId: string;
|
|
7792
|
+
path: string;
|
|
7793
|
+
directory?: boolean;
|
|
7794
|
+
startLine?: number;
|
|
7795
|
+
endLine?: number;
|
|
7796
|
+
};
|
|
7797
|
+
|
|
7770
7798
|
interface RemoteHostClientOptions {
|
|
7771
7799
|
url: string;
|
|
7772
7800
|
deviceId: string;
|
|
@@ -7783,6 +7811,10 @@ interface RemoteHostClientOptions {
|
|
|
7783
7811
|
onLog?: (line: string) => void;
|
|
7784
7812
|
/** Mac speech recognizer for a phone recording (wav base64). */
|
|
7785
7813
|
transcribeWav?: (wavBase64: string) => Promise<string>;
|
|
7814
|
+
/** Open a worktree file or folder in the desktop window. */
|
|
7815
|
+
onOpenWorktreeFile?: (request: PhoneOpenFileRequest) => void;
|
|
7816
|
+
/** Open a chat artifact in the desktop side column. */
|
|
7817
|
+
onOpenArtifact?: (request: PhoneOpenArtifactRequest) => void;
|
|
7786
7818
|
/** Tests: override keepalive cadence. */
|
|
7787
7819
|
pingIntervalMs?: number;
|
|
7788
7820
|
pongTimeoutMs?: number;
|
|
@@ -7858,8 +7890,6 @@ type RemoteServerMessage = {
|
|
|
7858
7890
|
type: 'pong';
|
|
7859
7891
|
};
|
|
7860
7892
|
|
|
7861
|
-
declare function formatRemotePrompt(text: string): string;
|
|
7862
|
-
declare function isRemoteStopCommand(text: string): boolean;
|
|
7863
7893
|
type RemoteOutbound = {
|
|
7864
7894
|
type: 'assistant';
|
|
7865
7895
|
text: string;
|
|
@@ -7868,12 +7898,17 @@ type RemoteOutbound = {
|
|
|
7868
7898
|
text: string;
|
|
7869
7899
|
questions: RemoteAskQuestion[];
|
|
7870
7900
|
};
|
|
7901
|
+
|
|
7902
|
+
declare function formatRemotePrompt(text: string): string;
|
|
7903
|
+
declare function isRemoteStopCommand(text: string): boolean;
|
|
7871
7904
|
declare function handleRemoteInbound(text: string, opts: {
|
|
7872
7905
|
deviceId: string;
|
|
7873
7906
|
agent?: AgentKind;
|
|
7874
7907
|
onOutbound: (msg: RemoteOutbound) => void;
|
|
7875
7908
|
onLog?: (line: string) => void;
|
|
7876
7909
|
transcribeWav?: (wavBase64: string) => Promise<string>;
|
|
7910
|
+
onOpenWorktreeFile?: (request: PhoneOpenFileRequest) => void;
|
|
7911
|
+
onOpenArtifact?: (request: PhoneOpenArtifactRequest) => void;
|
|
7877
7912
|
}): void;
|
|
7878
7913
|
|
|
7879
7914
|
declare function isRemoteAccountLoginCancelled(err: unknown): boolean;
|