@morlay/dsh-context-assembler 0.0.3 → 0.0.5
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/index.d.mts +10 -11
- package/dist/rows.d.mts +4 -5
- package/package.json +16 -16
package/dist/index.d.mts
CHANGED
|
@@ -2,12 +2,12 @@ import z from "@deepseek-ai/schemastery";
|
|
|
2
2
|
import { Context, Service } from "@deepseek-ai/cordis";
|
|
3
3
|
import { Agent } from "@deepseek-ai/dsh-agent";
|
|
4
4
|
//#region src/defaults.d.ts
|
|
5
|
-
declare const DEFAULT_KEEP: readonly string[];
|
|
6
|
-
declare const DEFAULT_SUPPRESS: readonly string[];
|
|
7
|
-
declare const DEFAULT_REPLACE: Readonly<Record<string, string>>;
|
|
5
|
+
export declare const DEFAULT_KEEP: readonly string[];
|
|
6
|
+
export declare const DEFAULT_SUPPRESS: readonly string[];
|
|
7
|
+
export declare const DEFAULT_REPLACE: Readonly<Record<string, string>>;
|
|
8
8
|
//#endregion
|
|
9
9
|
//#region src/channel.d.ts
|
|
10
|
-
declare class ContextAssembler extends Service {
|
|
10
|
+
export declare class ContextAssembler extends Service {
|
|
11
11
|
private readonly replacements;
|
|
12
12
|
private readonly suppressed;
|
|
13
13
|
private readonly states;
|
|
@@ -32,14 +32,13 @@ declare module "@deepseek-ai/cordis" {
|
|
|
32
32
|
}
|
|
33
33
|
//#endregion
|
|
34
34
|
//#region src/index.d.ts
|
|
35
|
-
declare const name = "context-assembler";
|
|
36
|
-
declare const inject: string[];
|
|
37
|
-
interface Config {
|
|
35
|
+
export declare const name = "context-assembler";
|
|
36
|
+
export declare const inject: string[];
|
|
37
|
+
export interface Config {
|
|
38
38
|
keep?: string[];
|
|
39
39
|
suppress?: string[];
|
|
40
40
|
replace?: Record<string, string>;
|
|
41
41
|
}
|
|
42
|
-
declare const Config: z<Config>;
|
|
43
|
-
declare function apply(ctx: Context, config: Config): void;
|
|
44
|
-
//#endregion
|
|
45
|
-
export { Config, ContextAssembler, DEFAULT_KEEP, DEFAULT_REPLACE, DEFAULT_SUPPRESS, apply, inject, name };
|
|
42
|
+
export declare const Config: z<Config>;
|
|
43
|
+
export declare function apply(ctx: Context, config: Config): void;
|
|
44
|
+
//#endregion
|
package/dist/rows.d.mts
CHANGED
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
//#region src/rows.d.ts
|
|
2
|
-
declare const CONTEXT_PACKAGE = "@morlay/dsh-context-assembler";
|
|
3
|
-
interface ContextRow {
|
|
2
|
+
export declare const CONTEXT_PACKAGE = "@morlay/dsh-context-assembler";
|
|
3
|
+
export interface ContextRow {
|
|
4
4
|
readonly id: string;
|
|
5
5
|
readonly name: string;
|
|
6
6
|
readonly config?: Readonly<Record<string, unknown>>;
|
|
7
7
|
}
|
|
8
|
-
declare function contextChannel(): ContextRow;
|
|
9
|
-
//#endregion
|
|
10
|
-
export { CONTEXT_PACKAGE, ContextRow, contextChannel };
|
|
8
|
+
export declare function contextChannel(): ContextRow;
|
|
9
|
+
//#endregion
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@morlay/dsh-context-assembler",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"description": "Prompt channel for dsh: assembly-result text conversion (replace / suppress) plus per-step delivery of demoted sections. Workspace instructions and the skill catalog use the official rows (@deepseek-ai/dsh-agent-instructions / @deepseek-ai/dsh-tool-skill); the per-session scope gate lives in @morlay/dsh-session-mode. Reference expansion is its own package (@morlay/dsh-reference).",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"context",
|
|
@@ -33,24 +33,24 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@deepseek-ai/cordis": "4.0.4",
|
|
36
|
-
"@deepseek-ai/dsh-agent": "0.2.0-rc.
|
|
37
|
-
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.
|
|
38
|
-
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.
|
|
39
|
-
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.
|
|
40
|
-
"@deepseek-ai/dsh-llm": "0.2.0-rc.
|
|
41
|
-
"@deepseek-ai/dsh-scope": "0.2.0-rc.
|
|
42
|
-
"@deepseek-ai/dsh-session": "0.2.0-rc.
|
|
43
|
-
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.
|
|
44
|
-
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.
|
|
45
|
-
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.
|
|
46
|
-
"@morlay/session-rdb": "0.1.
|
|
36
|
+
"@deepseek-ai/dsh-agent": "0.2.0-rc.2",
|
|
37
|
+
"@deepseek-ai/dsh-agent-loop": "0.2.0-rc.2",
|
|
38
|
+
"@deepseek-ai/dsh-agent-loop-testkit": "0.2.0-rc.2",
|
|
39
|
+
"@deepseek-ai/dsh-compaction-basic": "0.2.0-rc.2",
|
|
40
|
+
"@deepseek-ai/dsh-llm": "0.2.0-rc.2",
|
|
41
|
+
"@deepseek-ai/dsh-scope": "0.2.0-rc.2",
|
|
42
|
+
"@deepseek-ai/dsh-session": "0.2.0-rc.2",
|
|
43
|
+
"@deepseek-ai/dsh-session-persistence-jsonl": "0.2.0-rc.2",
|
|
44
|
+
"@deepseek-ai/dsh-system-prompt": "0.2.0-rc.2",
|
|
45
|
+
"@deepseek-ai/dsh-token-meter": "0.2.0-rc.2",
|
|
46
|
+
"@morlay/session-rdb": "0.1.4"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@deepseek-ai/cordis": "^4.0.4",
|
|
50
|
-
"@deepseek-ai/dsh-agent": "^0.2.0-rc.
|
|
51
|
-
"@deepseek-ai/dsh-llm": "^0.2.0-rc.
|
|
52
|
-
"@deepseek-ai/dsh-session": "^0.2.0-rc.
|
|
53
|
-
"@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.
|
|
50
|
+
"@deepseek-ai/dsh-agent": "^0.2.0-rc.2",
|
|
51
|
+
"@deepseek-ai/dsh-llm": "^0.2.0-rc.2",
|
|
52
|
+
"@deepseek-ai/dsh-session": "^0.2.0-rc.2",
|
|
53
|
+
"@deepseek-ai/dsh-system-prompt": "^0.2.0-rc.2"
|
|
54
54
|
},
|
|
55
55
|
"scripts": {
|
|
56
56
|
"build": "pnpm exec tsdown"
|