@deepseek-ai/dsh-session-format-v3-to-v4 0.1.7-alpha.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/LICENSE +21 -0
- package/README.i18n.yaml +6 -0
- package/README.md +350 -0
- package/README.zh.md +350 -0
- package/lib/index.js +1552 -0
- package/lib/types/codec.d.ts +48 -0
- package/lib/types/content.d.ts +17 -0
- package/lib/types/developer.d.ts +10 -0
- package/lib/types/extension-identities.d.ts +11 -0
- package/lib/types/facts.d.ts +35 -0
- package/lib/types/fork-result.d.ts +8 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/types/message-sources.d.ts +13 -0
- package/lib/types/migration.d.ts +11 -0
- package/lib/types/references.d.ts +11 -0
- package/lib/types/relationships.d.ts +9 -0
- package/lib/types/retired-syntax.d.ts +8 -0
- package/lib/types/sources.d.ts +26 -0
- package/lib/types/system-message.d.ts +7 -0
- package/lib/types/testing/validation.d.ts +7 -0
- package/lib/types/tool-role.d.ts +19 -0
- package/lib/types/validation.d.ts +33 -0
- package/package.json +51 -0
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
/** V4 framing with native tool-role admission and released physical rows. */
|
|
2
|
+
import type { SessionFormatHeader, SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* V4 physical encoder and decoder retain the released row framing while
|
|
5
|
+
* validating the native tool-role message directly.
|
|
6
|
+
*/
|
|
7
|
+
export declare const releasedV4SessionFormatCodec: Readonly<{
|
|
8
|
+
version: number;
|
|
9
|
+
decodeHeader(value: unknown): {
|
|
10
|
+
version: number;
|
|
11
|
+
id: string;
|
|
12
|
+
createdAt: number;
|
|
13
|
+
cwd?: string;
|
|
14
|
+
parentSession?: string;
|
|
15
|
+
isSeeded: boolean;
|
|
16
|
+
origin?: "subagent";
|
|
17
|
+
delegationDepth: number;
|
|
18
|
+
agentPreset?: string;
|
|
19
|
+
};
|
|
20
|
+
createDecoder(value: unknown, recovery: import("@deepseek-ai/dsh-session-format").SessionFormatRecovery): {
|
|
21
|
+
header: {
|
|
22
|
+
version: number;
|
|
23
|
+
id: string;
|
|
24
|
+
createdAt: number;
|
|
25
|
+
cwd?: string;
|
|
26
|
+
parentSession?: string;
|
|
27
|
+
isSeeded: boolean;
|
|
28
|
+
origin?: "subagent";
|
|
29
|
+
delegationDepth: number;
|
|
30
|
+
agentPreset?: string;
|
|
31
|
+
};
|
|
32
|
+
decodeRow(row: unknown, context: import("@deepseek-ai/dsh-session-format").SessionFormatMigrationContext): void;
|
|
33
|
+
headerInheritedEventCount?: number;
|
|
34
|
+
finish(context: import("@deepseek-ai/dsh-session-format").SessionFormatMigrationContext): number;
|
|
35
|
+
};
|
|
36
|
+
encodeHeader(header: SessionFormatHeader, inheritedEventCount: number): {
|
|
37
|
+
version: number;
|
|
38
|
+
};
|
|
39
|
+
encodeEvent(event: SessionFormatEvent): import("@deepseek-ai/dsh-session-format").SessionFormatJsonObject;
|
|
40
|
+
}>;
|
|
41
|
+
/**
|
|
42
|
+
* Apply native V4 admission before a scanner discards a recoverable suffix.
|
|
43
|
+
* Ignorable developer payloads require reader vocabulary; physical decoding defers them.
|
|
44
|
+
* @param row - parsed physical row before framing and source-event range decoding.
|
|
45
|
+
* @param knownEventTypes - installed event types, supplied by native readers before tail recovery.
|
|
46
|
+
*/
|
|
47
|
+
export declare function assertV4RowAdmission(row: unknown, knownEventTypes?: ReadonlySet<string>): void;
|
|
48
|
+
//# sourceMappingURL=codec.d.ts.map
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/** V3 content tags and request-tool fields admitted before V4 interpretation. */
|
|
2
|
+
import type { SessionFormatEvent, SessionFormatJsonValue } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Convert declared content tags while keeping arguments and extension data opaque.
|
|
5
|
+
* @param value - released content array.
|
|
6
|
+
* @param subject - owning event and content location for diagnostics.
|
|
7
|
+
* @returns content in the same order, sharing unchanged blocks and image references.
|
|
8
|
+
*/
|
|
9
|
+
export declare function migrateV3Content(value: SessionFormatJsonValue | undefined, subject: string): SessionFormatJsonValue[];
|
|
10
|
+
/**
|
|
11
|
+
* Convert declared V3 extension content and stream tags after canonical result lifting.
|
|
12
|
+
* @param event - source event after producer attribution conversion.
|
|
13
|
+
* @returns the event with namespaced content tags, retaining all coordinates and other fields.
|
|
14
|
+
* @throws {SessionFormatUnsupportedMigrationError} A V3 tool definition contains the V4-only deferLoading field.
|
|
15
|
+
*/
|
|
16
|
+
export declare function migrateV3EventContent(event: SessionFormatEvent): SessionFormatEvent;
|
|
17
|
+
//# sourceMappingURL=content.d.ts.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/** Native V4 developer-message and deferred-tool-schema validation. */
|
|
2
|
+
import type { SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Validate native V4 developer messages, tool-change blocks, and deferred tool schemas.
|
|
5
|
+
* Additional developer JSON fields are preserved. Malformed legacy message
|
|
6
|
+
* slots remain available to recoverable decoding.
|
|
7
|
+
* @param event - logical event or physical row before source-event range decoding.
|
|
8
|
+
*/
|
|
9
|
+
export declare function assertV4DeveloperData(event: SessionFormatEvent): void;
|
|
10
|
+
//# sourceMappingURL=developer.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Fixed V3 event vocabulary and namespaced historical opaque events. */
|
|
2
|
+
import type { SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/** First-party event names understood by the released V3 reader, independent of the installed writer. */
|
|
4
|
+
export declare const RELEASED_V3_EVENT_TYPES: ReadonlySet<string>;
|
|
5
|
+
/**
|
|
6
|
+
* Keep unknown ignorable events opaque after header promotion.
|
|
7
|
+
* @param event - original V3 event; this incoming identity conversion is applied once.
|
|
8
|
+
* @returns the same event or an ignorable namespaced event retaining its payload and coordinates.
|
|
9
|
+
*/
|
|
10
|
+
export declare function namespaceV3OpaqueEvent(event: SessionFormatEvent): SessionFormatEvent;
|
|
11
|
+
//# sourceMappingURL=extension-identities.d.ts.map
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/** Historical child identity reduced to the fields required by a parent's catalog. */
|
|
2
|
+
import type { SessionFormatArtifact, SessionFormatJsonObject, SessionFormatJsonValue } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Collect a child's own descriptor without requiring one before its parent catalog is read.
|
|
5
|
+
* @param artifact - validated historical child artifact with its exact inherited cut.
|
|
6
|
+
* @returns compact child identity and descriptor evidence with validated discovery fields for catalog completion.
|
|
7
|
+
* @throws SessionFormatError when a supported own descriptor has invalid discovery fields.
|
|
8
|
+
*/
|
|
9
|
+
export declare function historicalChildCatalogSource(artifact: SessionFormatArtifact): SessionFormatJsonObject;
|
|
10
|
+
/**
|
|
11
|
+
* Validate supplemental child evidence supplied across the migration JSON interface.
|
|
12
|
+
* @param value - collected child identity and optional descriptor.
|
|
13
|
+
* @returns validated evidence; descriptor interpretation is deferred until parent membership is known.
|
|
14
|
+
*/
|
|
15
|
+
export declare function childCatalogSource(value: SessionFormatJsonValue): SessionFormatJsonObject;
|
|
16
|
+
/**
|
|
17
|
+
* Interpret only the discovery fields of known historical descriptors.
|
|
18
|
+
* @param source - validated child evidence.
|
|
19
|
+
* @returns a catalog fact, or undefined without exactly one supported own descriptor.
|
|
20
|
+
*/
|
|
21
|
+
export declare function childCatalogFact(source: SessionFormatJsonObject): SessionFormatJsonObject | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* Validate the historical fields used for catalog membership without interpreting extensions.
|
|
24
|
+
* @param value - catalog payload or prepared historical discovery fact.
|
|
25
|
+
* @param subject - event type or child identity used in rejection diagnostics.
|
|
26
|
+
* @returns validated catalog payload.
|
|
27
|
+
*/
|
|
28
|
+
export declare function catalogFact(value: SessionFormatJsonValue, subject?: string): SessionFormatJsonObject;
|
|
29
|
+
/**
|
|
30
|
+
* Name the child and its optional storage-owned location in a migration diagnostic.
|
|
31
|
+
* @param source - validated supplemental child evidence.
|
|
32
|
+
* @returns a child identity with its source path when persistence supplied one.
|
|
33
|
+
*/
|
|
34
|
+
export declare function childCatalogSubject(source: SessionFormatJsonObject): string;
|
|
35
|
+
//# sourceMappingURL=facts.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Native V4 fork-result identity and not-started error validation. */
|
|
2
|
+
/**
|
|
3
|
+
* Validate fork-generated not-started results without changing their identity or text.
|
|
4
|
+
* Append results carry their own sequence; replacement results retain an earlier identity.
|
|
5
|
+
* @param row - logical event or physical event row.
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertV4ForkResult(row: unknown): void;
|
|
8
|
+
//# sourceMappingURL=fork-result.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Tool-role V3-to-V4 migration with native V4 framing and delivery validation. */
|
|
2
|
+
export { releasedV3SessionFormatCodec } from '@deepseek-ai/dsh-session-format-v2-to-v3';
|
|
3
|
+
export * from './codec.ts';
|
|
4
|
+
export * from './migration.ts';
|
|
5
|
+
export { assertReleasedV4Header, assertReleasedV4Relationships, restoreReleasedV4Artifact } from './validation.ts';
|
|
6
|
+
export { historicalChildCatalogSource } from './facts.ts';
|
|
7
|
+
export { RELEASED_V3_EVENT_TYPES } from './extension-identities.ts';
|
|
8
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/** Native source admission preserves unknown attribution and refuses retired plugin wrappers. */
|
|
2
|
+
import type { SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Validate producer attribution in every declared durable message slot.
|
|
5
|
+
* @param event - complete native V4 event before Session adoption.
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertV4MessageSources(event: SessionFormatEvent): void;
|
|
8
|
+
/**
|
|
9
|
+
* Refuse retired source syntax even after a malformed recoverable row; leave incomplete messages to decoding.
|
|
10
|
+
* @param row - parsed row whose incomplete values have not been classified by the scanner.
|
|
11
|
+
*/
|
|
12
|
+
export declare function assertV4SourceRowAdmission(row: unknown): void;
|
|
13
|
+
//# sourceMappingURL=message-sources.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Append historical child facts after converting V3 source events to V4. */
|
|
2
|
+
import type { SessionFormatJsonValue, SessionFormatMigration } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/** Header-only migration declaration; body restoration requires explicit child evidence. */
|
|
4
|
+
export declare const sessionFormatV3ToV4: SessionFormatMigration;
|
|
5
|
+
/**
|
|
6
|
+
* Bind one parent's historical child evidence to its V3→V4 migration.
|
|
7
|
+
* @param children - complete child evidence retained unchanged for the lifetime of this declaration; an empty array declares no children.
|
|
8
|
+
* @returns an adjacent migration that creates independent stages with the supplied evidence.
|
|
9
|
+
*/
|
|
10
|
+
export declare function createSessionFormatV3ToV4(children: readonly SessionFormatJsonValue[]): SessionFormatMigration;
|
|
11
|
+
//# sourceMappingURL=migration.d.ts.map
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
/** Remap released V3 local event references after interrupted-turn insertion. */
|
|
2
|
+
import type { SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Remap first-party local references, retaining generation-qualified captures and numeric payloads.
|
|
5
|
+
* @param event - first-party source event before envelope renumbering.
|
|
6
|
+
* @param seq - target event position.
|
|
7
|
+
* @param mapping - target positions of all earlier source events.
|
|
8
|
+
* @returns the event with target coordinates; unchanged events retain their identity.
|
|
9
|
+
*/
|
|
10
|
+
export declare function remapV3References(event: SessionFormatEvent, seq: number, mapping: readonly number[]): SessionFormatEvent;
|
|
11
|
+
//# sourceMappingURL=references.d.ts.map
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
/** Mandatory native V4 relationships; incomplete tails retain their open transactions. */
|
|
2
|
+
import type { SessionFormatArtifact } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Validate native V4 lifecycle and ownership facts without rewriting any event.
|
|
5
|
+
* @param artifact - artifact whose V4 envelopes and messages have been admitted.
|
|
6
|
+
* @param knownEventTypes - installed event types whose payloads this reader interprets.
|
|
7
|
+
*/
|
|
8
|
+
export declare function assertV4LifecycleRelationships(artifact: SessionFormatArtifact, knownEventTypes: ReadonlySet<string>): void;
|
|
9
|
+
//# sourceMappingURL=relationships.d.ts.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/** Retired native syntax remains a hard refusal even after a recoverable physical-row failure. */
|
|
2
|
+
/**
|
|
3
|
+
* Refuse retired headers, PTC tags, and tool-result blocks in interpreted content slots.
|
|
4
|
+
* Tool arguments, replay state, schema parameters, and nested extension values remain opaque.
|
|
5
|
+
* @param row - parsed physical row or complete native logical event.
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertV4RetiredSyntax(row: unknown): void;
|
|
8
|
+
//# sourceMappingURL=retired-syntax.d.ts.map
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/** Released V3 plugin-source conversion and declared message traversal. */
|
|
2
|
+
import type { SessionFormatEvent, SessionFormatJsonObject, SessionFormatJsonValue } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Visit only messages carried by first-party event payloads.
|
|
5
|
+
* @param event - source or target logical event.
|
|
6
|
+
* @param transform - message transform preserving unchanged identity.
|
|
7
|
+
* @returns the event sharing all untouched payloads.
|
|
8
|
+
*/
|
|
9
|
+
export declare function mapEventMessages(event: SessionFormatEvent, transform: (message: SessionFormatJsonObject) => SessionFormatJsonObject): SessionFormatEvent;
|
|
10
|
+
/**
|
|
11
|
+
* Lift one released V3 plugin source into the current producer-owned shape.
|
|
12
|
+
* @param source - source record whose `kind` is `'plugin'`.
|
|
13
|
+
* @param seq - event seq for diagnostics.
|
|
14
|
+
* @param role - carried message role for role-sensitive renames.
|
|
15
|
+
* @returns a copy whose kind is the producer's own kind and whose `plugin` field is dropped.
|
|
16
|
+
*/
|
|
17
|
+
export declare function rewritePluginSource(source: SessionFormatJsonObject, seq: number, role: SessionFormatJsonValue | undefined): SessionFormatJsonObject;
|
|
18
|
+
/**
|
|
19
|
+
* Convert released plugin wrappers while retaining every direct source kind and its metadata.
|
|
20
|
+
* @param source - decoded V3 message source.
|
|
21
|
+
* @param seq - event sequence for diagnostics.
|
|
22
|
+
* @param role - enclosing message role for role-sensitive producer mappings.
|
|
23
|
+
* @returns the converted source with every non-identity field preserved.
|
|
24
|
+
*/
|
|
25
|
+
export declare function rewriteV3MessageSource(source: SessionFormatJsonObject, seq: number, role: SessionFormatJsonValue | undefined): SessionFormatJsonObject;
|
|
26
|
+
//# sourceMappingURL=sources.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/** Native system-message fields checked before physical recovery can discard a row. */
|
|
2
|
+
/**
|
|
3
|
+
* Validate system fields independently of historical message representations; preserve additional JSON fields.
|
|
4
|
+
* @param row - complete logical event or parsed physical row before corruption recovery.
|
|
5
|
+
*/
|
|
6
|
+
export declare function assertV4SystemMessageFields(row: unknown): void;
|
|
7
|
+
//# sourceMappingURL=system-message.d.ts.map
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import type { SessionFormatArtifact } from '@deepseek-ai/dsh-session-format';
|
|
2
|
+
/**
|
|
3
|
+
* Validate an artifact through the native codec without vocabulary-aware restoration.
|
|
4
|
+
* @param artifact - current-generation artifact to encode and decode.
|
|
5
|
+
*/
|
|
6
|
+
export declare function assertReleasedV4Artifact(artifact: SessionFormatArtifact): void;
|
|
7
|
+
//# sourceMappingURL=validation.d.ts.map
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/** First-class tool-role messages in the V4 representation. */
|
|
2
|
+
import type { SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Lift one released-V3 wrapper tool/result row into the first-class V4 message.
|
|
5
|
+
* Validate the wrapper before dropping it so malformed historical content is
|
|
6
|
+
* rejected instead of being silently truncated.
|
|
7
|
+
* @param event - released wrapper tool/result event.
|
|
8
|
+
* @returns the same event with a first-class tool-role message.
|
|
9
|
+
* @throws {SessionFormatError} when the wrapper, tool source, content, or error flag is malformed.
|
|
10
|
+
* @throws {SessionFormatUnsupportedMigrationError} when the result contains another result.
|
|
11
|
+
*/
|
|
12
|
+
export declare function liftToolResult(event: SessionFormatEvent): SessionFormatEvent;
|
|
13
|
+
/**
|
|
14
|
+
* Validate the native V4 first-class tool-role message of one tool/result row.
|
|
15
|
+
* @param event - canonical V4 event.
|
|
16
|
+
* @throws {SessionFormatError} when the row is not an exact first-class tool result.
|
|
17
|
+
*/
|
|
18
|
+
export declare function assertV4ToolResultMessage(event: SessionFormatEvent): void;
|
|
19
|
+
//# sourceMappingURL=tool-role.d.ts.map
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
/** Native V4 metadata and generation-owned relationship validation. */
|
|
2
|
+
import type { SessionFormatArtifact, SessionFormatEvent } from '@deepseek-ai/dsh-session-format';
|
|
3
|
+
/**
|
|
4
|
+
* Validate the exact native V4 logical header.
|
|
5
|
+
* @param header - decoded or otherwise untrusted V4 Session header candidate.
|
|
6
|
+
*/
|
|
7
|
+
export declare function assertReleasedV4Header(header: unknown): void;
|
|
8
|
+
/**
|
|
9
|
+
* Validate V4 inheritance, vocabulary, native message admission, and
|
|
10
|
+
* lifecycle, compaction, tool, retry, title, command, catalog, and delivery ownership.
|
|
11
|
+
* Installed Session restoration owns common event envelopes and message acceptance.
|
|
12
|
+
* @param artifact - complete detached V4 artifact.
|
|
13
|
+
* @param knownEventTypes - event types understood by the installed Session package.
|
|
14
|
+
* @returns the same validated artifact and event objects.
|
|
15
|
+
*/
|
|
16
|
+
export declare function restoreReleasedV4Artifact(artifact: SessionFormatArtifact, knownEventTypes: ReadonlySet<string>): SessionFormatArtifact;
|
|
17
|
+
/**
|
|
18
|
+
* Validate delivery generation and active-generation coordinates before evaluating ownership.
|
|
19
|
+
* @param event - decoded event whose delivery payload may be inspected.
|
|
20
|
+
* @param currentVersion - generation whose watermark coordinates are active.
|
|
21
|
+
* @returns the active delivery's nonempty Session id, or undefined for other events and generations.
|
|
22
|
+
*/
|
|
23
|
+
export declare function validateDeliveryAccepted(event: SessionFormatEvent, currentVersion: 3 | 4): string | undefined;
|
|
24
|
+
/**
|
|
25
|
+
* Validate native developer fields, message sources, lifecycle, catalog, and delivery
|
|
26
|
+
* relationships without changing event vocabulary or tail recovery.
|
|
27
|
+
* The owning admission stage rejects unknown required events;
|
|
28
|
+
* unknown ignorable records retain their uninterpreted payloads.
|
|
29
|
+
* @param artifact - decoded artifact with its final inherited cut.
|
|
30
|
+
* @param knownEventTypes - installed event types whose payloads this reader interprets.
|
|
31
|
+
*/
|
|
32
|
+
export declare function assertReleasedV4Relationships(artifact: SessionFormatArtifact, knownEventTypes: ReadonlySet<string>): void;
|
|
33
|
+
//# sourceMappingURL=validation.d.ts.map
|
package/package.json
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@deepseek-ai/dsh-session-format-v3-to-v4",
|
|
3
|
+
"description": "Streaming tool-role migration and delivery validation from Session V3 to V4",
|
|
4
|
+
"version": "0.1.7-alpha.1",
|
|
5
|
+
"publishConfig": {
|
|
6
|
+
"access": "public"
|
|
7
|
+
},
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/deepseek-ai/deepseek-harness.git",
|
|
11
|
+
"directory": "packages/session/session-format-v3-to-v4"
|
|
12
|
+
},
|
|
13
|
+
"type": "module",
|
|
14
|
+
"main": "lib/index.js",
|
|
15
|
+
"types": "lib/types/index.d.ts",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": {
|
|
18
|
+
"types": "./lib/types/index.d.ts",
|
|
19
|
+
"default": "./lib/index.js"
|
|
20
|
+
},
|
|
21
|
+
"./src/*": "./src/*",
|
|
22
|
+
"./package.json": "./package.json"
|
|
23
|
+
},
|
|
24
|
+
"files": [
|
|
25
|
+
"lib/index.js",
|
|
26
|
+
"lib/types/**/*.d.ts"
|
|
27
|
+
],
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"dsh": {
|
|
30
|
+
"sessionFormatMigration": {
|
|
31
|
+
"from": 3,
|
|
32
|
+
"to": 4,
|
|
33
|
+
"export": ".",
|
|
34
|
+
"migration": "sessionFormatV3ToV4",
|
|
35
|
+
"sourceCodec": "releasedV3SessionFormatCodec",
|
|
36
|
+
"targetCodec": "releasedV4SessionFormatCodec",
|
|
37
|
+
"targetHeaderValidator": "assertReleasedV4Header",
|
|
38
|
+
"targetRestorer": "restoreReleasedV4Artifact"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"dependencies": {
|
|
42
|
+
"@deepseek-ai/dsh-session-format": "^0.1.7-alpha.1",
|
|
43
|
+
"@deepseek-ai/dsh-session-format-v2-to-v3": "^0.1.7-alpha.1"
|
|
44
|
+
},
|
|
45
|
+
"peerDependencies": {
|
|
46
|
+
"@deepseek-ai/cordis": "^4.0.3"
|
|
47
|
+
},
|
|
48
|
+
"devDependencies": {
|
|
49
|
+
"@deepseek-ai/cordis": "^4.0.3"
|
|
50
|
+
}
|
|
51
|
+
}
|