imprnt 0.1.2 → 0.1.3-edge.11

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 (3) hide show
  1. package/dist/cli.js +11 -1
  2. package/dist/imp.js +11 -1
  3. package/package.json +1 -1
package/dist/cli.js CHANGED
@@ -2035,6 +2035,14 @@ import { join as join14, dirname as dirname4, resolve as resolve6 } from "node:p
2035
2035
  import { homedir as homedir3 } from "node:os";
2036
2036
  import { fileURLToPath } from "node:url";
2037
2037
  import { createInterface } from "node:readline/promises";
2038
+ function pluginRoot() {
2039
+ const local = projectRoot();
2040
+ if (process.env.IMPRNT_ROOT || process.env.IMPRINT_ROOT)
2041
+ return local;
2042
+ if (existsSync12(join14(local, "vault")) || existsSync12(join14(local, "CLAUDE.local.md")))
2043
+ return local;
2044
+ return registeredRoot() ?? local;
2045
+ }
2038
2046
  function vaultArg() {
2039
2047
  const i = rest.indexOf("--vault");
2040
2048
  if (i >= 0) {
@@ -2126,7 +2134,9 @@ var init_cli = __esm(async () => {
2126
2134
  break;
2127
2135
  }
2128
2136
  case "plugin": {
2129
- const proj = projectRoot();
2137
+ const proj = pluginRoot();
2138
+ if (proj !== process.cwd())
2139
+ console.error(`(targeting vault project: ${proj})`);
2130
2140
  const [sub, ...specs] = rest;
2131
2141
  if (sub === "list") {
2132
2142
  const dirs = listPluginDirs(proj);
package/dist/imp.js CHANGED
@@ -2035,6 +2035,14 @@ import { join as join14, dirname as dirname4, resolve as resolve6 } from "node:p
2035
2035
  import { homedir as homedir3 } from "node:os";
2036
2036
  import { fileURLToPath } from "node:url";
2037
2037
  import { createInterface } from "node:readline/promises";
2038
+ function pluginRoot() {
2039
+ const local = projectRoot();
2040
+ if (process.env.IMPRNT_ROOT || process.env.IMPRINT_ROOT)
2041
+ return local;
2042
+ if (existsSync12(join14(local, "vault")) || existsSync12(join14(local, "CLAUDE.local.md")))
2043
+ return local;
2044
+ return registeredRoot() ?? local;
2045
+ }
2038
2046
  function vaultArg() {
2039
2047
  const i = rest.indexOf("--vault");
2040
2048
  if (i >= 0) {
@@ -2126,7 +2134,9 @@ var init_cli = __esm(async () => {
2126
2134
  break;
2127
2135
  }
2128
2136
  case "plugin": {
2129
- const proj = projectRoot();
2137
+ const proj = pluginRoot();
2138
+ if (proj !== process.cwd())
2139
+ console.error(`(targeting vault project: ${proj})`);
2130
2140
  const [sub, ...specs] = rest;
2131
2141
  if (sub === "list") {
2132
2142
  const dirs = listPluginDirs(proj);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "imprnt",
3
- "version": "0.1.2",
3
+ "version": "0.1.3-edge.11",
4
4
  "description": "Deterministic-first, plain-markdown knowledge vault. Code does the bulk transform. The LLM only touches the irreducibly-semantic 20%. Native grep plus BM25 retrieval, zero MCP on the vault.",
5
5
  "type": "module",
6
6
  "bin": {