@deepseek-ai/dsh-typert-generator 0.1.0-rc.8 → 0.1.1-rc.2

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/lib/index.js CHANGED
@@ -3859,6 +3859,11 @@ function githubSlug(heading) {
3859
3859
  function anchorFor(headingText) {
3860
3860
  return [`<a id="${githubSlug(headingText)}"></a>`, ""];
3861
3861
  }
3862
+ /** Render a subsystem `file:line` source pointer as a file-only link. */
3863
+ function sourceLink(source) {
3864
+ const file = source.split(":")[0];
3865
+ return `[\`${file}\`](../../${file})`;
3866
+ }
3862
3867
  /** Render one harness event entry onto its owning page, nested under its scope heading. */
3863
3868
  function renderEvent(e, onPage, linkedTypePages) {
3864
3869
  const out = [
@@ -3870,7 +3875,7 @@ function renderEvent(e, onPage, linkedTypePages) {
3870
3875
  out.push("```ts cordis-catalog", e.jsDoc, e.signature, "```", "");
3871
3876
  const links = typeLinks(e.signature, onPage, linkedTypePages);
3872
3877
  if (links) out.push(links, "");
3873
- out.push(`Source: [\`${e.source}\`](../../${e.source.split(":")[0]})`, "");
3878
+ out.push(`Source: ${sourceLink(e.source)}`, "");
3874
3879
  return out;
3875
3880
  }
3876
3881
  /** Render one harness service entry onto its owning page. */
@@ -3893,7 +3898,7 @@ function renderService(s, onPage, linkedTypePages) {
3893
3898
  const links = typeLinks(methods.map((method) => method.signature).join("\n"), onPage, linkedTypePages);
3894
3899
  if (links) out.push(links, "");
3895
3900
  }
3896
- out.push(`Source: [\`${s.source}\`](../../${s.source.split(":")[0]})`, "");
3901
+ out.push(`Source: ${sourceLink(s.source)}`, "");
3897
3902
  return out;
3898
3903
  }
3899
3904
  /** The shared generated-file banner comment. */
@@ -3922,7 +3927,7 @@ function renderPageRegion(page, services, events, policy) {
3922
3927
  "",
3923
3928
  "## Cordis API",
3924
3929
  "",
3925
- "Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — this section is byte-identical in both language sides of the page. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).",
3930
+ "Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — the language sides differ only in locale-specific paired document paths. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).",
3926
3931
  ""
3927
3932
  ];
3928
3933
  for (const s of services) lines.push(...renderService(s, page, policy.linkedTypePages));
@@ -704,6 +704,11 @@ function githubSlug(heading) {
704
704
  function anchorFor(headingText) {
705
705
  return [`<a id="${githubSlug(headingText)}"></a>`, ''];
706
706
  }
707
+ /** Render a subsystem `file:line` source pointer as a file-only link. */
708
+ function sourceLink(source) {
709
+ const file = source.split(':')[0];
710
+ return `[\`${file}\`](../../${file})`;
711
+ }
707
712
  /** Render one harness event entry onto its owning page, nested under its scope heading. */
708
713
  function renderEvent(e, onPage, linkedTypePages) {
709
714
  const out = [...anchorFor(`${e.name} — ${e.mode}`), `#### \`${e.name}\` — ${e.mode}`, ''];
@@ -713,7 +718,7 @@ function renderEvent(e, onPage, linkedTypePages) {
713
718
  const links = typeLinks(e.signature, onPage, linkedTypePages);
714
719
  if (links)
715
720
  out.push(links, '');
716
- out.push(`Source: [\`${e.source}\`](../../${e.source.split(':')[0]})`, '');
721
+ out.push(`Source: ${sourceLink(e.source)}`, '');
717
722
  return out;
718
723
  }
719
724
  /** Render one harness service entry onto its owning page. */
@@ -734,7 +739,7 @@ function renderService(s, onPage, linkedTypePages) {
734
739
  if (links)
735
740
  out.push(links, '');
736
741
  }
737
- out.push(`Source: [\`${s.source}\`](../../${s.source.split(':')[0]})`, '');
742
+ out.push(`Source: ${sourceLink(s.source)}`, '');
738
743
  return out;
739
744
  }
740
745
  /** The shared generated-file banner comment. */
@@ -763,7 +768,7 @@ export function renderPageRegion(page, services, events, policy) {
763
768
  '',
764
769
  '## Cordis API',
765
770
  '',
766
- 'Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — this section is byte-identical in both language sides of the page. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).',
771
+ 'Generated from source by `scripts/gen-cordis-catalog.ts` (verified fresh by `pnpm run verify-cordis-catalog` in doc-sync; regenerate with `pnpm run gen-cordis-catalog`) — the language sides differ only in locale-specific paired document paths. Signature blocks use a `ts cordis-catalog` fence and keep the original source JSDoc; dispatch modes are defined in the [primer](../cordis-primer.md#dispatch-modes), and the framework-inherited `ctx` API lives in [cordis-api/inherited.md](../cordis-api/inherited.md).',
767
772
  '',
768
773
  ];
769
774
  for (const s of services)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deepseek-ai/dsh-typert-generator",
3
3
  "description": "TypeScript project analyzer and model-driven Typert artifact generator",
4
- "version": "0.1.0-rc.8",
4
+ "version": "0.1.1-rc.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -41,14 +41,14 @@
41
41
  "typescript": "^6.0.3"
42
42
  },
43
43
  "peerDependencies": {
44
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
44
+ "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
45
45
  "@deepseek-ai/cordis": "^4.0.1"
46
46
  },
47
47
  "devDependencies": {
48
48
  "zod": "^4.4.3",
49
- "@deepseek-ai/dsh-invariants": "^0.1.0-rc.8",
50
- "@deepseek-ai/dsh-typert-registry": "^0.1.0-rc.8",
51
- "@deepseek-ai/dsh-tool-cordis": "^0.1.0-rc.8",
49
+ "@deepseek-ai/dsh-invariants": "^0.1.1-rc.2",
50
+ "@deepseek-ai/dsh-tool-cordis": "^0.1.1-rc.2",
51
+ "@deepseek-ai/dsh-typert-registry": "^0.1.1-rc.2",
52
52
  "@deepseek-ai/cordis": "^4.0.1"
53
53
  }
54
54
  }