@openpkg-ts/sdk 0.53.0 → 0.53.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.
Files changed (2) hide show
  1. package/dist/index.js +7 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1673,6 +1673,7 @@ function head(abs, maxChars = 1200) {
1673
1673
  return "";
1674
1674
  }
1675
1675
  }
1676
+ var PACKAGE_NONE = "none";
1676
1677
  async function jevPickPackage(candidates, ctx) {
1677
1678
  if (!ctx.evaluate || candidates.length < 2)
1678
1679
  return null;
@@ -1683,6 +1684,7 @@ async function jevPickPackage(candidates, ctx) {
1683
1684
  byId.set(id, pkg);
1684
1685
  criteria[id] = `${pkg.name} — ${pkg.description ?? pkg.dir}${pkg.hasSrc ? " (src)" : ""}`;
1685
1686
  }
1687
+ criteria[PACKAGE_NONE] = "No single package is the product — these are peer libraries";
1686
1688
  const picked = await jevChoice({
1687
1689
  evaluate: ctx.evaluate,
1688
1690
  instructions: "Which package is the public TypeScript SDK to extract? Prefer the named product, not examples, wasm glue, or private packages.",
@@ -1701,7 +1703,9 @@ async function jevPickPackage(candidates, ctx) {
1701
1703
  },
1702
1704
  id: "package"
1703
1705
  });
1704
- if (!picked || picked.confidence < JEV_CONFIDENCE)
1706
+ if (!picked || picked.choice === PACKAGE_NONE)
1707
+ return null;
1708
+ if (picked.confidence < JEV_CONFIDENCE)
1705
1709
  return null;
1706
1710
  return byId.get(picked.choice) ?? null;
1707
1711
  }
@@ -3964,6 +3968,8 @@ class TypeRegistry {
3964
3968
  return;
3965
3969
  if (name.startsWith("__"))
3966
3970
  return;
3971
+ if (name.startsWith('"'))
3972
+ return;
3967
3973
  if (symbol.flags & ts6.SymbolFlags.EnumMember)
3968
3974
  return;
3969
3975
  if (symbol.flags & ts6.SymbolFlags.TypeParameter)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openpkg-ts/sdk",
3
- "version": "0.53.0",
3
+ "version": "0.53.1",
4
4
  "description": "TypeScript API extraction SDK - programmatic primitives for OpenPkg specs",
5
5
  "keywords": [
6
6
  "openpkg",