@narumitw/pi-agentfs 0.1.0 → 0.2.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.
- package/README.md +1 -0
- package/docs/dependency-security.md +20 -0
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -99,6 +99,7 @@ Other extensions, MCP tools, native file/search tools, host attachments, and ses
|
|
|
99
99
|
The shell does not receive `process.env`, service secrets, network commands, or arbitrary program executors.
|
|
100
100
|
This restriction applies to the workspace tools, not to the surrounding Pi process.
|
|
101
101
|
Review dependency advisories and deployment controls before production use; a command allowlist is not a security audit of every installed dependency.
|
|
102
|
+
See [Dependency security](./docs/dependency-security.md) for repository dependency overrides and their scope.
|
|
102
103
|
|
|
103
104
|
## 🚧 Limitations
|
|
104
105
|
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Dependency security
|
|
2
|
+
|
|
3
|
+
The root manifest overrides `just-bash`'s `guarded-fetch` dependency to use its patched HTTP dependency chain.
|
|
4
|
+
The root manifest also aligns `agentfs-sdk`'s Turso database dependencies with this workspace's direct database dependency.
|
|
5
|
+
The lockfile records the selected versions.
|
|
6
|
+
These overrides apply to repository installs, not independent installs of published workspace packages.
|
|
7
|
+
Remove each override when the declared upstream dependencies resolve to compatible, patched releases without it.
|
|
8
|
+
|
|
9
|
+
## Formatter replacement
|
|
10
|
+
|
|
11
|
+
The root manifest replaces `just-bash`'s `sprintf-js` dependency with the `@lvcabral/sprintf` fork through an npm alias.
|
|
12
|
+
This removes the package flagged by [GHSA-hp3w-g68c-fv3c](https://github.com/advisories/GHSA-hp3w-g68c-fv3c) without downgrading AgentFS or suppressing audit results.
|
|
13
|
+
The [authoritative CVE record](https://cveawg.mitre.org/api/cve/CVE-2026-97058) marks this CVE as `REJECTED`; the alias is a dependency replacement, not a claim that the fork patches the rejected CVE.
|
|
14
|
+
|
|
15
|
+
Invalid precision can still raise JavaScript exceptions.
|
|
16
|
+
`just-bash` must contain those exceptions and return command failures.
|
|
17
|
+
`packages/pi-agentfs/test/formatter-compatibility.test.ts` verifies that behavior, recovery after failure, and the relevant native and formatter-backed conversions through both ESM and CommonJS entrypoints.
|
|
18
|
+
|
|
19
|
+
AgentFS does not expose `printf` or `awk` in its restricted shell.
|
|
20
|
+
`packages/pi-agentfs/test/workspace.test.ts` verifies that the reported precision inputs cannot reach either command and that the workspace remains usable after rejection.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@narumitw/pi-agentfs",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "AgentFS virtual file workspace and restricted just-bash tools for Pi.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
42
|
"@narumitw/pi-tui-kit": "^0.66.0",
|
|
43
|
-
"@tursodatabase/database": "0.
|
|
43
|
+
"@tursodatabase/database": "0.8.3",
|
|
44
44
|
"agentfs-sdk": "0.6.4",
|
|
45
45
|
"just-bash": "3.6.0"
|
|
46
46
|
},
|