@justestif/pk 0.1.9 → 0.1.10

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 +6 -3
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -17713,7 +17713,7 @@ var {
17713
17713
  var package_default = {
17714
17714
  name: "@justestif/pk",
17715
17715
  type: "module",
17716
- version: "0.1.9",
17716
+ version: "0.1.10",
17717
17717
  description: "Project knowledge \u2014 structured intake, search, and recall",
17718
17718
  bin: {
17719
17719
  pk: "dist/index.js"
@@ -34162,10 +34162,13 @@ function parseHarnesses(raw) {
34162
34162
  }
34163
34163
  return [...new Set(parts)];
34164
34164
  }
34165
+ function resolvePkCommand() {
34166
+ return Bun.which("pk") ?? "pk";
34167
+ }
34165
34168
  function pkMcpEntry(knowledgeDir) {
34166
34169
  return {
34167
34170
  args: ["mcp"],
34168
- command: "pk",
34171
+ command: resolvePkCommand(),
34169
34172
  env: { PK_KNOWLEDGE_DIR: knowledgeDir }
34170
34173
  };
34171
34174
  }
@@ -34228,7 +34231,7 @@ function writeCodexConfig(projectRoot, _name, knowledgeDir) {
34228
34231
  const cfgPath = path7.join(projectRoot, ".codex", "config.toml");
34229
34232
  const toml = [
34230
34233
  "[mcp_servers.pk]",
34231
- 'command = "pk"',
34234
+ `command = "${resolvePkCommand()}"`,
34232
34235
  'args = ["mcp"]',
34233
34236
  "",
34234
34237
  "[mcp_servers.pk.env]",
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@justestif/pk",
3
3
  "type": "module",
4
- "version": "0.1.9",
4
+ "version": "0.1.10",
5
5
  "description": "Project knowledge — structured intake, search, and recall",
6
6
  "bin": {
7
7
  "pk": "dist/index.js"