pi-local-agents-only 0.1.20 → 0.1.22
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 +12 -0
- package/README.md +1 -1
- package/extensions/local-agents-only.js +4 -13
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,18 @@
|
|
|
2
2
|
|
|
3
3
|
## Unreleased
|
|
4
4
|
|
|
5
|
+
## 0.1.22 - 2026-06-23
|
|
6
|
+
|
|
7
|
+
- updated the local pi development baseline to `@earendil-works/pi-coding-agent` `0.80.1` and refreshed the npm lockfile
|
|
8
|
+
- refreshed the README compatibility note for pi `0.80.1`
|
|
9
|
+
- reviewed the Pi 0.80.0/0.80.1 changelog; no runtime source migration was required
|
|
10
|
+
|
|
11
|
+
## 0.1.21 - 2026-06-22
|
|
12
|
+
|
|
13
|
+
- updated the local pi development baseline to `@earendil-works/pi-coding-agent` `0.79.10` and refreshed the npm lockfile
|
|
14
|
+
- refreshed the README compatibility note for pi `0.79.10` and removed the obsolete fleet-tested marker
|
|
15
|
+
- validated with `npm run check` and an isolated Pi package-load smoke under pi `0.79.10`
|
|
16
|
+
|
|
5
17
|
## 0.1.20 - 2026-06-15
|
|
6
18
|
|
|
7
19
|
- updated the local pi development baseline to `@earendil-works/pi-coding-agent` `0.79.4` and refreshed the npm lockfile
|
package/README.md
CHANGED
|
@@ -16,7 +16,7 @@ Or install it directly from GitHub with pi:
|
|
|
16
16
|
pi install https://github.com/fitchmultz/pi-local-agents-only
|
|
17
17
|
```
|
|
18
18
|
|
|
19
|
-
Compatibility note: this package is currently tested against pi `0.
|
|
19
|
+
Compatibility note: this package is currently tested against pi `0.80.1` as the suggested floor, and pi-bundled runtime packages are declared as optional wildcard peers. That keeps installs forward-open for future pi releases: npm peer ranges should not block users from trying a newer pi, though runtime behavior is only verified against the tested baseline until a follow-up package release confirms it.
|
|
20
20
|
|
|
21
21
|
## Use
|
|
22
22
|
|
|
@@ -10,8 +10,8 @@
|
|
|
10
10
|
|
|
11
11
|
import { execFileSync } from "node:child_process";
|
|
12
12
|
import { closeSync, existsSync, fsyncSync, mkdirSync, openSync, readFileSync, renameSync, rmSync, writeFileSync } from "node:fs";
|
|
13
|
-
import { homedir } from "node:os";
|
|
14
13
|
import { dirname, join, resolve } from "node:path";
|
|
14
|
+
import { CONFIG_DIR_NAME, getAgentDir as getPiAgentDir } from "@earendil-works/pi-coding-agent";
|
|
15
15
|
|
|
16
16
|
/** @typedef {import("@earendil-works/pi-coding-agent").ExtensionAPI} ExtensionAPI */
|
|
17
17
|
/** @typedef {import("@earendil-works/pi-coding-agent").ExtensionContext} ExtensionContext */
|
|
@@ -33,7 +33,7 @@ class ConfigError extends Error {
|
|
|
33
33
|
}
|
|
34
34
|
|
|
35
35
|
const COMMAND = "local-agents-only";
|
|
36
|
-
const MARKER = join(
|
|
36
|
+
const MARKER = join(CONFIG_DIR_NAME, COMMAND);
|
|
37
37
|
const GLOBAL_CONTEXT_FILES = ["AGENTS.md", "CLAUDE.md"];
|
|
38
38
|
const ENV_TRUE = ["1", "true", "yes", "on"];
|
|
39
39
|
const ENV_FALSE = ["0", "false", "no", "off"];
|
|
@@ -44,16 +44,7 @@ const CONTEXT_XML_BLOCK = /<project_instructions path="([^"]+(?:AGENTS|CLAUDE)\.
|
|
|
44
44
|
const emptyConfig = () => ({ projects: [], repositories: [] });
|
|
45
45
|
|
|
46
46
|
/** @returns {string} */
|
|
47
|
-
const getAgentDir = () =>
|
|
48
|
-
const env = process.env.PI_CODING_AGENT_DIR;
|
|
49
|
-
if (env === "~") {
|
|
50
|
-
return homedir();
|
|
51
|
-
}
|
|
52
|
-
if (env?.startsWith("~/")) {
|
|
53
|
-
return join(homedir(), env.slice(2));
|
|
54
|
-
}
|
|
55
|
-
return env || join(homedir(), ".pi", "agent");
|
|
56
|
-
};
|
|
47
|
+
const getAgentDir = () => getPiAgentDir();
|
|
57
48
|
|
|
58
49
|
/** @param {string} path */
|
|
59
50
|
const normalizePath = (path) => resolve(path).replace(/\\/g, "/");
|
|
@@ -360,7 +351,7 @@ const getProjectState = (start = process.cwd()) => {
|
|
|
360
351
|
gitTopLevel ||
|
|
361
352
|
walkUp(normalizedStart, (dir) => existsSync(getMarkerPath(dir))) ||
|
|
362
353
|
walkUp(normalizedStart, (dir) => {
|
|
363
|
-
const piDir = join(dir,
|
|
354
|
+
const piDir = join(dir, CONFIG_DIR_NAME);
|
|
364
355
|
return existsSync(piDir) && !isGlobalPiDirectory(piDir);
|
|
365
356
|
}) ||
|
|
366
357
|
normalizedStart;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-local-agents-only",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.22",
|
|
4
4
|
"description": "Pi extension that strips global AGENTS.md and CLAUDE.md from the effective prompt for selected projects.",
|
|
5
5
|
"author": "Mitch Fultz (https://github.com/fitchmultz)",
|
|
6
6
|
"license": "MIT",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"prepublishOnly": "npm run check"
|
|
38
38
|
},
|
|
39
39
|
"devDependencies": {
|
|
40
|
-
"@earendil-works/pi-coding-agent": "0.
|
|
40
|
+
"@earendil-works/pi-coding-agent": "^0.80.1",
|
|
41
41
|
"@types/node": "^25.9.1",
|
|
42
42
|
"typescript": "^6.0.3"
|
|
43
43
|
},
|