@mstar-harness/dsh 3.8.0 → 3.8.1
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/README.i18n.yaml +2 -2
- package/README.md +126 -188
- package/README.zh.md +13 -11
- package/bundle/README.md +83 -171
- package/dist/client/index.d.ts +17 -8
- package/dist/client/panel/MstarPanelTitle.d.ts +13 -0
- package/dist/client/panel/PanelView.d.ts +56 -52
- package/dist/client/panel/TabNav.d.ts +17 -14
- package/dist/client/panel/definition.d.ts +23 -0
- package/dist/client/panel/graph/project-graph.d.ts +9 -51
- package/dist/client/panel/graph/schema.d.ts +1 -2
- package/dist/client/panel/locale.d.ts +1 -1
- package/dist/client/panel/mstar-glyph.d.ts +22 -0
- package/dist/client/panel/pages/AgentListPage.d.ts +71 -0
- package/dist/client/panel/pages/EventLogPage.d.ts +7 -4
- package/dist/client/panel/pages/IterationInfoSection.d.ts +16 -13
- package/dist/client/panel/pages/IterationTaskPage.d.ts +13 -14
- package/dist/client/panel/panel-store.d.ts +28 -0
- package/dist/client/panel/sidebar.d.ts +10 -5
- package/dist/client/panel/use-mstar-engine-status.d.ts +11 -10
- package/dist/client/panel/zones/Legend.d.ts +5 -3
- package/dist/client/panel/zones/TaskBoard.d.ts +13 -9
- package/dist/client.js +697 -1199
- package/dist/gates/catalog.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/types.d.ts +14 -7
- package/harness-skills/mstar-host/references/dsh.md +91 -225
- package/package.json +65 -63
- package/dist/client/panel/pages/AgentCanvasPage.d.ts +0 -345
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
|
-
*
|
|
3
|
-
*
|
|
4
|
-
*
|
|
5
|
-
* (
|
|
2
|
+
* Workspace-state digest (plan sidebar §L2.1): the former 300px sidebar
|
|
3
|
+
* column, now IN FLOW at the end of the panel's scroll body — the digest is
|
|
4
|
+
* not a column any more, and its own nested scroller
|
|
5
|
+
* (`data-mstar-sidebar-scroll`) is retired: `[data-mstar-scroll]` is the
|
|
6
|
+
* panel's single scroller and this block is flow content inside it. The
|
|
7
|
+
* bottom meta dock moved to the shell's third zone (PanelView renders it
|
|
8
|
+
* directly), so this component renders ONLY the digest.
|
|
9
|
+
*
|
|
10
|
+
* `data-mstar-sidebar` stays on the digest block (anchor lineage).
|
|
6
11
|
* Degradation: `state === null` renders the no-state note instead of the
|
|
7
|
-
* digest (never a crash)
|
|
12
|
+
* digest (never a crash).
|
|
8
13
|
*/
|
|
9
14
|
import * as React from 'react';
|
|
10
15
|
import type { TranslateNS } from '@deepseek-ai/dsh-client-ui-slots';
|
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Data hook for the workflow panel (spec §5): the panel's ONE data path.
|
|
3
3
|
*
|
|
4
|
-
* The persisted catalog row is an ANCHOR, not a data source:
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
4
|
+
* The persisted catalog row is an ANCHOR, not a data source: rows are emitted
|
|
5
|
+
* as `{ kind: 'plugin', plugin: 'mstar-engine', form: 'catalog' }`, and the
|
|
6
|
+
* structured payload lives in the host's per-session snapshot store. So the
|
|
7
|
+
* hook
|
|
8
8
|
*
|
|
9
9
|
* 1. finds the LATEST anchor row in the active session's conversation log
|
|
10
10
|
* (`kind === 'context'` + `form === 'catalog'` + the first-party `plugin`
|
|
11
|
-
* arm with this plugin's
|
|
12
|
-
* refresh key — a re-emission appends a new row, the snapshot
|
|
13
|
-
* this selection, and the newest anchor asks for the newest
|
|
11
|
+
* arm with one of this plugin's anchor identities) and takes its message
|
|
12
|
+
* time as the refresh key — a re-emission appends a new row, the snapshot
|
|
13
|
+
* bump re-runs this selection, and the newest anchor asks for the newest
|
|
14
|
+
* snapshot;
|
|
14
15
|
* 2. reads the session's workspace directory from the session standard kit's
|
|
15
16
|
* session feed (the host cross-checks the asserted `cwd` against the
|
|
16
17
|
* session AND the stored snapshot, so it must be the real one);
|
|
@@ -85,11 +86,11 @@ export type MstarEngineStatusView =
|
|
|
85
86
|
};
|
|
86
87
|
/** The seats the hook needs: the session standard kit + the plugin's client. */
|
|
87
88
|
export interface MstarEngineStatusSeats {
|
|
88
|
-
/** Selector hook over the chat target snapshot (the
|
|
89
|
+
/** Selector hook over the chat target snapshot (the session standard kit's chat face). */
|
|
89
90
|
useChat: SnapshotSelectorHook<ChatSnapshot>;
|
|
90
91
|
/**
|
|
91
92
|
* Selector hook over the Host session list (the global standard seat). The
|
|
92
|
-
*
|
|
93
|
+
* session-scope slot dispatch always hands it to the panel; it stays
|
|
93
94
|
* optional here because a program without the ui-session adapter does not
|
|
94
95
|
* see the declaration merge (the panel then reports `session-cwd-unknown`).
|
|
95
96
|
*/
|
|
@@ -99,7 +100,7 @@ export interface MstarEngineStatusSeats {
|
|
|
99
100
|
/** The plugin's engine-status client (absent in a composition without one). */
|
|
100
101
|
engineStatus: MstarEngineStatusClient | undefined;
|
|
101
102
|
}
|
|
102
|
-
/** Latest
|
|
103
|
+
/** Latest engine-status anchor row (either accepted identity) in snapshot order, or null. */
|
|
103
104
|
export declare function latestEngineStatusRow(nodes: readonly ConversationNode[]): ContextMessageNode | null;
|
|
104
105
|
/** Anchor row message time, or null when the log carries no anchor row. */
|
|
105
106
|
export declare function selectAnchorTime(snapshot: ChatSnapshot): number | null;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Legend (spec panel-tabs §4/§6.2):
|
|
3
|
-
* mounted on the
|
|
4
|
-
* with the WorkflowCanvas — spec §6.1
|
|
5
|
-
*
|
|
3
|
+
* mounted on the AgentListPage, IN FLOW below the grouped list (the
|
|
4
|
+
* zone-dashboard footer legend is gone with the WorkflowCanvas — spec §6.1;
|
|
5
|
+
* the list page keeps the legend placement the canvas page established,
|
|
6
|
+
* after the content). Describes ONLY the role-card status
|
|
7
|
+
* treatments of the agent rows — plan
|
|
6
8
|
* Task 1 (图例精简): the 7
|
|
7
9
|
* collaboration-edge / layout entries (flow-actual / port / group /
|
|
8
10
|
* sub-bucket / supervise / on-demand / unknown) are REMOVED — the legend is
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* TaskBoard — the tasks-zone kanban: the 5
|
|
3
|
-
* PLAN_STATE_IDS
|
|
4
|
-
* blocked-unknown, in the projection's constant order)
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
*
|
|
10
|
-
*
|
|
3
|
+
* PLAN_STATE_IDS groups (Todo / InProgress / InReview / Done /
|
|
4
|
+
* blocked-unknown, in the projection's constant order) STACKED in flow (plan
|
|
5
|
+
* sidebar §L4.2 — the horizontal 5-column row cannot fit the 300px column),
|
|
6
|
+
* each with a header row carrying the flow glyph (the
|
|
7
|
+
* `data-kanban-arrow` labels + the `⇄` back-edge glyph: Todo→InProgress→
|
|
8
|
+
* InReview→Done plus the InProgress↔Blocked back-edge, docking at the merged
|
|
9
|
+
* blocked-unknown group), the localized state-name + count badge, plan cards
|
|
10
|
+
* (mono ellipsized id + status chip — the `data-plan-id` /
|
|
11
|
+
* `data-plan-status` anchors shared with the sidebar plan board), and the
|
|
12
|
+
* per-group 「更多」 expand affordance. The board rides the shell's shared
|
|
13
|
+
* `.groupGrid` class, so the ≥720px container spread reaches the groups
|
|
14
|
+
* (plan sidebar §L4.3 — one wide rule, not a second layout).
|
|
11
15
|
*
|
|
12
16
|
* The projection KEEPS every row (`column.plans` = the full column) and
|
|
13
17
|
* reports `column.capped` (PLAN_CAP) when a column overflows. This render
|
|
@@ -19,7 +23,7 @@
|
|
|
19
23
|
* keeps input order.
|
|
20
24
|
*
|
|
21
25
|
* Degradation (spec §8): state null / plans missing project to the same
|
|
22
|
-
* 5-
|
|
26
|
+
* 5-group skeleton with count 0 — the board renders it with a muted
|
|
23
27
|
* "no plans" note (`data-zone-empty="no-plans"`), NEVER an orange warn box.
|
|
24
28
|
*/
|
|
25
29
|
import * as React from 'react';
|