@senguoyun/dsh-arkme 0.1.73 → 0.1.75
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/docs/desktop-screenshot.md +75 -28
- package/lib/bundle-runtime.js +1 -1
- package/lib/client.js +3489 -3552
- package/lib/client.js.map +1 -1
- package/lib/extension-profile-restart-helper.js +5 -5
- package/lib/harness-model-client.js +86 -4
- package/lib/harness-native-selection-client.js +62 -0
- package/lib/harness-session-client.js +109 -6
- package/lib/harness-sidebar-client.js +2055 -6
- package/lib/index.js +4501 -1544
- package/lib/{install-store-bnyQDtYt.js → install-store-CAljxSo2.js} +2 -2
- package/lib/persistent-extension.js +1 -1
- package/lib/{plugin-updater-helper-Ny1szQA0.js → plugin-updater-helper-BWIKYugE.js} +5 -5
- package/lib/{plugin-updater-helper-D43MAnTY.js → plugin-updater-helper-DVcpMGBt.js} +1 -1
- package/lib/plugin-updater-helper.js +1 -1
- package/lib/{profile-bundle-policy-DLXDyohJ.js → profile-bundle-policy-Cwi2iuHi.js} +3 -3
- package/lib/sdk.js +62 -0
- package/lib/types/client/ArkmeArkoSurface.d.ts +31 -4
- package/lib/types/client/ArkmeArkoSurface.d.ts.map +1 -1
- package/lib/types/client/ArkmeComposerScreenshotButton.d.ts.map +1 -1
- package/lib/types/client/ArkmePersistentShell.d.ts.map +1 -1
- package/lib/types/client/ArkmeScreenshotCropDialog.d.ts +2 -2
- package/lib/types/client/ArkmeScreenshotCropDialog.d.ts.map +1 -1
- package/lib/types/client/ArkmeScreenshotEditor.d.ts +15 -0
- package/lib/types/client/ArkmeScreenshotEditor.d.ts.map +1 -0
- package/lib/types/client/ArkmeScreenshotShortcutSetting.d.ts +2 -0
- package/lib/types/client/ArkmeScreenshotShortcutSetting.d.ts.map +1 -0
- package/lib/types/client/ArkmeScreenshotTooltip.d.ts +8 -0
- package/lib/types/client/ArkmeScreenshotTooltip.d.ts.map +1 -0
- package/lib/types/client/ArkmeScreenshotWindow.d.ts +2 -0
- package/lib/types/client/ArkmeScreenshotWindow.d.ts.map +1 -0
- package/lib/types/client/ArkmeSettingsSurface.d.ts.map +1 -1
- package/lib/types/client/ArkoModelMenu.d.ts +10 -0
- package/lib/types/client/ArkoModelMenu.d.ts.map +1 -0
- package/lib/types/client/DeepSeekHarnessSurface.d.ts +4 -2
- package/lib/types/client/DeepSeekHarnessSurface.d.ts.map +1 -1
- package/lib/types/client/arko-model-cache.d.ts +21 -0
- package/lib/types/client/arko-model-cache.d.ts.map +1 -0
- package/lib/types/client/harness-account-sessions.d.ts +68 -0
- package/lib/types/client/harness-account-sessions.d.ts.map +1 -0
- package/lib/types/client/harness-model-client.d.ts.map +1 -1
- package/lib/types/client/harness-native-navigation.d.ts +12 -0
- package/lib/types/client/harness-native-navigation.d.ts.map +1 -0
- package/lib/types/client/harness-session-client.d.ts +17 -1
- package/lib/types/client/harness-session-client.d.ts.map +1 -1
- package/lib/types/client/harness-session-dropdown.d.ts.map +1 -1
- package/lib/types/client/harness-session-menu-bridge.d.ts +1 -0
- package/lib/types/client/harness-session-menu-bridge.d.ts.map +1 -1
- package/lib/types/client/harness-session-origin.d.ts +8 -0
- package/lib/types/client/harness-session-origin.d.ts.map +1 -0
- package/lib/types/client/harness-sidebar-client.d.ts.map +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/native-screenshot.d.ts +25 -0
- package/lib/types/client/native-screenshot.d.ts.map +1 -0
- package/lib/types/client/screenshot-editor-icons.d.ts +6 -0
- package/lib/types/client/screenshot-editor-icons.d.ts.map +1 -0
- package/lib/types/client/screenshot-editor-model.d.ts +40 -0
- package/lib/types/client/screenshot-editor-model.d.ts.map +1 -0
- package/lib/types/client/screenshot-editor-render.d.ts +4 -0
- package/lib/types/client/screenshot-editor-render.d.ts.map +1 -0
- package/lib/types/client/screenshot-shortcut.d.ts +17 -0
- package/lib/types/client/screenshot-shortcut.d.ts.map +1 -0
- package/lib/types/dsh-remote/account-session-observer.d.ts +9 -0
- package/lib/types/dsh-remote/account-session-observer.d.ts.map +1 -0
- package/lib/types/dsh-remote/account-session-tools.d.ts +3 -0
- package/lib/types/dsh-remote/account-session-tools.d.ts.map +1 -0
- package/lib/types/dsh-remote/account-session-types.d.ts +71 -0
- package/lib/types/dsh-remote/account-session-types.d.ts.map +1 -0
- package/lib/types/dsh-remote/account-sessions.d.ts +36 -0
- package/lib/types/dsh-remote/account-sessions.d.ts.map +1 -0
- package/lib/types/dsh-remote/api-proxy-adapter.d.ts +28 -0
- package/lib/types/dsh-remote/api-proxy-adapter.d.ts.map +1 -1
- package/lib/types/dsh-remote/channel-manager.d.ts +3 -0
- package/lib/types/dsh-remote/channel-manager.d.ts.map +1 -1
- package/lib/types/dsh-remote/cloud-native-transport.d.ts +22 -0
- package/lib/types/dsh-remote/cloud-native-transport.d.ts.map +1 -0
- package/lib/types/dsh-remote/cloud-turn-history.d.ts +21 -0
- package/lib/types/dsh-remote/cloud-turn-history.d.ts.map +1 -0
- package/lib/types/dsh-remote/connection-diagnostics.d.ts +5 -0
- package/lib/types/dsh-remote/connection-diagnostics.d.ts.map +1 -1
- package/lib/types/dsh-remote/control-plane.d.ts +1 -0
- package/lib/types/dsh-remote/control-plane.d.ts.map +1 -1
- package/lib/types/dsh-remote/desktop-session-presence.d.ts +4 -1
- package/lib/types/dsh-remote/desktop-session-presence.d.ts.map +1 -1
- package/lib/types/dsh-remote/gateway-api.d.ts.map +1 -1
- package/lib/types/dsh-remote/host.d.ts +7 -1
- package/lib/types/dsh-remote/host.d.ts.map +1 -1
- package/lib/types/dsh-remote/native-history-cache.d.ts +12 -0
- package/lib/types/dsh-remote/native-history-cache.d.ts.map +1 -0
- package/lib/types/dsh-remote/native-history.d.ts +18 -0
- package/lib/types/dsh-remote/native-history.d.ts.map +1 -0
- package/lib/types/dsh-remote/native-socket.d.ts +17 -0
- package/lib/types/dsh-remote/native-socket.d.ts.map +1 -0
- package/lib/types/dsh-remote/native-transport.d.ts +29 -0
- package/lib/types/dsh-remote/native-transport.d.ts.map +1 -0
- package/lib/types/dsh-remote/protocol-v1.d.ts.map +1 -1
- package/lib/types/dsh-remote/realtime-transport.d.ts +3 -0
- package/lib/types/dsh-remote/realtime-transport.d.ts.map +1 -1
- package/lib/types/dsh-remote/runtime-secret-broker.d.ts +1 -0
- package/lib/types/dsh-remote/runtime-secret-broker.d.ts.map +1 -1
- package/lib/types/dsh-remote/transport-fragment.d.ts +5 -0
- package/lib/types/dsh-remote/transport-fragment.d.ts.map +1 -1
- package/lib/types/dsh-remote/turn-projector.d.ts +2 -1
- package/lib/types/dsh-remote/turn-projector.d.ts.map +1 -1
- package/lib/types/dsh-remote/turn-upload-outbox.d.ts +6 -3
- package/lib/types/dsh-remote/turn-upload-outbox.d.ts.map +1 -1
- package/lib/types/dsh-remote/types.d.ts +6 -3
- package/lib/types/dsh-remote/types.d.ts.map +1 -1
- package/lib/types/harness-embed-route.d.ts +0 -1
- package/lib/types/harness-embed-route.d.ts.map +1 -1
- package/lib/types/harness-native-transport-script.d.ts +11 -0
- package/lib/types/harness-native-transport-script.d.ts.map +1 -0
- package/lib/types/harness-session-restore-script.d.ts +1 -1
- package/lib/types/harness-session-restore-script.d.ts.map +1 -1
- package/lib/types/host-api.d.ts +3 -1
- package/lib/types/host-api.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/sdk/index.d.ts +34 -0
- package/lib/types/sdk/index.d.ts.map +1 -1
- package/lib/types/types.d.ts +2 -1
- package/lib/types/types.d.ts.map +1 -1
- package/package.json +6 -5
- package/lib/arko-native-client.js +0 -6079
- package/lib/types/client/ArkmeArkoPanel.d.ts +0 -5
- package/lib/types/client/ArkmeArkoPanel.d.ts.map +0 -1
- package/lib/types/client/ArkoNativeSurface.d.ts +0 -27
- package/lib/types/client/ArkoNativeSurface.d.ts.map +0 -1
- package/lib/types/client/arko-conversation-contract.d.ts +0 -47
- package/lib/types/client/arko-conversation-contract.d.ts.map +0 -1
- package/lib/types/client/arko-native-client.d.ts +0 -19
- package/lib/types/client/arko-native-client.d.ts.map +0 -1
- package/lib/types/client/arko-native-composer.d.ts +0 -31
- package/lib/types/client/arko-native-composer.d.ts.map +0 -1
- package/lib/types/client/arko-native-emoji-picker.d.ts +0 -17
- package/lib/types/client/arko-native-emoji-picker.d.ts.map +0 -1
- package/lib/types/client/arko-native-frame.d.ts +0 -3
- package/lib/types/client/arko-native-frame.d.ts.map +0 -1
- package/lib/types/client/arko-native-transport.d.ts +0 -20
- package/lib/types/client/arko-native-transport.d.ts.map +0 -1
- package/lib/types/client/useArkoConversationController.d.ts +0 -57
- package/lib/types/client/useArkoConversationController.d.ts.map +0 -1
- package/lib/{bundle-runtime-CE73h3vS.js → bundle-runtime-QUG0eHSZ.js} +1 -1
- package/lib/{persistent-runtime-Cb8xQ4w0.js → persistent-runtime-oMlB7XX_.js} +6 -6
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArkmeArkoPanel.d.ts","sourceRoot":"","sources":["../../../src/client/ArkmeArkoPanel.tsx"],"names":[],"mappings":"AAGA,oFAAoF;AACpF,wBAAgB,cAAc,CAAC,EAAE,OAAO,EAAE,EAAE;IAAE,OAAO,EAAE,OAAO,CAAA;CAAE,sCAU/D"}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
import { createArkoNativeTransport } from './arko-native-transport.js';
|
|
2
|
-
import type { ArkoConversationActions, ArkoConversationSnapshot } from './arko-conversation-contract.js';
|
|
3
|
-
export interface ArkoNativeUiActions {
|
|
4
|
-
clearDisabled: boolean;
|
|
5
|
-
retryLabel?: string;
|
|
6
|
-
setDraft(text: string): void;
|
|
7
|
-
clearContext(): void;
|
|
8
|
-
retry(): Promise<void>;
|
|
9
|
-
feedback(message: string): void;
|
|
10
|
-
}
|
|
11
|
-
export type ArkoNativeCarrier = ReturnType<typeof createArkoNativeTransport> & {
|
|
12
|
-
ui: ArkoNativeUiActions;
|
|
13
|
-
ready(): void;
|
|
14
|
-
};
|
|
15
|
-
declare global {
|
|
16
|
-
interface Window {
|
|
17
|
-
__arkmeArkoNativeFrames?: Map<string, ArkoNativeCarrier>;
|
|
18
|
-
__ARKME_NATIVE_ARKO__?: ArkoNativeCarrier;
|
|
19
|
-
}
|
|
20
|
-
}
|
|
21
|
-
/** This component owns only the native document and its disposable presentation carrier. */
|
|
22
|
-
export declare function ArkoNativeSurface({ snapshot, actions, ui }: {
|
|
23
|
-
snapshot: ArkoConversationSnapshot;
|
|
24
|
-
actions: ArkoConversationActions;
|
|
25
|
-
ui: ArkoNativeUiActions;
|
|
26
|
-
}): import("react").JSX.Element;
|
|
27
|
-
//# sourceMappingURL=ArkoNativeSurface.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"ArkoNativeSurface.d.ts","sourceRoot":"","sources":["../../../src/client/ArkoNativeSurface.tsx"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,KAAK,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,iCAAiC,CAAA;AAKxG,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,OAAO,CAAA;IACtB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,QAAQ,CAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;IAC5B,YAAY,IAAI,IAAI,CAAA;IACpB,KAAK,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;IACtB,QAAQ,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAChC;AACD,MAAM,MAAM,iBAAiB,GAAG,UAAU,CAAC,OAAO,yBAAyB,CAAC,GAAG;IAAE,EAAE,EAAE,mBAAmB,CAAC;IAAC,KAAK,IAAI,IAAI,CAAA;CAAE,CAAA;AACzH,OAAO,CAAC,MAAM,CAAC;IACb,UAAU,MAAM;QACd,uBAAuB,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAA;QACxD,qBAAqB,CAAC,EAAE,iBAAiB,CAAA;KAC1C;CACF;AAED,4FAA4F;AAC5F,wBAAgB,iBAAiB,CAAC,EAAE,QAAQ,EAAE,OAAO,EAAE,EAAE,EAAE,EAAE;IAC3D,QAAQ,EAAE,wBAAwB,CAAC;IAAC,OAAO,EAAE,uBAAuB,CAAC;IAAC,EAAE,EAAE,mBAAmB,CAAA;CAC9F,+BA4DA"}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
import type { ArkmeArkoModelCatalog } from '../types.js';
|
|
2
|
-
export interface ArkoConversationMessage {
|
|
3
|
-
id: string;
|
|
4
|
-
/** Preserved by the business owner when a local message acquires a server ID. */
|
|
5
|
-
presentationKey?: string;
|
|
6
|
-
messageId?: number;
|
|
7
|
-
sessionId?: number;
|
|
8
|
-
role: 'user' | 'assistant' | 'divider';
|
|
9
|
-
text: string;
|
|
10
|
-
reasoning?: string;
|
|
11
|
-
status: 'sending' | 'done' | 'error';
|
|
12
|
-
createdAtMillis?: number;
|
|
13
|
-
assistantMsgId?: number;
|
|
14
|
-
runUid?: string;
|
|
15
|
-
runStatus?: string;
|
|
16
|
-
messageActionRef?: string;
|
|
17
|
-
messageActionConversationRef?: string;
|
|
18
|
-
copyLinkAvailable?: boolean;
|
|
19
|
-
forwardAvailable?: boolean;
|
|
20
|
-
}
|
|
21
|
-
export interface ArkoConversationSnapshot {
|
|
22
|
-
accountKey: string;
|
|
23
|
-
displayName: string;
|
|
24
|
-
/** Business context, never used as the native presentation session identity. */
|
|
25
|
-
sessionId?: number;
|
|
26
|
-
messages: readonly ArkoConversationMessage[];
|
|
27
|
-
modelCatalog: ArkmeArkoModelCatalog | null;
|
|
28
|
-
loading: boolean;
|
|
29
|
-
busy: boolean;
|
|
30
|
-
draft: string;
|
|
31
|
-
error: string;
|
|
32
|
-
hasMore?: boolean;
|
|
33
|
-
historyError?: string;
|
|
34
|
-
inputBlockedReason?: string;
|
|
35
|
-
notice?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface ArkoConversationHistoryPage {
|
|
38
|
-
messages: readonly ArkoConversationMessage[];
|
|
39
|
-
hasMore: boolean;
|
|
40
|
-
}
|
|
41
|
-
export interface ArkoConversationActions {
|
|
42
|
-
submit(text: string): Promise<boolean>;
|
|
43
|
-
selectModel(routeKey: string): Promise<boolean | void>;
|
|
44
|
-
cancel(): Promise<boolean | void>;
|
|
45
|
-
loadEarlier(): Promise<ArkoConversationHistoryPage>;
|
|
46
|
-
}
|
|
47
|
-
//# sourceMappingURL=arko-conversation-contract.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arko-conversation-contract.d.ts","sourceRoot":"","sources":["../../../src/client/arko-conversation-contract.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAA;AAExD,MAAM,WAAW,uBAAuB;IACtC,EAAE,EAAE,MAAM,CAAA;IACV,iFAAiF;IACjF,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAA;IACtC,IAAI,EAAE,MAAM,CAAA;IACZ,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAA;IACpC,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,4BAA4B,CAAC,EAAE,MAAM,CAAA;IACrC,iBAAiB,CAAC,EAAE,OAAO,CAAA;IAC3B,gBAAgB,CAAC,EAAE,OAAO,CAAA;CAC3B;AAED,MAAM,WAAW,wBAAwB;IACvC,UAAU,EAAE,MAAM,CAAA;IAClB,WAAW,EAAE,MAAM,CAAA;IACnB,gFAAgF;IAChF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAA;IAC5C,YAAY,EAAE,qBAAqB,GAAG,IAAI,CAAA;IAC1C,OAAO,EAAE,OAAO,CAAA;IAChB,IAAI,EAAE,OAAO,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,KAAK,EAAE,MAAM,CAAA;IACb,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,kBAAkB,CAAC,EAAE,MAAM,CAAA;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,SAAS,uBAAuB,EAAE,CAAA;IAC5C,OAAO,EAAE,OAAO,CAAA;CACjB;AAED,MAAM,WAAW,uBAAuB;IACtC,MAAM,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACtC,WAAW,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;IACtD,MAAM,IAAI,OAAO,CAAC,OAAO,GAAG,IAAI,CAAC,CAAA;IACjC,WAAW,IAAI,OAAO,CAAC,2BAA2B,CAAC,CAAA;CACpD"}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client';
|
|
2
|
-
export declare const inject: string[];
|
|
3
|
-
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
4
|
-
interface SlotMap {
|
|
5
|
-
'conversation.session.header.utilities': {
|
|
6
|
-
kind: 'list';
|
|
7
|
-
scope: 'session';
|
|
8
|
-
owner: Record<never, never>;
|
|
9
|
-
};
|
|
10
|
-
'conversation.composer.dock': {
|
|
11
|
-
kind: 'list';
|
|
12
|
-
scope: 'session';
|
|
13
|
-
owner: Record<never, never>;
|
|
14
|
-
};
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
/** All conversation rendering remains owned by the native DSH plugins. */
|
|
18
|
-
export declare function apply(ctx: ClientContext): void;
|
|
19
|
-
//# sourceMappingURL=arko-native-client.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arko-native-client.d.ts","sourceRoot":"","sources":["../../../src/client/arko-native-client.tsx"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAI3E,eAAO,MAAM,MAAM,UAAwC,CAAA;AAC3D,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,OAAO;QACf,uCAAuC,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;SAAE,CAAA;QACxG,4BAA4B,EAAE;YAAE,IAAI,EAAE,MAAM,CAAC;YAAC,KAAK,EAAE,SAAS,CAAC;YAAC,KAAK,EAAE,MAAM,CAAC,KAAK,EAAE,KAAK,CAAC,CAAA;SAAE,CAAA;KAC9F;CACF;AAsDD,0EAA0E;AAC1E,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAwC9C"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
export interface ArkoNativeComposerControls {
|
|
2
|
-
disabled: boolean;
|
|
3
|
-
captureSelection(): void;
|
|
4
|
-
insertText(text: string): boolean;
|
|
5
|
-
getCaretGeometry(): DOMRect | undefined;
|
|
6
|
-
getEditorGeometry(): DOMRect;
|
|
7
|
-
}
|
|
8
|
-
export interface ArkoNativeComposerPicker {
|
|
9
|
-
update(state: {
|
|
10
|
-
disabled: boolean;
|
|
11
|
-
}): void;
|
|
12
|
-
dispose(): void;
|
|
13
|
-
}
|
|
14
|
-
export interface ArkoNativeComposerOptions {
|
|
15
|
-
/** The Arko-only frame document or container. Never pass the ordinary DSH document. */
|
|
16
|
-
root: Document | HTMLElement;
|
|
17
|
-
locked?: () => boolean;
|
|
18
|
-
mountEmojiPicker(host: HTMLElement, controls: ArkoNativeComposerControls): ArkoNativeComposerPicker;
|
|
19
|
-
onFeedback?: (message: string) => void;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* Adapts only Arko's native composer. Editing stays in the browser/Lexical input
|
|
23
|
-
* path: no private Lexical field, Tiptap command, or direct content mutation.
|
|
24
|
-
* Install before native bootstrap when possible. The installed native file-drop
|
|
25
|
-
* owner uses document bubbling; our document capture runs before that owner.
|
|
26
|
-
*/
|
|
27
|
-
export declare function installArkoNativeComposerAdapter(options: ArkoNativeComposerOptions): {
|
|
28
|
-
refresh(): void;
|
|
29
|
-
dispose(): void;
|
|
30
|
-
};
|
|
31
|
-
//# sourceMappingURL=arko-native-composer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arko-native-composer.d.ts","sourceRoot":"","sources":["../../../src/client/arko-native-composer.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,OAAO,CAAA;IACjB,gBAAgB,IAAI,IAAI,CAAA;IACxB,UAAU,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAA;IACjC,gBAAgB,IAAI,OAAO,GAAG,SAAS,CAAA;IACvC,iBAAiB,IAAI,OAAO,CAAA;CAC7B;AACD,MAAM,WAAW,wBAAwB;IACvC,MAAM,CAAC,KAAK,EAAE;QAAE,QAAQ,EAAE,OAAO,CAAA;KAAE,GAAG,IAAI,CAAA;IAC1C,OAAO,IAAI,IAAI,CAAA;CAChB;AACD,MAAM,WAAW,yBAAyB;IACxC,uFAAuF;IACvF,IAAI,EAAE,QAAQ,GAAG,WAAW,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,OAAO,CAAA;IACtB,gBAAgB,CAAC,IAAI,EAAE,WAAW,EAAE,QAAQ,EAAE,0BAA0B,GAAG,wBAAwB,CAAA;IACnG,UAAU,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,CAAA;CACvC;AAOD;;;;;GAKG;AACH,wBAAgB,gCAAgC,CAAC,OAAO,EAAE,yBAAyB,GAAG;IAAE,OAAO,IAAI,IAAI,CAAC;IAAC,OAAO,IAAI,IAAI,CAAA;CAAE,CA4NzH"}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import type { ClientContext } from '@deepseek-ai/dsh-client-runtime/client';
|
|
2
|
-
/** Mount inside the Arko document's own React realm, never in the parent DSH page. */
|
|
3
|
-
export interface ArkoNativeComposerMountOptions {
|
|
4
|
-
root: Document;
|
|
5
|
-
accountKey: string | undefined;
|
|
6
|
-
scopeKey: string;
|
|
7
|
-
locked?: () => boolean;
|
|
8
|
-
onFeedback(message: string): void;
|
|
9
|
-
}
|
|
10
|
-
export declare const inject: string[];
|
|
11
|
-
/** Registration alone never changes a document; the Arko page owns mount/dispose. */
|
|
12
|
-
export declare function apply(ctx: ClientContext): void;
|
|
13
|
-
export declare function mountArkoNativeEmojiPicker(options: ArkoNativeComposerMountOptions): {
|
|
14
|
-
refresh(): void;
|
|
15
|
-
dispose(): void;
|
|
16
|
-
};
|
|
17
|
-
//# sourceMappingURL=arko-native-emoji-picker.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arko-native-emoji-picker.d.ts","sourceRoot":"","sources":["../../../src/client/arko-native-emoji-picker.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wCAAwC,CAAA;AAQ3E,sFAAsF;AACtF,MAAM,WAAW,8BAA8B;IAC7C,IAAI,EAAE,QAAQ,CAAA;IACd,UAAU,EAAE,MAAM,GAAG,SAAS,CAAA;IAC9B,QAAQ,EAAE,MAAM,CAAA;IAChB,MAAM,CAAC,EAAE,MAAM,OAAO,CAAA;IACtB,UAAU,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;CAClC;AAED,eAAO,MAAM,MAAM,EAAE,MAAM,EAAO,CAAA;AAElC,qFAAqF;AACrF,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAE9C;AAED,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,8BAA8B;;;EAiCjF"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arko-native-frame.d.ts","sourceRoot":"","sources":["../../../src/client/arko-native-frame.ts"],"names":[],"mappings":"AAmBA,0FAA0F;AAC1F,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CA8BzF"}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
import type { ArkoConversationSnapshot, ArkoConversationActions } from './arko-conversation-contract.js';
|
|
2
|
-
/** Structural form of DSH's public ClientTransportHooks; no runtime DSH import. */
|
|
3
|
-
export interface ArkoNativeTransport {
|
|
4
|
-
readonly sessionId: string;
|
|
5
|
-
/** The frame owner remounts only for corrections/removals, never for an older page. */
|
|
6
|
-
readonly historyRevision: number;
|
|
7
|
-
fetch(input: URL, init: RequestInit): Promise<Response>;
|
|
8
|
-
openStream(endpoint: string, payload: unknown, signal: AbortSignal): AsyncIterable<unknown>;
|
|
9
|
-
update(snapshot: ArkoConversationSnapshot, actions?: ArkoConversationActions): void;
|
|
10
|
-
getSnapshot(): ArkoConversationSnapshot;
|
|
11
|
-
subscribe(listener: () => void): () => void;
|
|
12
|
-
dispose(): void;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* Render-only protocol adapter. Snapshots and admitted actions remain owned by
|
|
16
|
-
* ArkmeArkoSurface; this object owns only DSH cursor/identity presentation data.
|
|
17
|
-
* Unsupported calls never reach the host transport or any Arkme API.
|
|
18
|
-
*/
|
|
19
|
-
export declare function createArkoNativeTransport(initial: ArkoConversationSnapshot, initialActions: ArkoConversationActions): ArkoNativeTransport;
|
|
20
|
-
//# sourceMappingURL=arko-native-transport.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"arko-native-transport.d.ts","sourceRoot":"","sources":["../../../src/client/arko-native-transport.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAA2B,wBAAwB,EAAE,uBAAuB,EAAE,MAAM,iCAAiC,CAAA;AAEjI,mFAAmF;AACnF,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAA;IAC1B,uFAAuF;IACvF,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAA;IAChC,KAAK,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,WAAW,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAA;IACvD,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,WAAW,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;IAC3F,MAAM,CAAC,QAAQ,EAAE,wBAAwB,EAAE,OAAO,CAAC,EAAE,uBAAuB,GAAG,IAAI,CAAA;IACnF,WAAW,IAAI,wBAAwB,CAAA;IACvC,SAAS,CAAC,QAAQ,EAAE,MAAM,IAAI,GAAG,MAAM,IAAI,CAAA;IAC3C,OAAO,IAAI,IAAI,CAAA;CAChB;AA4DD;;;;GAIG;AACH,wBAAgB,yBAAyB,CAAC,OAAO,EAAE,wBAAwB,EAAE,cAAc,EAAE,uBAAuB,GAAG,mBAAmB,CA4XzI"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import type { ArkoConversationMessage as ArkoMessage, ArkoConversationHistoryPage } from './arko-conversation-contract.js';
|
|
2
|
-
import type { ArkmeArkoHistoryItem, ArkmeArkoModelCatalog, ArkmeArkoSession, ArkmeUserProfile } from '../types.js';
|
|
3
|
-
import { type ArkmeArkoPendingTurn } from './arko-pending-turn-store.js';
|
|
4
|
-
export declare const arkoQuestionMaxLength: number;
|
|
5
|
-
interface ArkoContinuationTarget {
|
|
6
|
-
assistantMsgId: number;
|
|
7
|
-
runUid: string;
|
|
8
|
-
}
|
|
9
|
-
interface ActiveArkoRun extends ArkoContinuationTarget {
|
|
10
|
-
sessionId: number;
|
|
11
|
-
}
|
|
12
|
-
export declare function arkoHistoryHasTerminalRun(items: ArkmeArkoHistoryItem[], sessionId: number, assistantMsgId: number, runUid: string): boolean;
|
|
13
|
-
export declare function latestActiveRun(items: ArkmeArkoHistoryItem[], sessionId: number): ActiveArkoRun | undefined;
|
|
14
|
-
export declare function mergeHistory(current: ArkoMessage[], items: ArkmeArkoHistoryItem[]): ArkoMessage[];
|
|
15
|
-
export declare function useArkoConversationController(): {
|
|
16
|
-
accountKey: string | undefined;
|
|
17
|
-
profileUserId: number | undefined;
|
|
18
|
-
composerDraftKey: string | undefined;
|
|
19
|
-
draftSnapshot: import("./composer-draft-store.js").ArkmeComposerDraftSnapshot;
|
|
20
|
-
draft: string;
|
|
21
|
-
userProfile: ArkmeUserProfile | null;
|
|
22
|
-
session: ArkmeArkoSession | undefined;
|
|
23
|
-
catalog: ArkmeArkoModelCatalog | undefined;
|
|
24
|
-
messages: ArkoMessage[];
|
|
25
|
-
historyOffset: number | null | undefined;
|
|
26
|
-
historyError: string;
|
|
27
|
-
historyPageError: string;
|
|
28
|
-
loading: boolean;
|
|
29
|
-
historyLoading: boolean;
|
|
30
|
-
sending: boolean;
|
|
31
|
-
clearing: boolean;
|
|
32
|
-
selectingModel: boolean;
|
|
33
|
-
cancelling: boolean;
|
|
34
|
-
error: string;
|
|
35
|
-
notice: string;
|
|
36
|
-
activeRun: ActiveArkoRun | undefined;
|
|
37
|
-
pendingTurn: ArkmeArkoPendingTurn | undefined;
|
|
38
|
-
interactionLocked: boolean;
|
|
39
|
-
sendDisabled: boolean;
|
|
40
|
-
inputDisabled: boolean;
|
|
41
|
-
displayName: string;
|
|
42
|
-
selectedModel: string;
|
|
43
|
-
canChooseModel: boolean;
|
|
44
|
-
continuation: ArkoContinuationTarget | undefined;
|
|
45
|
-
send: (presetText?: string) => Promise<boolean>;
|
|
46
|
-
submitTurn: (turn: ArkmeArkoPendingTurn) => Promise<boolean>;
|
|
47
|
-
selectModel: (routeKey: string) => Promise<boolean>;
|
|
48
|
-
cancelActiveRun: () => Promise<boolean>;
|
|
49
|
-
clearContext: () => Promise<void>;
|
|
50
|
-
loadEarlier: () => Promise<ArkoConversationHistoryPage>;
|
|
51
|
-
retryHistory: () => Promise<void>;
|
|
52
|
-
setDraft: (text: string) => void;
|
|
53
|
-
feedback: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
54
|
-
};
|
|
55
|
-
export type ArkoConversationController = ReturnType<typeof useArkoConversationController>;
|
|
56
|
-
export {};
|
|
57
|
-
//# sourceMappingURL=useArkoConversationController.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"useArkoConversationController.d.ts","sourceRoot":"","sources":["../../../src/client/useArkoConversationController.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,uBAAuB,IAAI,WAAW,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAA;AAC1H,OAAO,KAAK,EAA6C,oBAAoB,EAAwB,qBAAqB,EAAwC,gBAAgB,EAAE,gBAAgB,EAA4B,MAAM,aAAa,CAAA;AAEnP,OAAO,EAAoE,KAAK,oBAAoB,EAAE,MAAM,8BAA8B,CAAA;AAK1I,eAAO,MAAM,qBAAqB,QAAY,CAAA;AAE9C,UAAU,sBAAsB;IAC9B,cAAc,EAAE,MAAM,CAAA;IACtB,MAAM,EAAE,MAAM,CAAA;CACf;AAED,UAAU,aAAc,SAAQ,sBAAsB;IACpD,SAAS,EAAE,MAAM,CAAA;CAClB;AAuBD,wBAAgB,yBAAyB,CACvC,KAAK,EAAE,oBAAoB,EAAE,EAC7B,SAAS,EAAE,MAAM,EACjB,cAAc,EAAE,MAAM,EACtB,MAAM,EAAE,MAAM,GACb,OAAO,CAMT;AAwCD,wBAAgB,eAAe,CAC7B,KAAK,EAAE,oBAAoB,EAAE,EAC7B,SAAS,EAAE,MAAM,GAChB,aAAa,GAAG,SAAS,CAS3B;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,WAAW,EAAE,EAAE,KAAK,EAAE,oBAAoB,EAAE,GAAG,WAAW,EAAE,CAejG;AA6BD,wBAAgB,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAyXE,MAAM;uBA1FP,oBAAoB;4BAyIf,MAAM;;;uBA9Mb,OAAO,CAAC,2BAA2B,CAAC;;qBAyR3D,MAAM;;EAG1B;AAED,MAAM,MAAM,0BAA0B,GAAG,UAAU,CAAC,OAAO,6BAA6B,CAAC,CAAA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
2
1
|
import { readFileSync } from "node:fs";
|
|
2
|
+
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
3
3
|
import { createContext, runInContext } from "node:vm";
|
|
4
4
|
import { Context } from "@deepseek-ai/cordis";
|
|
5
5
|
//#region src/extensions/bundle-runtime.ts
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { createRequire } from "node:module";
|
|
2
|
-
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
3
|
-
import { chmodSync, constants, createReadStream, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
4
2
|
import { createCipheriv, createDecipheriv, createHash, createHmac, createPublicKey, randomBytes, randomUUID, timingSafeEqual, verify } from "node:crypto";
|
|
5
|
-
import {
|
|
6
|
-
import { execFile } from "node:child_process";
|
|
3
|
+
import { chmodSync, constants, createReadStream, existsSync, lstatSync, mkdirSync, readFileSync, readdirSync, realpathSync, renameSync, rmSync, statSync, writeFileSync } from "node:fs";
|
|
7
4
|
import minpath, { basename, dirname, isAbsolute, join, posix, relative, resolve, sep } from "node:path";
|
|
8
|
-
import {
|
|
5
|
+
import { execFile } from "node:child_process";
|
|
6
|
+
import { Readable } from "node:stream";
|
|
9
7
|
import { gunzipSync, gzipSync } from "node:zlib";
|
|
8
|
+
import { defineTool } from "@deepseek-ai/dsh-tools";
|
|
9
|
+
import { access, chmod as chmod$1, copyFile, lstat, mkdir, mkdtemp, open, opendir, readFile, realpath, rename, rm, stat, unlink, writeFile } from "node:fs/promises";
|
|
10
|
+
import { fileURLToPath, fileURLToPath as urlToPath } from "node:url";
|
|
10
11
|
import { request } from "node:http";
|
|
11
12
|
import { homedir, tmpdir } from "node:os";
|
|
12
13
|
import { request as request$1 } from "node:https";
|
|
13
|
-
import { Readable } from "node:stream";
|
|
14
14
|
import { BlockList, isIP } from "node:net";
|
|
15
15
|
import { EMPTY_RESPONSE_CODE, LlmAdapter, LlmError, ProviderRequestId, ReasoningEffortId, attributionHeaders, createUserMessage } from "@deepseek-ai/dsh-llm";
|
|
16
16
|
import { getOrCreateAnonymousUserId } from "@deepseek-ai/dsh-anonymous-user-id";
|