pm-presets 2026.10.28 → 2026.10.30

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 2026.10.30 - 2026-10-30
4
+
5
+ ### Fixed
6
+
7
+ - Resolve the host SDK through symlinked pm entry points ([pm-jzy6](https://github.com/unbraind/pm-presets/blob/main/.agents/pm/issues/pm-jzy6.toon))
8
+
3
9
  ## 2026.10.28 - 2026-10-28
4
10
 
5
11
  ### Other
@@ -11,6 +11,6 @@ export declare class SimulationRefusal extends Error {
11
11
  /** Construct a refusal without exposing the caller's configuration or filesystem. */
12
12
  constructor(code: SimulationRefusalCode, remedy: string, exitCode?: number);
13
13
  }
14
- /** Resolve the peer from the package or the CLI host, including standalone extension copies. */
14
+ /** Resolve the peer from the package, the workspace or the CLI host, including invocation symlinks. */
15
15
  export declare function resolveSimulationSdk(anchors: readonly string[]): string;
16
16
  //# sourceMappingURL=sdk-loader.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-loader.d.ts","sourceRoot":"","sources":["../src/sdk-loader.ts"],"names":[],"mappings":"AAGA,+DAA+D;AAC/D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAC3I,iFAAiF;AACjF,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,qFAAqF;IACrF,YAAY,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAI,EAMpE;CACF;AAED,gGAAgG;AAChG,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASvE"}
1
+ {"version":3,"file":"sdk-loader.d.ts","sourceRoot":"","sources":["../src/sdk-loader.ts"],"names":[],"mappings":"AAKA,+DAA+D;AAC/D,MAAM,MAAM,qBAAqB,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,oBAAoB,GAAG,iBAAiB,GAAG,mBAAmB,CAAC;AAC3I,iFAAiF;AACjF,qBAAa,iBAAkB,SAAQ,KAAK;IAC1C,wCAAwC;IACxC,QAAQ,CAAC,IAAI,EAAE,qBAAqB,CAAC;IACrC,6CAA6C;IAC7C,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,2DAA2D;IAC3D,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;IAC1B,qFAAqF;IACrF,YAAY,IAAI,EAAE,qBAAqB,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,SAAI,EAMpE;CACF;AAoBD,uGAAuG;AACvG,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CASvE"}
@@ -1,5 +1,7 @@
1
1
  /** Host SDK resolution shared by template reads, plans and simulations. */
2
+ import { realpathSync } from "node:fs";
2
3
  import { createRequire } from "node:module";
4
+ import { fileURLToPath } from "node:url";
3
5
  /** Actionable refusal; internal paths and raw child diagnostics never escape. */
4
6
  export class SimulationRefusal extends Error {
5
7
  /** Stable machine-readable category. */
@@ -17,11 +19,30 @@ export class SimulationRefusal extends Error {
17
19
  this.exitCode = exitCode;
18
20
  }
19
21
  }
20
- /** Resolve the peer from the package or the CLI host, including standalone extension copies. */
22
+ /**
23
+ * Lookup locations for one anchor. Workspace anchors keep their given location
24
+ * first; the invoked CLI entry is followed to its real file first, because a
25
+ * global bin symlink has no node_modules beside it.
26
+ */
27
+ function anchorLocations(anchor) {
28
+ let given;
29
+ let canonical;
30
+ try {
31
+ given = anchor.startsWith("file:") ? fileURLToPath(anchor) : anchor;
32
+ canonical = realpathSync(given);
33
+ }
34
+ catch {
35
+ return [anchor]; // Virtual/nonexistent anchors still support require's normal lookup.
36
+ }
37
+ if (canonical === given)
38
+ return [anchor];
39
+ return given === process.argv[1] ? [canonical, anchor] : [anchor, canonical];
40
+ }
41
+ /** Resolve the peer from the package, the workspace or the CLI host, including invocation symlinks. */
21
42
  export function resolveSimulationSdk(anchors) {
22
- for (const anchor of anchors) {
43
+ for (const location of anchors.flatMap(anchorLocations)) {
23
44
  try {
24
- return createRequire(anchor).resolve("@unbrained/pm-cli/sdk");
45
+ return createRequire(location).resolve("@unbrained/pm-cli/sdk");
25
46
  }
26
47
  catch {
27
48
  // The extension copy may have no node_modules; try the host next.
@@ -1 +1 @@
1
- {"version":3,"file":"sdk-loader.js","sourceRoot":"","sources":["../src/sdk-loader.ts"],"names":[],"mappings":"AAAA,2EAA2E;AAC3E,OAAO,EAAE,aAAa,EAAE,MAAM,aAAa,CAAC;AAI5C,iFAAiF;AACjF,MAAM,OAAO,iBAAkB,SAAQ,KAAK;IAC1C,wCAAwC;IAC/B,IAAI,CAAwB;IACrC,6CAA6C;IACpC,MAAM,CAAS;IACxB,2DAA2D;IAClD,QAAQ,CAAS;IAC1B,qFAAqF;IACrF,YAAY,IAA2B,EAAE,MAAc,EAAE,QAAQ,GAAG,CAAC;QACnE,KAAK,CAAC,GAAG,IAAI,KAAK,MAAM,EAAE,CAAC,CAAC;QAC5B,IAAI,CAAC,IAAI,GAAG,mBAAmB,CAAC;QAChC,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QACjB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,QAAQ,GAAG,QAAQ,CAAC;IAC3B,CAAC;CACF;AAED,gGAAgG;AAChG,MAAM,UAAU,oBAAoB,CAAC,OAA0B;IAC7D,KAAK,MAAM,MAAM,IAAI,OAAO,EAAE,CAAC;QAC7B,IAAI,CAAC;YACH,OAAO,aAAa,CAAC,MAAM,CAAC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P,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,qEAAqE;IACxF,CAAC;IACD,IAAI,SAAS,KAAK,KAAK;QAAE,OAAO,CAAC,MAAM,CAAC,CAAC;IACzC,OAAO,KAAK,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,SAAS,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,MAAM,EAAE,SAAS,CAAC,CAAC;AAC/E,CAAC;AAED,uGAAuG;AACvG,MAAM,UAAU,oBAAoB,CAAC,OAA0B;IAC7D,KAAK,MAAM,QAAQ,IAAI,OAAO,CAAC,OAAO,CAAC,eAAe,CAAC,EAAE,CAAC;QACxD,IAAI,CAAC;YACH,OAAO,aAAa,CAAC,QAAQ,CAAC,CAAC,OAAO,CAAC,uBAAuB,CAAC,CAAC;QAClE,CAAC;QAAC,MAAM,CAAC;YACP,kEAAkE;QACpE,CAAC;IACH,CAAC;IACD,MAAM,IAAI,iBAAiB,CAAC,iBAAiB,EAAE,6EAA6E,EAAE,CAAC,CAAC,CAAC;AACnI,CAAC"}
package/manifest.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pm-presets",
3
- "version": "2026.10.28",
3
+ "version": "2026.10.30",
4
4
  "description": "All 7 official pm-cli workspace presets in one package: bug-triage, indie-dev, open-source, software-sprint, startup-roadmap, kanban, agent-workflow",
5
5
  "author": "@unbraind",
6
6
  "entry": "./dist/index.js",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pm-presets",
3
- "version": "2026.10.28",
3
+ "version": "2026.10.30",
4
4
  "description": "All 7 official pm-cli workspace presets in one package: bug-triage, indie-dev, open-source, software-sprint, startup-roadmap, kanban, agent-workflow",
5
5
  "repository": {
6
6
  "type": "git",
@@ -61,9 +61,9 @@
61
61
  },
62
62
  "devDependencies": {
63
63
  "@types/node": "^26.2.0",
64
- "@unbrained/pm-cli": "2026.10.23",
65
- "pm-changelog": "2026.10.23",
66
- "pm-ops": "2026.10.23",
64
+ "@unbrained/pm-cli": "2026.10.27",
65
+ "pm-changelog": "2026.10.27",
66
+ "pm-ops": "2026.10.27",
67
67
  "typescript": "^7.0.2"
68
68
  },
69
69
  "engines": {