@morlay/ui-conversation-message-actions 0.0.18 → 0.0.19-alpha.0
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.md +29 -98
- package/dist/client.cjs +1380 -0
- package/dist/client.d.cts +6 -0
- package/dist/client.d.mts +6 -0
- package/dist/index.d.cts +98 -0
- package/dist/index.d.mts +3 -10
- package/dist/index.mjs +460 -2
- package/dist/invariant.d.cts +7 -0
- package/dist/{plan-BSa7k9HO.d.mts → plan-CT_6Y1fD.d.cts} +11 -9
- package/dist/plan-Cm9hCord.d.mts +101 -0
- package/dist/plan.d.cts +2 -0
- package/dist/plan.d.mts +2 -2
- package/dist/plan.mjs +145 -11
- package/dist/shared-LK3nImWW.mjs +55 -0
- package/dist/testing.d.cts +3242 -0
- package/dist/testing.d.mts +11 -5
- package/dist/testing.mjs +1976 -3775
- package/package.json +34 -31
- package/src/client/chat-node/MessageIconActions.styles.ts +76 -0
- package/src/client/chat-node/MessageIconActions.tsx +30 -11
- package/src/client/chat-node/MessageItem.styles.ts +247 -0
- package/src/client/chat-node/MessageItem.tsx +32 -39
- package/src/client/chat-node/message-chrome.ts +0 -2
- package/src/client/chat-node/register.ts +3 -4
- package/src/client/chat-node/use-calendar-day.ts +0 -4
- package/src/client/composer-stats/StatsPills.styles.ts +57 -0
- package/src/client/composer-stats/StatsPills.tsx +384 -0
- package/src/client/composer-stats/register.ts +17 -0
- package/src/client/composer-stats/stat-dialog.styles.ts +70 -0
- package/src/client/composer-stats/stat-dialog.ts +52 -0
- package/src/client/composer-stats/token-format.ts +85 -0
- package/src/client/composer-stats/turn-reading.ts +35 -0
- package/src/client/controller.ts +32 -114
- package/src/client/index.ts +8 -24
- package/src/index.ts +102 -111
- package/src/plan.ts +189 -24
- package/src/shared.ts +1 -1
- package/src/testing.ts +1 -5
- package/src/types.ts +1 -1
- package/dist/client.js +0 -806
- package/dist/src-B4HwXsob.mjs +0 -499
- package/src/client/chat-node/MessageIconActions.module.css +0 -86
- package/src/client/chat-node/MessageItem.module.css +0 -290
- package/src/client/css-modules.d.ts +0 -4
- package/src/client/import-action.tsx +0 -74
package/dist/testing.d.mts
CHANGED
|
@@ -2798,6 +2798,17 @@ declare class WorkspaceRegistry extends Service {
|
|
|
2798
2798
|
* @returns resolution after durability.
|
|
2799
2799
|
*/
|
|
2800
2800
|
archiveSession(sessionId: SessionId): Promise<void>;
|
|
2801
|
+
/**
|
|
2802
|
+
* Unarchive one session durably by dropping it from the registry-global
|
|
2803
|
+
* archive set; the accounting slot was never touched, so the session
|
|
2804
|
+
* returns to its recorded position. Unarchiving runs no session-existence
|
|
2805
|
+
* check because removing an id cannot introduce an unknown one, so an
|
|
2806
|
+
* entry whose session is gone still resolves. An id that is not archived
|
|
2807
|
+
* resolves without writing.
|
|
2808
|
+
* @param sessionId - The session to unarchive.
|
|
2809
|
+
* @returns resolution after durability.
|
|
2810
|
+
*/
|
|
2811
|
+
unarchiveSession(sessionId: SessionId): Promise<void>;
|
|
2801
2812
|
/**
|
|
2802
2813
|
* Whether a session is live, header-indexed, or present in a fresh
|
|
2803
2814
|
* persistence listing. Only a definite miss returns false — a failing
|
|
@@ -3202,9 +3213,7 @@ declare class EmptySettings extends SettingsProvider {
|
|
|
3202
3213
|
}
|
|
3203
3214
|
//#endregion
|
|
3204
3215
|
//#region ../session-rdb/src/testing/contract.d.ts
|
|
3205
|
-
/** Build a minimal {@link SessionHeader} for a session id. */
|
|
3206
3216
|
declare function meta(id: string, cwd?: string): SessionHeader$1;
|
|
3207
|
-
/** A well-formed one-turn event log (contiguous seqs from 0). */
|
|
3208
3217
|
declare function oneTurnLog(): SessionEvent$1[];
|
|
3209
3218
|
//#endregion
|
|
3210
3219
|
//#region src/shared.d.ts
|
|
@@ -3219,11 +3228,8 @@ interface Harness {
|
|
|
3219
3228
|
declare function harness(provide?: (ctx: Context) => void): Promise<Harness>;
|
|
3220
3229
|
declare function twoTurnLog(): SessionEvent[];
|
|
3221
3230
|
declare function createPersisted(ctx: Context, id: string, events: readonly SessionEvent[], header?: SessionHeader): Promise<void>;
|
|
3222
|
-
/** 构造一条 user/message 事件。 */
|
|
3223
3231
|
declare function userMessage(seq: number, id: string, text: string, time?: number): SessionEvent;
|
|
3224
|
-
/** 构造一条 assistant/message 事件(纯文本回复)。 */
|
|
3225
3232
|
declare function assistantMessage(seq: number, turn: number, step: number, id: string, text: string, time?: number): SessionEvent;
|
|
3226
|
-
/** 真实 agent-loop 形状的一轮:轮首输入 + 可选 followup,可闭合。 */
|
|
3227
3233
|
declare function turnLog(base: number, turn: number, opts?: {
|
|
3228
3234
|
users?: Array<{
|
|
3229
3235
|
id: string;
|