dsh-deeppilot 0.6.0-alpha.2 → 0.6.0-alpha.4
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/COMPATIBILITY.md +7 -8
- package/README.md +23 -17
- package/README.zh-CN.md +20 -15
- package/SECURITY.md +2 -2
- package/bin/SHA256SUMS +6 -6
- package/bin/darwin-amd64/dsh-deeppilot-tunnel +0 -0
- package/bin/darwin-arm64/dsh-deeppilot-tunnel +0 -0
- package/bin/linux-amd64/dsh-deeppilot-tunnel +0 -0
- package/bin/linux-arm64/dsh-deeppilot-tunnel +0 -0
- package/bin/windows-amd64/dsh-deeppilot-tunnel.exe +0 -0
- package/bin/windows-arm64/dsh-deeppilot-tunnel.exe +0 -0
- package/lib/client.js +317 -38
- package/lib/client.js.map +1 -1
- package/lib/index.d.ts +35 -7
- package/lib/index.js +771 -185
- package/lib/index.js.map +1 -1
- package/package.json +23 -12
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import z from "@deepseek-ai/schemastery";
|
|
2
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
|
+
import z from "@deepseek-ai/schemastery";
|
|
3
3
|
//#region src/protocol.d.ts
|
|
4
4
|
type SessionStatus = "running" | "idle" | "error" | "unknown";
|
|
5
5
|
type SessionTodoStatus = "pending" | "in_progress" | "completed";
|
|
@@ -40,12 +40,13 @@ interface MessageContextInfo {
|
|
|
40
40
|
/** One image carried by a user message. `attachmentId` keys the read-back RPC
|
|
41
41
|
* (c2s.session.attachment); width/height let clients reserve layout space. */
|
|
42
42
|
interface MessageAttachment {
|
|
43
|
-
kind: 'image';
|
|
43
|
+
kind: 'image' | 'document';
|
|
44
44
|
name?: string;
|
|
45
45
|
mediaType?: string;
|
|
46
46
|
attachmentId?: string;
|
|
47
47
|
width?: number;
|
|
48
48
|
height?: number;
|
|
49
|
+
truncated?: boolean;
|
|
49
50
|
}
|
|
50
51
|
interface MessageProjection {
|
|
51
52
|
/** Durable row identity; unique within one session/page. */
|
|
@@ -402,6 +403,14 @@ interface PushOutlet {
|
|
|
402
403
|
isAvailable(): boolean;
|
|
403
404
|
}
|
|
404
405
|
//#endregion
|
|
406
|
+
//#region src/document-payload.d.ts
|
|
407
|
+
interface PromptDocument {
|
|
408
|
+
name: string;
|
|
409
|
+
mediaType: string;
|
|
410
|
+
text: string;
|
|
411
|
+
truncated?: boolean;
|
|
412
|
+
}
|
|
413
|
+
//#endregion
|
|
405
414
|
//#region src/host-bridge.d.ts
|
|
406
415
|
declare class HostBridge {
|
|
407
416
|
private readonly apiProxy;
|
|
@@ -537,7 +546,7 @@ declare class HostBridge {
|
|
|
537
546
|
mediaType: 'image/png' | 'image/jpeg' | 'image/webp' | 'image/gif';
|
|
538
547
|
data: string;
|
|
539
548
|
name?: string;
|
|
540
|
-
}
|
|
549
|
+
}>, documents?: PromptDocument[]): Promise<SessionManagementResult<number>>;
|
|
541
550
|
respondApproval(requestId: string, decision: 'allow' | 'deny', reason?: string): Promise<PendingResponseOutcome>;
|
|
542
551
|
respondQuestion(requestId: string, answers: unknown): Promise<PendingResponseOutcome>;
|
|
543
552
|
}
|
|
@@ -552,6 +561,11 @@ interface Config {
|
|
|
552
561
|
historyBufferMax?: number;
|
|
553
562
|
/** Verbose per-frame diagnostics (never prints token or message bodies). */
|
|
554
563
|
debug?: boolean;
|
|
564
|
+
/** Independent LAN transport. Never exposes the wider DSH web server. */
|
|
565
|
+
local?: {
|
|
566
|
+
enabled?: boolean;
|
|
567
|
+
port?: number;
|
|
568
|
+
};
|
|
555
569
|
/** Optional embedded remote transport. Reconciled when settings change. */
|
|
556
570
|
remote?: {
|
|
557
571
|
enabled?: boolean;
|
|
@@ -591,6 +605,13 @@ declare const Config: z<Schemastery.ObjectS<{
|
|
|
591
605
|
devicesPath: z<string, string>;
|
|
592
606
|
historyBufferMax: z<number, number>;
|
|
593
607
|
debug: z<boolean, boolean>;
|
|
608
|
+
local: z<Schemastery.ObjectS<{
|
|
609
|
+
enabled: z<boolean, boolean>;
|
|
610
|
+
port: z<number, number>;
|
|
611
|
+
}>, Schemastery.ObjectT<{
|
|
612
|
+
enabled: z<boolean, boolean>;
|
|
613
|
+
port: z<number, number>;
|
|
614
|
+
}>>;
|
|
594
615
|
remote: z<Schemastery.ObjectS<{
|
|
595
616
|
enabled: z<boolean, boolean>;
|
|
596
617
|
provider: z<"tailscale-funnel", "tailscale-funnel">;
|
|
@@ -630,6 +651,13 @@ declare const Config: z<Schemastery.ObjectS<{
|
|
|
630
651
|
devicesPath: z<string, string>;
|
|
631
652
|
historyBufferMax: z<number, number>;
|
|
632
653
|
debug: z<boolean, boolean>;
|
|
654
|
+
local: z<Schemastery.ObjectS<{
|
|
655
|
+
enabled: z<boolean, boolean>;
|
|
656
|
+
port: z<number, number>;
|
|
657
|
+
}>, Schemastery.ObjectT<{
|
|
658
|
+
enabled: z<boolean, boolean>;
|
|
659
|
+
port: z<number, number>;
|
|
660
|
+
}>>;
|
|
633
661
|
remote: z<Schemastery.ObjectS<{
|
|
634
662
|
enabled: z<boolean, boolean>;
|
|
635
663
|
provider: z<"tailscale-funnel", "tailscale-funnel">;
|
|
@@ -684,9 +712,9 @@ declare function shouldReEnrollRelayToken(transport: 'apns' | 'relay', outcome:
|
|
|
684
712
|
//#region src/index.d.ts
|
|
685
713
|
/**
|
|
686
714
|
* dsh-deeppilot — data bridge between the DSH host and DeepPilot
|
|
687
|
-
* clients.
|
|
688
|
-
*
|
|
689
|
-
* UI
|
|
715
|
+
* clients. Owns independent, narrowly routed LAN and Funnel-origin listeners;
|
|
716
|
+
* temporary compatibility routes remain on the existing DSH web server. The
|
|
717
|
+
* web UI and the rest of DSH's API are never exposed by these listeners.
|
|
690
718
|
*
|
|
691
719
|
* Data plane: an in-process HostBridge consumes a local compatibility façade
|
|
692
720
|
* over DSH 0.1.2 Session/Workspace controllers, mirrors session summaries,
|
|
@@ -697,7 +725,7 @@ declare function shouldReEnrollRelayToken(transport: 'apns' | 'relay', outcome:
|
|
|
697
725
|
* Swift models mirror that v2 contract.
|
|
698
726
|
*/
|
|
699
727
|
declare const name = "deeppilot";
|
|
700
|
-
/** No eager service requirement:
|
|
728
|
+
/** No eager web-service requirement: independent transports start on their own. */
|
|
701
729
|
declare const inject: string[];
|
|
702
730
|
declare function apply(ctx: Context, options: unknown): void;
|
|
703
731
|
//#endregion
|