@morlay/ui-conversation-message-actions 0.0.16 → 0.0.18
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 +19 -10
- package/dist/client.js +40 -40
- package/dist/index.d.mts +9 -13
- package/dist/index.mjs +1 -1
- package/dist/{plan-Cn3TPTa0.d.mts → plan-BSa7k9HO.d.mts} +3 -2
- package/dist/plan.d.mts +2 -2
- package/dist/plan.mjs +14 -1
- package/dist/{src-Dq1X3rOO.mjs → src-B4HwXsob.mjs} +13 -28
- package/dist/testing.d.mts +41 -54
- package/dist/testing.mjs +7432 -400
- package/package.json +4 -4
- package/src/client/chat-node/MessageItem.tsx +4 -2
- package/src/index.ts +25 -35
- package/src/plan.ts +25 -0
- package/src/shared.ts +2 -1
- package/src/testing.ts +6 -1
- package/src/types.ts +2 -1
package/dist/testing.d.mts
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import { SessionEditor } from "./index.mjs";
|
|
2
2
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
3
3
|
import { Session, Session as Session$1, SessionEvent, SessionEvent as SessionEvent$1, SessionHeader, SessionHeader as SessionHeader$1, SessionId, SessionId as SessionIdBrand, SessionLogOffset, SessionSeq, SessionSeq as SessionSeq$1, SessionStore } from "@deepseek-ai/dsh-session";
|
|
4
|
-
import { BranchBoundary, BranchTimeline, SessionBranch } from "@morlay/session-branch";
|
|
4
|
+
import { BranchBoundary, BranchTimeline, BranchTimeline as BranchTimeline$1, CascadePolicy, SessionBranch } from "@morlay/session-branch";
|
|
5
5
|
import { TokenMeter } from "@deepseek-ai/dsh-token-meter";
|
|
6
6
|
import { ProjectionSnapshot, SessionProjectionMap } from "@deepseek-ai/dsh-session-projection";
|
|
7
7
|
import { SessionPersistence, SessionPersistenceRevision, SessionStorageMetadata } from "@deepseek-ai/dsh-session-persistence";
|
|
8
8
|
import { SessionId as SessionId$1 } from "@deepseek-ai/dsh-session/types";
|
|
9
|
-
//#region
|
|
9
|
+
//#region ../../../vendor/deepseek-harness/vendor/cosmokit/lib/types/types.d.ts
|
|
10
10
|
declare function isArrayBufferLike(value: any): value is ArrayBufferLike;
|
|
11
11
|
declare function isArrayBufferSource(value: any): value is Binary.Source;
|
|
12
12
|
/** Binary source detection and base64/hex conversion helpers. */
|
|
@@ -21,11 +21,11 @@ declare namespace Binary {
|
|
|
21
21
|
function fromHex(source: string): ArrayBuffer;
|
|
22
22
|
}
|
|
23
23
|
//#endregion
|
|
24
|
-
//#region
|
|
24
|
+
//#region ../../../vendor/deepseek-harness/vendor/cosmokit/lib/types/misc.d.ts
|
|
25
25
|
/** String/symbol keyed dictionary type. */
|
|
26
26
|
type Dict<T = any, K extends string | symbol = string> = { [key in K]: T; };
|
|
27
27
|
//#endregion
|
|
28
|
-
//#region
|
|
28
|
+
//#region ../../../node_modules/.pnpm/@standard-schema+spec@1.1.0/node_modules/@standard-schema/spec/dist/index.d.ts
|
|
29
29
|
/** The Standard Typed interface. This is a base type extended by other specs. */
|
|
30
30
|
interface StandardTypedV1$1<Input = unknown, Output = Input> {
|
|
31
31
|
/** The Standard properties. */
|
|
@@ -102,7 +102,7 @@ declare namespace StandardSchemaV1$1 {
|
|
|
102
102
|
type InferOutput<Schema extends StandardTypedV1$1> = StandardTypedV1$1.InferOutput<Schema>;
|
|
103
103
|
}
|
|
104
104
|
//#endregion
|
|
105
|
-
//#region
|
|
105
|
+
//#region ../../../vendor/deepseek-harness/vendor/schemastery/lib/types/index.d.ts
|
|
106
106
|
declare const kSchema: unique symbol;
|
|
107
107
|
declare global {
|
|
108
108
|
namespace Schemastery {
|
|
@@ -296,7 +296,7 @@ declare class ValidationError extends TypeError {
|
|
|
296
296
|
type Schema<S = any, T = S> = Schemastery<S, T>;
|
|
297
297
|
declare const Schema: Schemastery.Static;
|
|
298
298
|
//#endregion
|
|
299
|
-
//#region
|
|
299
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/json-schema.d.cts
|
|
300
300
|
type _JSONSchema = boolean | JSONSchema;
|
|
301
301
|
type SchemaType = "object" | "array" | "string" | "number" | "boolean" | "null" | "integer";
|
|
302
302
|
type JSONSchema = {
|
|
@@ -365,7 +365,7 @@ type JSONSchema = {
|
|
|
365
365
|
};
|
|
366
366
|
type BaseSchema = JSONSchema;
|
|
367
367
|
//#endregion
|
|
368
|
-
//#region
|
|
368
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/standard-schema.d.cts
|
|
369
369
|
/** The Standard interface. */
|
|
370
370
|
interface StandardTypedV1<Input = unknown, Output = Input> {
|
|
371
371
|
/** The Standard properties. */
|
|
@@ -484,7 +484,7 @@ declare namespace StandardJSONSchemaV1 {
|
|
|
484
484
|
}
|
|
485
485
|
interface StandardSchemaWithJSONProps<Input = unknown, Output = Input> extends StandardSchemaV1.Props<Input, Output>, StandardJSONSchemaV1.Props<Input, Output> {}
|
|
486
486
|
//#endregion
|
|
487
|
-
//#region
|
|
487
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/registries.d.cts
|
|
488
488
|
declare const $output: unique symbol;
|
|
489
489
|
type $output = typeof $output;
|
|
490
490
|
declare const $input: unique symbol;
|
|
@@ -511,7 +511,7 @@ interface JSONSchemaMeta {
|
|
|
511
511
|
}
|
|
512
512
|
interface GlobalMeta extends JSONSchemaMeta {}
|
|
513
513
|
//#endregion
|
|
514
|
-
//#region
|
|
514
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/to-json-schema.d.cts
|
|
515
515
|
type Processor<T extends $ZodType = $ZodType> = (schema: T, ctx: ToJSONSchemaContext, json: BaseSchema, params: ProcessParams) => void;
|
|
516
516
|
/**
|
|
517
517
|
* Called for each schema that has no JSON Schema equivalent. Return a JSON Schema to use in its
|
|
@@ -633,13 +633,12 @@ interface ZodStandardJSONSchemaPayload<T> extends BaseSchema {
|
|
|
633
633
|
"~standard": ZodStandardSchemaWithJSON$1<T>;
|
|
634
634
|
}
|
|
635
635
|
//#endregion
|
|
636
|
-
//#region
|
|
636
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/util.d.cts
|
|
637
637
|
type MimeTypes = "application/json" | "application/xml" | "application/x-www-form-urlencoded" | "application/javascript" | "application/pdf" | "application/zip" | "application/vnd.ms-excel" | "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet" | "application/msword" | "application/vnd.openxmlformats-officedocument.wordprocessingml.document" | "application/vnd.ms-powerpoint" | "application/vnd.openxmlformats-officedocument.presentationml.presentation" | "application/octet-stream" | "application/graphql" | "text/html" | "text/plain" | "text/css" | "text/javascript" | "text/csv" | "image/png" | "image/jpeg" | "image/gif" | "image/svg+xml" | "image/webp" | "audio/mpeg" | "audio/ogg" | "audio/wav" | "audio/webm" | "video/mp4" | "video/webm" | "video/ogg" | "font/woff" | "font/woff2" | "font/ttf" | "font/otf" | "multipart/form-data" | (string & {});
|
|
638
638
|
type IsAny<T> = 0 extends 1 & T ? true : false;
|
|
639
639
|
type Omit$1<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>;
|
|
640
640
|
type MakePartial<T, K extends keyof T> = Omit$1<T, K> & InexactPartial<Pick<T, K>>;
|
|
641
641
|
type NoUndefined<T> = T extends undefined ? never : T;
|
|
642
|
-
type Widen<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends bigint ? bigint : T;
|
|
643
642
|
type LoosePartial<T extends object> = InexactPartial<T> & {
|
|
644
643
|
[k: string]: unknown;
|
|
645
644
|
};
|
|
@@ -670,14 +669,14 @@ declare abstract class Class {
|
|
|
670
669
|
/** A trait's prototype members: a partial view of its own interface, with `this` typed as the instance. */
|
|
671
670
|
type ProtoOf<T> = { [K in keyof T]?: (T[K] extends ((...args: infer A) => infer R) ? (...args: A) => R : T[K]) | undefined; } & ThisType<T>;
|
|
672
671
|
//#endregion
|
|
673
|
-
//#region
|
|
672
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/versions.d.cts
|
|
674
673
|
declare const version: {
|
|
675
674
|
readonly major: 4;
|
|
676
675
|
readonly minor: 6;
|
|
677
676
|
readonly patch: number;
|
|
678
677
|
};
|
|
679
678
|
//#endregion
|
|
680
|
-
//#region
|
|
679
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/schemas.d.cts
|
|
681
680
|
interface ParseContext<T extends $ZodIssueBase = never> {
|
|
682
681
|
/** Customize error messages. */
|
|
683
682
|
readonly error?: $ZodErrorMap<T>;
|
|
@@ -705,7 +704,7 @@ interface ParsePayload<T = unknown> {
|
|
|
705
704
|
}
|
|
706
705
|
type CheckFn<T> = (input: ParsePayload<T>) => MaybeAsync<void>;
|
|
707
706
|
interface $ZodTypeDef {
|
|
708
|
-
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom"
|
|
707
|
+
type: "string" | "number" | "int" | "boolean" | "bigint" | "symbol" | "null" | "undefined" | "void" | "never" | "any" | "unknown" | "date" | "object" | "record" | "file" | "array" | "tuple" | "union" | "intersection" | "map" | "set" | "enum" | "literal" | "nullable" | "optional" | "nonoptional" | "success" | "transform" | "default" | "prefault" | "catch" | "nan" | "pipe" | "readonly" | "template_literal" | "promise" | "lazy" | "function" | "custom";
|
|
709
708
|
error?: $ZodErrorMap<never> | undefined;
|
|
710
709
|
checks?: $ZodCheck<never>[];
|
|
711
710
|
}
|
|
@@ -1256,7 +1255,7 @@ interface $ZodPrefaultDef<T extends SomeType = $ZodType> extends $ZodTypeDef {
|
|
|
1256
1255
|
/** The default value. May be a getter. */
|
|
1257
1256
|
defaultValue: input<T>;
|
|
1258
1257
|
}
|
|
1259
|
-
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<
|
|
1258
|
+
interface $ZodPrefaultInternals<T extends SomeType = $ZodType> extends $ZodTypeInternals<output<T>, input<T> | undefined> {
|
|
1260
1259
|
def: $ZodPrefaultDef<T>;
|
|
1261
1260
|
optin: "defaulted";
|
|
1262
1261
|
optout?: "optional" | undefined;
|
|
@@ -1469,24 +1468,9 @@ interface $ZodCustom<O = unknown, I = unknown> extends $ZodType {
|
|
|
1469
1468
|
_zod: $ZodCustomInternals<O, I>;
|
|
1470
1469
|
}
|
|
1471
1470
|
declare const $ZodCustom: $constructor<$ZodCustom>;
|
|
1472
|
-
|
|
1473
|
-
type: "properties";
|
|
1474
|
-
check: "properties";
|
|
1475
|
-
shape: Shape;
|
|
1476
|
-
}
|
|
1477
|
-
interface $ZodPropertiesInternals<Shape extends $ZodShape = $ZodShape> extends $ZodTypeInternals<$InferObjectInput<Shape, {}>, $InferObjectInput<Shape, {}>>, $ZodCheckInternals<{ -readonly [k in keyof Shape]: Widen<input<Shape[k]>>; }> {
|
|
1478
|
-
def: $ZodPropertiesDef<Shape>;
|
|
1479
|
-
isst: $ZodIssueInvalidType;
|
|
1480
|
-
issc: $ZodIssue;
|
|
1481
|
-
}
|
|
1482
|
-
interface $ZodProperties<Shape extends $ZodShape = $ZodShape> extends $ZodType {
|
|
1483
|
-
_zod: $ZodPropertiesInternals<Shape>;
|
|
1484
|
-
[Symbol.iterator](): Iterator<this>;
|
|
1485
|
-
}
|
|
1486
|
-
declare const $ZodProperties: $constructor<$ZodProperties>;
|
|
1487
|
-
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodProperties | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
|
1471
|
+
type $ZodTypes = $ZodString | $ZodNumber | $ZodBigInt | $ZodBoolean | $ZodDate | $ZodSymbol | $ZodUndefined | $ZodNullable | $ZodNull | $ZodAny | $ZodUnknown | $ZodNever | $ZodVoid | $ZodArray | $ZodObject | $ZodUnion | $ZodIntersection | $ZodTuple | $ZodRecord | $ZodMap | $ZodSet | $ZodLiteral | $ZodEnum | $ZodFunction | $ZodPromise | $ZodLazy | $ZodOptional | $ZodDefault | $ZodPrefault | $ZodTemplateLiteral | $ZodCustom | $ZodTransform | $ZodNonOptional | $ZodReadonly | $ZodNaN | $ZodPipe | $ZodSuccess | $ZodCatch | $ZodFile;
|
|
1488
1472
|
//#endregion
|
|
1489
|
-
//#region
|
|
1473
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/checks.d.cts
|
|
1490
1474
|
interface $ZodCheckDef {
|
|
1491
1475
|
check: string;
|
|
1492
1476
|
error?: $ZodErrorMap<never> | undefined;
|
|
@@ -1544,7 +1528,7 @@ interface $ZodCheckLengthEquals<T extends HasLength = HasLength> extends $ZodChe
|
|
|
1544
1528
|
declare const $ZodCheckLengthEquals: $constructor<$ZodCheckLengthEquals>;
|
|
1545
1529
|
type $ZodStringFormats = "email" | "url" | "emoji" | "uuid" | "guid" | "nanoid" | "cuid" | "cuid2" | "ulid" | "xid" | "ksuid" | "datetime" | "date" | "time" | "duration" | "ipv4" | "ipv6" | "cidrv4" | "cidrv6" | "base64" | "base64url" | "json_string" | "e164" | "credit_card" | "iban" | "lowercase" | "uppercase" | "regex" | "jwt" | "starts_with" | "ends_with" | "includes";
|
|
1546
1530
|
//#endregion
|
|
1547
|
-
//#region
|
|
1531
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/errors.d.cts
|
|
1548
1532
|
interface $ZodIssueBase {
|
|
1549
1533
|
readonly code?: string;
|
|
1550
1534
|
readonly input?: unknown;
|
|
@@ -1673,7 +1657,7 @@ type $ZodFormattedError<T, U = string> = {
|
|
|
1673
1657
|
_errors: U[];
|
|
1674
1658
|
} & Flatten<_ZodFormattedError<T, U>>;
|
|
1675
1659
|
//#endregion
|
|
1676
|
-
//#region
|
|
1660
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/core.d.cts
|
|
1677
1661
|
type ZodTrait = {
|
|
1678
1662
|
_zod: {
|
|
1679
1663
|
def: any;
|
|
@@ -1719,7 +1703,7 @@ type output<T> = T extends {
|
|
|
1719
1703
|
};
|
|
1720
1704
|
} ? T["_zod"]["output"] : unknown;
|
|
1721
1705
|
//#endregion
|
|
1722
|
-
//#region
|
|
1706
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/core/api.d.cts
|
|
1723
1707
|
type Params<T extends $ZodType | $ZodCheck, IssueTypes extends $ZodIssueBase, OmitKeys extends keyof T["_zod"]["def"] = never> = Flatten<Partial<EmptyToNever<Omit<T["_zod"]["def"], OmitKeys> & ([IssueTypes] extends [never] ? {} : {
|
|
1724
1708
|
error?: string | $ZodErrorMap<IssueTypes> | undefined;
|
|
1725
1709
|
/** @deprecated This parameter is deprecated. Use `error` instead. */
|
|
@@ -1751,7 +1735,7 @@ interface $ZodSuperRefineParams {
|
|
|
1751
1735
|
when?: ((payload: ParsePayload) => boolean) | undefined;
|
|
1752
1736
|
}
|
|
1753
1737
|
//#endregion
|
|
1754
|
-
//#region
|
|
1738
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/errors.d.cts
|
|
1755
1739
|
/** An Error-like class used to store Zod validation issues. */
|
|
1756
1740
|
interface ZodError<T = unknown> extends $ZodError<T> {
|
|
1757
1741
|
/** @deprecated Use the `z.treeifyError(err)` function instead. */
|
|
@@ -1769,7 +1753,7 @@ interface ZodError<T = unknown> extends $ZodError<T> {
|
|
|
1769
1753
|
}
|
|
1770
1754
|
declare const ZodError: $constructor<ZodError>;
|
|
1771
1755
|
//#endregion
|
|
1772
|
-
//#region
|
|
1756
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/parse.d.cts
|
|
1773
1757
|
type ZodSafeParseResult<T> = ZodSafeParseSuccess<T> | ZodSafeParseError<T>;
|
|
1774
1758
|
type ZodSafeParseSuccess<T> = {
|
|
1775
1759
|
success: true;
|
|
@@ -1782,7 +1766,7 @@ type ZodSafeParseError<T> = {
|
|
|
1782
1766
|
error: ZodError<T>;
|
|
1783
1767
|
};
|
|
1784
1768
|
//#endregion
|
|
1785
|
-
//#region
|
|
1769
|
+
//#region ../../../node_modules/.pnpm/zod@4.6.5/node_modules/zod/v4/classic/schemas.d.cts
|
|
1786
1770
|
type ZodStandardSchemaWithJSON<T> = StandardSchemaWithJSONProps<input<T>, output<T>>;
|
|
1787
1771
|
interface ZodType<out Output = unknown, out Input = unknown, out Internals extends $ZodTypeInternals<Output, Input> = $ZodTypeInternals<Output, Input>> extends $ZodType<Output, Input, Internals> {
|
|
1788
1772
|
def: Internals["def"];
|
|
@@ -1940,7 +1924,7 @@ interface ZodReadonly<T extends SomeType = $ZodType> extends _ZodType<$ZodReadon
|
|
|
1940
1924
|
}
|
|
1941
1925
|
declare const ZodReadonly: $constructor<ZodReadonly>;
|
|
1942
1926
|
//#endregion
|
|
1943
|
-
//#region
|
|
1927
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage/lib/types/backend.d.ts
|
|
1944
1928
|
/**
|
|
1945
1929
|
* One registered backend. A backend owns exactly one medium and shares its
|
|
1946
1930
|
* lifecycle across all facets; facets are optional members — a backend that
|
|
@@ -2063,7 +2047,7 @@ interface KvUnit {
|
|
|
2063
2047
|
close(): Promise<void>;
|
|
2064
2048
|
}
|
|
2065
2049
|
//#endregion
|
|
2066
|
-
//#region
|
|
2050
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage/lib/types/registry.d.ts
|
|
2067
2051
|
/**
|
|
2068
2052
|
* Mutable name → backend table. Multiple backends stay mounted side by side;
|
|
2069
2053
|
* which backend serves which consumer is the consumer's configuration
|
|
@@ -2093,7 +2077,7 @@ declare class BackendRegistry {
|
|
|
2093
2077
|
names(): string[];
|
|
2094
2078
|
}
|
|
2095
2079
|
//#endregion
|
|
2096
|
-
//#region
|
|
2080
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage/lib/types/index.d.ts
|
|
2097
2081
|
declare module '@deepseek-ai/cordis' {
|
|
2098
2082
|
interface Context {
|
|
2099
2083
|
storage: Storage;
|
|
@@ -2134,7 +2118,7 @@ declare class Storage extends Service {
|
|
|
2134
2118
|
} ? D : never;
|
|
2135
2119
|
}
|
|
2136
2120
|
//#endregion
|
|
2137
|
-
//#region
|
|
2121
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage-domain/lib/types/spec.d.ts
|
|
2138
2122
|
/** Global singleton declaration: schema plus the value used before the first write. */
|
|
2139
2123
|
interface DomainGlobalSpec<G> {
|
|
2140
2124
|
/** Validates the stored global at the durable boundary. */
|
|
@@ -2197,7 +2181,7 @@ type TableKeyOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables']
|
|
|
2197
2181
|
/** Value type of one declared table. */
|
|
2198
2182
|
type TableValueOf<S extends DomainSpec, N extends keyof S['tables']> = S['tables'][N] extends DomainTableSpec<string, infer V> ? V : never;
|
|
2199
2183
|
//#endregion
|
|
2200
|
-
//#region
|
|
2184
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage-domain/lib/types/domain.d.ts
|
|
2201
2185
|
/** Handle on a domain's global singleton. */
|
|
2202
2186
|
interface DomainGlobal<G> {
|
|
2203
2187
|
/**
|
|
@@ -2351,7 +2335,7 @@ declare class DomainImpl {
|
|
|
2351
2335
|
private assertReadable;
|
|
2352
2336
|
}
|
|
2353
2337
|
//#endregion
|
|
2354
|
-
//#region
|
|
2338
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage-domain/lib/types/events.d.ts
|
|
2355
2339
|
/**
|
|
2356
2340
|
* Change-event vocabulary of the domain data form. Every durable write emits
|
|
2357
2341
|
* one event after the backend resolves durability, carrying the new snapshot
|
|
@@ -2396,7 +2380,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
2396
2380
|
}
|
|
2397
2381
|
}
|
|
2398
2382
|
//#endregion
|
|
2399
|
-
//#region
|
|
2383
|
+
//#region ../../../vendor/deepseek-harness/packages/storage/storage-domain/lib/types/index.d.ts
|
|
2400
2384
|
declare module '@deepseek-ai/dsh-storage' {
|
|
2401
2385
|
interface StorageForms {
|
|
2402
2386
|
domain: DomainFacility;
|
|
@@ -2474,7 +2458,7 @@ declare class DomainFacility {
|
|
|
2474
2458
|
closeAll(): Promise<void>;
|
|
2475
2459
|
}
|
|
2476
2460
|
//#endregion
|
|
2477
|
-
//#region
|
|
2461
|
+
//#region ../../../vendor/deepseek-harness/packages/session/session-projection-cache/lib/types/index.d.ts
|
|
2478
2462
|
declare module '@deepseek-ai/cordis' {
|
|
2479
2463
|
interface Context {
|
|
2480
2464
|
sessionProjectionCache: SessionProjectionCache;
|
|
@@ -2609,7 +2593,7 @@ declare class SessionProjectionCache extends Service {
|
|
|
2609
2593
|
private requireTable;
|
|
2610
2594
|
}
|
|
2611
2595
|
//#endregion
|
|
2612
|
-
//#region
|
|
2596
|
+
//#region ../../../vendor/deepseek-harness/packages/util/brand/lib/types/index.d.ts
|
|
2613
2597
|
/**
|
|
2614
2598
|
* Duplicate-install-safe nominal primitive helpers.
|
|
2615
2599
|
*
|
|
@@ -2629,7 +2613,7 @@ type Branded<B extends string> = string & {
|
|
|
2629
2613
|
readonly [BRAND]: B;
|
|
2630
2614
|
};
|
|
2631
2615
|
//#endregion
|
|
2632
|
-
//#region
|
|
2616
|
+
//#region ../../../vendor/deepseek-harness/packages/workspace/workspace/lib/types/types.d.ts
|
|
2633
2617
|
/**
|
|
2634
2618
|
* Identifies one workspace record. A generated uuid, never the path: path
|
|
2635
2619
|
* normalization rewrites paths, and a reference anchor must stay stable.
|
|
@@ -2722,7 +2706,7 @@ interface Workspace {
|
|
|
2722
2706
|
status(): Promise<'ok' | 'missing-dir'>;
|
|
2723
2707
|
}
|
|
2724
2708
|
//#endregion
|
|
2725
|
-
//#region
|
|
2709
|
+
//#region ../../../vendor/deepseek-harness/packages/workspace/workspace/lib/types/index.d.ts
|
|
2726
2710
|
/** Identifies one workspace record (see `src/types.ts` for the brand rationale). */
|
|
2727
2711
|
type WorkspaceId = WorkspaceId$1;
|
|
2728
2712
|
/**
|
|
@@ -2859,7 +2843,7 @@ declare function parseJsonlArtifact(content: string): SessionStorageMetadata & {
|
|
|
2859
2843
|
events: SessionEvent$1[];
|
|
2860
2844
|
};
|
|
2861
2845
|
//#endregion
|
|
2862
|
-
//#region
|
|
2846
|
+
//#region ../../../vendor/deepseek-harness/packages/settings/settings/lib/types/redact.d.ts
|
|
2863
2847
|
/** One schema-declared secret position inside a redacted value. */
|
|
2864
2848
|
interface RedactedSecret {
|
|
2865
2849
|
/** Path from the section root to the removed field (concrete dict keys and array indexes included). */
|
|
@@ -2868,7 +2852,7 @@ interface RedactedSecret {
|
|
|
2868
2852
|
set: boolean;
|
|
2869
2853
|
}
|
|
2870
2854
|
//#endregion
|
|
2871
|
-
//#region
|
|
2855
|
+
//#region ../../../vendor/deepseek-harness/packages/settings/settings/lib/types/types.d.ts
|
|
2872
2856
|
/** Nominal id of one registered settings namespace. */
|
|
2873
2857
|
type SettingsNamespace = Branded<'SettingsNamespace'>;
|
|
2874
2858
|
/** Origin of one committed settings change. */
|
|
@@ -2906,7 +2890,7 @@ declare module '@deepseek-ai/cordis' {
|
|
|
2906
2890
|
}
|
|
2907
2891
|
}
|
|
2908
2892
|
//#endregion
|
|
2909
|
-
//#region
|
|
2893
|
+
//#region ../../../vendor/deepseek-harness/packages/settings/settings/lib/types/index.d.ts
|
|
2910
2894
|
type LowercaseLetter = 'a' | 'b' | 'c' | 'd' | 'e' | 'f' | 'g' | 'h' | 'i' | 'j' | 'k' | 'l' | 'm' | 'n' | 'o' | 'p' | 'q' | 'r' | 's' | 't' | 'u' | 'v' | 'w' | 'x' | 'y' | 'z';
|
|
2911
2895
|
type DecimalDigit = '0' | '1' | '2' | '3' | '4' | '5' | '6' | '7' | '8' | '9';
|
|
2912
2896
|
type NamespaceCharacter = LowercaseLetter | DecimalDigit | '-';
|
|
@@ -3223,13 +3207,16 @@ declare function meta(id: string, cwd?: string): SessionHeader$1;
|
|
|
3223
3207
|
/** A well-formed one-turn event log (contiguous seqs from 0). */
|
|
3224
3208
|
declare function oneTurnLog(): SessionEvent$1[];
|
|
3225
3209
|
//#endregion
|
|
3210
|
+
//#region src/shared.d.ts
|
|
3211
|
+
declare const SESSION_EDITOR_PATH = "/session-editor";
|
|
3212
|
+
//#endregion
|
|
3226
3213
|
//#region src/testing.d.ts
|
|
3227
3214
|
interface Harness {
|
|
3228
3215
|
ctx: Context;
|
|
3229
3216
|
editor: SessionEditor;
|
|
3230
3217
|
dispose: () => Promise<void>;
|
|
3231
3218
|
}
|
|
3232
|
-
declare function harness(): Promise<Harness>;
|
|
3219
|
+
declare function harness(provide?: (ctx: Context) => void): Promise<Harness>;
|
|
3233
3220
|
declare function twoTurnLog(): SessionEvent[];
|
|
3234
3221
|
declare function createPersisted(ctx: Context, id: string, events: readonly SessionEvent[], header?: SessionHeader): Promise<void>;
|
|
3235
3222
|
/** 构造一条 user/message 事件。 */
|
|
@@ -3246,4 +3233,4 @@ declare function turnLog(base: number, turn: number, opts?: {
|
|
|
3246
3233
|
time?: number;
|
|
3247
3234
|
}): SessionEvent[];
|
|
3248
3235
|
//#endregion
|
|
3249
|
-
export { type BranchTimeline, EmptySettings, Harness, Session, type SessionEvent, type SessionHeader, SessionIdBrand, SessionSeq, SessionStore, TokenMeter, assistantMessage, createPersisted, harness, meta, oneTurnLog, parseJsonlArtifact, turnLog, twoTurnLog, userMessage };
|
|
3236
|
+
export { type BranchTimeline, EmptySettings, Harness, SESSION_EDITOR_PATH, Session, type SessionEvent, type SessionHeader, SessionIdBrand, SessionSeq, SessionStore, TokenMeter, assistantMessage, createPersisted, harness, meta, oneTurnLog, parseJsonlArtifact, turnLog, twoTurnLog, userMessage };
|