@morlay/ui-conversation-message-actions 0.1.2 → 0.1.3
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/dist/client.d.cts +3 -4
- package/dist/client.d.mts +3 -4
- package/dist/index.d.cts +5 -5
- package/dist/index.d.mts +5 -5
- package/dist/invariant.d.cts +4 -5
- package/dist/invariant.d.mts +4 -5
- package/dist/rolldown-runtime-BMI-E3GI.mjs +44 -0
- package/dist/testing.d.cts +2033 -93
- package/dist/testing.d.mts +2032 -93
- package/dist/testing.mjs +4 -45
- package/package.json +6 -6
package/dist/client.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
2
|
//#region src/client/index.d.ts
|
|
3
|
-
declare const inject: string[];
|
|
4
|
-
declare function apply(ctx: Context): void;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { apply, inject };
|
|
3
|
+
export declare const inject: string[];
|
|
4
|
+
export declare function apply(ctx: Context): void;
|
|
5
|
+
//#endregion
|
package/dist/client.d.mts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
2
|
//#region src/client/index.d.ts
|
|
3
|
-
declare const inject: string[];
|
|
4
|
-
declare function apply(ctx: Context): void;
|
|
5
|
-
//#endregion
|
|
6
|
-
export { apply, inject };
|
|
3
|
+
export declare const inject: string[];
|
|
4
|
+
export declare function apply(ctx: Context): void;
|
|
5
|
+
//#endregion
|
package/dist/index.d.cts
CHANGED
|
@@ -9,7 +9,7 @@ declare module "@deepseek-ai/cordis" {
|
|
|
9
9
|
sessionEditor: SessionEditor;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
interface EditorAgent {
|
|
12
|
+
export interface EditorAgent {
|
|
13
13
|
readonly session: Session;
|
|
14
14
|
followup(message: UserMessage): void;
|
|
15
15
|
whenIdle(): Promise<void>;
|
|
@@ -17,11 +17,11 @@ interface EditorAgent {
|
|
|
17
17
|
keepInbox?: boolean;
|
|
18
18
|
}): void;
|
|
19
19
|
}
|
|
20
|
-
interface EditorAgentHandle {
|
|
20
|
+
export interface EditorAgentHandle {
|
|
21
21
|
readonly agent: EditorAgent;
|
|
22
22
|
dispose(): Promise<void>;
|
|
23
23
|
}
|
|
24
|
-
interface EditorAgentRegistry {
|
|
24
|
+
export interface EditorAgentRegistry {
|
|
25
25
|
get(sessionId: SessionId): EditorAgent | undefined;
|
|
26
26
|
create(options: {
|
|
27
27
|
sessionId?: SessionId;
|
|
@@ -47,7 +47,7 @@ interface EditorAgentRegistry {
|
|
|
47
47
|
};
|
|
48
48
|
}): Promise<EditorAgentHandle>;
|
|
49
49
|
}
|
|
50
|
-
declare class SessionEditor extends Service {
|
|
50
|
+
export declare class SessionEditor extends Service {
|
|
51
51
|
static inject: string[];
|
|
52
52
|
constructor(ctx: Context);
|
|
53
53
|
readBranchPrefix(id: SessionId, atSeq?: number, mode?: "after" | "before", signal?: AbortSignal): Promise<BranchBoundary>;
|
|
@@ -69,4 +69,4 @@ declare class SessionEditor extends Service {
|
|
|
69
69
|
private prepareReplay;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
export { type CascadePolicy, type EditOperation, type EditableBlockKind, type EditableMessageBlock,
|
|
72
|
+
export { type CascadePolicy, type EditOperation, type EditableBlockKind, type EditableMessageBlock, type RecallOperation, type RerollOperation, type RetryOperation, type RetryableTurn, type RewindOperation, SessionEditor as default, type SessionEditorOperation, type SessionEditorResult, closedTurns, editableMessages, retryableTurns };
|
package/dist/index.d.mts
CHANGED
|
@@ -9,7 +9,7 @@ declare module "@deepseek-ai/cordis" {
|
|
|
9
9
|
sessionEditor: SessionEditor;
|
|
10
10
|
}
|
|
11
11
|
}
|
|
12
|
-
interface EditorAgent {
|
|
12
|
+
export interface EditorAgent {
|
|
13
13
|
readonly session: Session;
|
|
14
14
|
followup(message: UserMessage): void;
|
|
15
15
|
whenIdle(): Promise<void>;
|
|
@@ -17,11 +17,11 @@ interface EditorAgent {
|
|
|
17
17
|
keepInbox?: boolean;
|
|
18
18
|
}): void;
|
|
19
19
|
}
|
|
20
|
-
interface EditorAgentHandle {
|
|
20
|
+
export interface EditorAgentHandle {
|
|
21
21
|
readonly agent: EditorAgent;
|
|
22
22
|
dispose(): Promise<void>;
|
|
23
23
|
}
|
|
24
|
-
interface EditorAgentRegistry {
|
|
24
|
+
export interface EditorAgentRegistry {
|
|
25
25
|
get(sessionId: SessionId): EditorAgent | undefined;
|
|
26
26
|
create(options: {
|
|
27
27
|
sessionId?: SessionId;
|
|
@@ -47,7 +47,7 @@ interface EditorAgentRegistry {
|
|
|
47
47
|
};
|
|
48
48
|
}): Promise<EditorAgentHandle>;
|
|
49
49
|
}
|
|
50
|
-
declare class SessionEditor extends Service {
|
|
50
|
+
export declare class SessionEditor extends Service {
|
|
51
51
|
static inject: string[];
|
|
52
52
|
constructor(ctx: Context);
|
|
53
53
|
readBranchPrefix(id: SessionId, atSeq?: number, mode?: "after" | "before", signal?: AbortSignal): Promise<BranchBoundary>;
|
|
@@ -69,4 +69,4 @@ declare class SessionEditor extends Service {
|
|
|
69
69
|
private prepareReplay;
|
|
70
70
|
}
|
|
71
71
|
//#endregion
|
|
72
|
-
export { type CascadePolicy, type EditOperation, type EditableBlockKind, type EditableMessageBlock,
|
|
72
|
+
export { type CascadePolicy, type EditOperation, type EditableBlockKind, type EditableMessageBlock, type RecallOperation, type RerollOperation, type RetryOperation, type RetryableTurn, type RewindOperation, SessionEditor as default, type SessionEditorOperation, type SessionEditorResult, closedTurns, editableMessages, retryableTurns };
|
package/dist/invariant.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
2
|
//#region src/invariant.d.ts
|
|
3
|
-
declare const name = "ui-conversation-message-actions-invariant";
|
|
4
|
-
declare const inject: string[];
|
|
5
|
-
declare const apply: (ctx: Context) => Promise<() => void>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { apply, inject, name };
|
|
3
|
+
export declare const name = "ui-conversation-message-actions-invariant";
|
|
4
|
+
export declare const inject: string[];
|
|
5
|
+
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
6
|
+
//#endregion
|
package/dist/invariant.d.mts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { Context } from "@deepseek-ai/cordis";
|
|
2
2
|
//#region src/invariant.d.ts
|
|
3
|
-
declare const name = "ui-conversation-message-actions-invariant";
|
|
4
|
-
declare const inject: string[];
|
|
5
|
-
declare const apply: (ctx: Context) => Promise<() => void>;
|
|
6
|
-
//#endregion
|
|
7
|
-
export { apply, inject, name };
|
|
3
|
+
export declare const name = "ui-conversation-message-actions-invariant";
|
|
4
|
+
export declare const inject: string[];
|
|
5
|
+
export declare const apply: (ctx: Context) => Promise<() => void>;
|
|
6
|
+
//#endregion
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
import { createRequire } from "node:module";
|
|
2
|
+
//#region \0rolldown/runtime.js
|
|
3
|
+
var __create = Object.create;
|
|
4
|
+
var __defProp = Object.defineProperty;
|
|
5
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
6
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
7
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
8
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
9
|
+
var __esmMin = (fn, res, err) => () => {
|
|
10
|
+
if (err) throw err[0];
|
|
11
|
+
try {
|
|
12
|
+
return fn && (res = fn(fn = 0)), res;
|
|
13
|
+
} catch (e) {
|
|
14
|
+
throw err = [e], e;
|
|
15
|
+
}
|
|
16
|
+
};
|
|
17
|
+
var __commonJSMin = (cb, mod) => () => (mod || (cb((mod = { exports: {} }).exports, mod), cb = null), mod.exports);
|
|
18
|
+
var __exportAll = (all, no_symbols) => {
|
|
19
|
+
let target = {};
|
|
20
|
+
for (var name in all) __defProp(target, name, {
|
|
21
|
+
get: all[name],
|
|
22
|
+
enumerable: true
|
|
23
|
+
});
|
|
24
|
+
if (!no_symbols) __defProp(target, Symbol.toStringTag, { value: "Module" });
|
|
25
|
+
return target;
|
|
26
|
+
};
|
|
27
|
+
var __copyProps = (to, from, except, desc) => {
|
|
28
|
+
if (from && typeof from === "object" || typeof from === "function") for (var keys = __getOwnPropNames(from), i = 0, n = keys.length, key; i < n; i++) {
|
|
29
|
+
key = keys[i];
|
|
30
|
+
if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, {
|
|
31
|
+
get: ((k) => from[k]).bind(null, key),
|
|
32
|
+
enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable
|
|
33
|
+
});
|
|
34
|
+
}
|
|
35
|
+
return to;
|
|
36
|
+
};
|
|
37
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule || !__hasOwnProp.call(mod, "default") ? __defProp(target, "default", {
|
|
38
|
+
value: mod,
|
|
39
|
+
enumerable: true
|
|
40
|
+
}) : target, mod));
|
|
41
|
+
var __toCommonJS = (mod) => __hasOwnProp.call(mod, "module.exports") ? mod["module.exports"] : __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
42
|
+
var __require = /* #__PURE__ */ (() => createRequire(import.meta.url))();
|
|
43
|
+
//#endregion
|
|
44
|
+
export { __toCommonJS as a, __require as i, __esmMin as n, __toESM as o, __exportAll as r, __commonJSMin as t };
|