dsh-lowtide 0.2.5 → 0.2.7
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/LICENSE +21 -21
- package/README.md +1 -1
- package/lib/client.js +391 -273
- package/lib/client.js.map +1 -1
- package/lib/types/client/components/DroppedRow.d.ts +4 -0
- package/lib/types/client/hooks/useInterceptDraft.d.ts +19 -0
- package/lib/types/client/lib/icons.d.ts +13 -0
- package/package.json +6 -6
|
@@ -1,3 +1,7 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DroppedRow (Phase D split): a soft-deleted task inside the 已放弃 section,
|
|
3
|
+
* with 恢复 (back to review) and 彻底删除 actions.
|
|
4
|
+
*/
|
|
1
5
|
import { type HostTask } from '../store.ts';
|
|
2
6
|
import { type NsTranslate } from '../i18n.ts';
|
|
3
7
|
export declare function DroppedRow({ task, t }: {
|
|
@@ -1,4 +1,23 @@
|
|
|
1
1
|
export declare const INTERCEPT_DISMISS_KEY = "dsh-lowtide:intercept-session-dismissed";
|
|
2
|
+
/**
|
|
3
|
+
* Read the live composer draft from whichever seat the slot hands us.
|
|
4
|
+
*
|
|
5
|
+
* Two shapes exist across the host generations this plugin supports:
|
|
6
|
+
* - the `conversation.input.dock` / `conversation.composer` owner props carry
|
|
7
|
+
* `input: InputState` directly;
|
|
8
|
+
* - the standard `useInput` selector hook is generated for the slot by
|
|
9
|
+
* `standardHookPropName` from the owner's declared `hooks: ['input']`.
|
|
10
|
+
*
|
|
11
|
+
* The hook is called UNCONDITIONALLY when present: React requires a stable hook
|
|
12
|
+
* order, so branching around a hook call between renders would throw. The
|
|
13
|
+
* fallback only decides which VALUE wins, never whether the hook runs.
|
|
14
|
+
*/
|
|
15
|
+
export declare function readDraftFromProps(props: {
|
|
16
|
+
input?: {
|
|
17
|
+
draft?: unknown;
|
|
18
|
+
} | undefined;
|
|
19
|
+
useInput?: unknown;
|
|
20
|
+
}): string;
|
|
2
21
|
/** Sync the live draft into the module state (QueueDock stays mounted inside
|
|
3
22
|
* the overlay-kept fallback, so it keeps tracking while the card is up).
|
|
4
23
|
* An emptied draft re-arms interception for the next message. */
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import type { ComponentType } from 'react';
|
|
2
|
+
type IconComponent = ComponentType<Record<string, unknown>>;
|
|
3
|
+
/** Resolve one icon for the shell this module actually loaded in. */
|
|
4
|
+
export declare function icon(legacy: string): IconComponent | null;
|
|
5
|
+
/**
|
|
6
|
+
* A resolved icon, or `null` when the shell ships neither spelling — so a
|
|
7
|
+
* partial shell degrades to a missing glyph instead of crashing the slot.
|
|
8
|
+
* Extra props (className, title, …) pass straight through.
|
|
9
|
+
*/
|
|
10
|
+
export declare function Icon({ name, ...rest }: {
|
|
11
|
+
readonly name: string;
|
|
12
|
+
} & Record<string, unknown>): React.JSX.Element | null;
|
|
13
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-lowtide",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.7",
|
|
4
4
|
"description": "lowtide: human-adjudicated off-peak batch task pipeline for dsh (peak/valley pricing aware)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "lib/index.js",
|
|
@@ -62,11 +62,11 @@
|
|
|
62
62
|
"directory": "packages/dsh-lowtide"
|
|
63
63
|
},
|
|
64
64
|
"peerDependencies": {
|
|
65
|
-
"@deepseek-ai/dsh-agent": "
|
|
66
|
-
"@deepseek-ai/dsh-llm": "
|
|
67
|
-
"@deepseek-ai/dsh-session": "
|
|
68
|
-
"@deepseek-ai/dsh-settings": "
|
|
69
|
-
"@deepseek-ai/dsh-storage-domain": "
|
|
65
|
+
"@deepseek-ai/dsh-agent": ">=0.1.0-rc.7 <0.2.1-0",
|
|
66
|
+
"@deepseek-ai/dsh-llm": ">=0.1.0-rc.7 <0.2.1-0",
|
|
67
|
+
"@deepseek-ai/dsh-session": ">=0.1.0-rc.7 <0.2.1-0",
|
|
68
|
+
"@deepseek-ai/dsh-settings": ">=0.1.0-rc.7 <0.2.1-0",
|
|
69
|
+
"@deepseek-ai/dsh-storage-domain": ">=0.1.0-rc.7 <0.2.1-0"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
72
|
"@deepseek-ai/cordis": "^4.0.1",
|