@morlay/dsh-reference 0.0.9 → 0.0.11-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/dist/index.d.mts CHANGED
@@ -1,13 +1,10 @@
1
1
  import { Context } from "@deepseek-ai/cordis";
2
2
  import "@deepseek-ai/dsh-session";
3
- //#region src/links.d.ts
4
3
  interface FileReference {
5
4
  readonly path: string;
6
5
  readonly lineStart?: number;
7
6
  readonly lineEnd?: number;
8
7
  }
9
- //#endregion
10
- //#region src/index.d.ts
11
8
  export declare const name = "reference";
12
9
  export declare const inject: string[];
13
10
  export interface FileReferenceSource {
@@ -20,5 +17,4 @@ declare module "@deepseek-ai/dsh-llm" {
20
17
  }
21
18
  }
22
19
  export declare function apply(ctx: Context): void;
23
- //#endregion
24
20
  export {};
package/dist/index.mjs CHANGED
@@ -5,7 +5,7 @@ import { gfmFromMarkdown } from "mdast-util-gfm";
5
5
  import { asciiAlpha, asciiAlphanumeric, asciiDigit, markdownLineEnding, markdownLineEndingOrSpace, unicodePunctuation, unicodeWhitespace } from "micromark-util-character";
6
6
  import { gfm } from "micromark-extension-gfm";
7
7
  import { codes, types } from "micromark-util-symbol";
8
- //#region src/file-content.ts
8
+ // src/file-content.ts
9
9
  const READ_LIMIT = 2e3;
10
10
  const READ_MAX_LINE_LENGTH = 2e3;
11
11
  const READ_MAX_BYTES = 51200;
@@ -95,8 +95,7 @@ function formatFileContent(displayPath, outcome) {
95
95
  ${body}
96
96
  </file_content>`;
97
97
  }
98
- //#endregion
99
- //#region ../../client/dsh-client-ui-primitives/src/reference.ts
98
+ // ../../client/dsh-client-ui-primitives/src/reference.ts
100
99
  const DEFAULT_PROTOCOL = "file";
101
100
  const LINE_FRAGMENT = /^L(\d+)(?:C(\d+))?(?:-L(\d+))?$/u;
102
101
  const SCHEME = /^([A-Za-z][A-Za-z0-9+.-]*):/u;
@@ -507,8 +506,7 @@ function decodeUri(value) {
507
506
  return;
508
507
  }
509
508
  }
510
- //#endregion
511
- //#region src/links.ts
509
+ // src/links.ts
512
510
  const SKILL_PROTOCOL = "skill";
513
511
  const FILE_PROTOCOL = "file";
514
512
  const AT_PREFIX = "@";
@@ -572,8 +570,7 @@ function fileReferencesIn(messages) {
572
570
  function sameWindow(left, right) {
573
571
  return left.path === right.path && left.lineStart === right.lineStart && left.lineEnd === right.lineEnd;
574
572
  }
575
- //#endregion
576
- //#region src/index.ts
573
+ // src/index.ts
577
574
  const name = "reference";
578
575
  const inject = ["skills"];
579
576
  const NOTE = [
@@ -654,5 +651,4 @@ function apply(ctx) {
654
651
  };
655
652
  });
656
653
  }
657
- //#endregion
658
654
  export { apply, inject, name };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@morlay/dsh-reference",
3
- "version": "0.0.9",
3
+ "version": "0.0.11-alpha.0",
4
4
  "description": "Reference expansion for dsh: `@path` / `skill:name` in a user message expand into injected content at pre-step. Independent of the injection channel; the reference parser it reuses is inlined into the artifact, so this package ships without a client-side dependency.",
5
5
  "keywords": [
6
6
  "context",
@@ -32,25 +32,25 @@
32
32
  "mdast-util-from-markdown": "^2.0.2"
33
33
  },
34
34
  "devDependencies": {
35
- "@deepseek-ai/cordis": "^4.0.5",
36
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
37
- "@deepseek-ai/dsh-fs": "^0.2.1-rc.1",
38
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
39
- "@deepseek-ai/dsh-session": "^0.2.1-rc.1",
40
- "@deepseek-ai/dsh-skill": "^0.2.1-rc.1",
35
+ "@deepseek-ai/cordis": "^4.0.6-alpha.1",
36
+ "@deepseek-ai/dsh-agent": "^0.2.2-alpha.2",
37
+ "@deepseek-ai/dsh-fs": "^0.2.2-alpha.2",
38
+ "@deepseek-ai/dsh-llm": "^0.2.2-alpha.2",
39
+ "@deepseek-ai/dsh-session": "^0.2.2-alpha.2",
40
+ "@deepseek-ai/dsh-skill": "^0.2.2-alpha.2",
41
41
  "@types/mdast": "^4.0.4"
42
42
  },
43
43
  "peerDependencies": {
44
- "@deepseek-ai/cordis": "^4.0.5",
45
- "@deepseek-ai/dsh-agent": "^0.2.1-rc.1",
46
- "@deepseek-ai/dsh-fs": "^0.2.1-rc.1",
47
- "@deepseek-ai/dsh-llm": "^0.2.1-rc.1",
48
- "@deepseek-ai/dsh-session": "^0.2.1-rc.1",
49
- "@deepseek-ai/dsh-skill": "^0.2.1-rc.1",
50
- "@morlay/dsh-client-ui-primitives": "0.0.12"
44
+ "@deepseek-ai/cordis": "^4.0.6-alpha.1",
45
+ "@deepseek-ai/dsh-agent": "^0.2.2-alpha.2",
46
+ "@deepseek-ai/dsh-fs": "^0.2.2-alpha.2",
47
+ "@deepseek-ai/dsh-llm": "^0.2.2-alpha.2",
48
+ "@deepseek-ai/dsh-session": "^0.2.2-alpha.2",
49
+ "@deepseek-ai/dsh-skill": "^0.2.2-alpha.2",
50
+ "@morlay/dsh-client-ui-primitives": "0.0.14-alpha.0"
51
51
  },
52
52
  "engines": {
53
- "dsh": ">= 0.2.1-rc.1 < 0.2.2"
53
+ "dsh": ">= 0.2.2-alpha.2 < 0.2.3"
54
54
  },
55
55
  "scripts": {
56
56
  "build": "pnpm exec tsdown"