@nanhara/hara 0.122.4 → 0.122.5

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
@@ -5,6 +5,25 @@ All notable changes to `@nanhara/hara`.
5
5
  > Versioning (pre-1.0, SemVer-style): the **minor** (middle) number bumps for a **new feature**; the
6
6
  > **patch** (last) number bumps for **optimizations/fixes of existing features**.
7
7
 
8
+ ## 0.122.5 — 2026-07-15 — standalone ambient-config security boundary
9
+
10
+ - **Standalone binaries no longer trust the directory they are launched from.** Bun's runtime `.env` and
11
+ `bunfig.toml` autoloading is now explicitly disabled, together with the already-default-off project
12
+ `package.json` and `tsconfig.json` loaders. A repository can no longer run a `bunfig` preload before Hara's
13
+ permission checks or inject project `.env` values into the standalone/desktop-sidecar process. Users of the
14
+ `0.122.4` standalone binary should upgrade promptly; the npm/Node runtime was not affected by Bun's compiled
15
+ executable autoload path.
16
+ - **The release gate exercises the real boundary.** Native standalone CI and tag publication launch the actual
17
+ binary from a hostile fixture directory containing both a marker-writing preload and a model-changing test
18
+ `.env`; the build fails if either executes or loads. A source-policy regression test also requires all four
19
+ ambient config loaders to remain explicitly disabled and the smoke to stay wired into CI/release.
20
+ - **x64 standalone assets use Bun's baseline CPU target.** Intel macOS, Linux, and Windows sidecar callers no
21
+ longer inherit the modern/AVX assumption from an unqualified x64 target, improving compatibility with older
22
+ Intel machines and Rosetta validation without changing ARM64 builds.
23
+ - **Optional native search stays optional at build time.** TypeScript now has an explicit ambient contract for
24
+ `@zvec/zvec`, so npm can omit the unsupported macOS Intel binding without breaking `npm ci`; runtime loading
25
+ still falls back to the durable JSON search path when the native module is unavailable.
26
+
8
27
  ## 0.122.4 — 2026-07-14 — bounded agent lifecycle and chat delivery hardening
9
28
 
10
29
  - **An active agent can no longer renew itself forever.** Every CLI, headless, org, and Desktop/serve turn
package/SECURITY.md CHANGED
@@ -37,6 +37,10 @@ local user (who already has your shell).
37
37
  execution cannot approve those built-in paths past the check. `HARA_ALLOW_SENSITIVE_FILES=1` is an explicit
38
38
  launch-time exposure switch for one process: it removes the built-in denies and that process's shell
39
39
  protected-read preflight/Seatbelt mask.
40
+ - **Standalone launch configuration is closed.** Released Bun-compiled binaries explicitly disable runtime
41
+ loading of the working directory's `.env`, `bunfig.toml`, `package.json`, and `tsconfig.json`. This prevents
42
+ a project preload or ambient environment file from running/injecting values before Hara's own boundaries.
43
+ Native CI executes each release binary from a hostile fixture directory and fails if either path activates.
40
44
  - **Shell guardrails differ by platform.** With the protected-file policy enabled, shell admission statically
41
45
  rejects literal protected paths and environment-dump commands on every OS. On macOS, Hara additionally
42
46
  applies a Seatbelt read mask to existing
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nanhara/hara",
3
- "version": "0.122.4",
3
+ "version": "0.122.5",
4
4
  "description": "hara — a coding agent CLI that runs like an engineering org.",
5
5
  "bin": {
6
6
  "hara": "runtime-bootstrap.cjs"
@@ -45,7 +45,7 @@
45
45
  "start": "node runtime-bootstrap.cjs",
46
46
  "test": "npm run build && node --test --test-timeout=120000 test/*.test.mjs",
47
47
  "build:binary": "npm run build && bun scripts/build-binary.ts dist/bin/hara",
48
- "build:binaries": "npm run build && bun scripts/build-binary.ts dist/bin/hara-darwin-arm64 bun-darwin-arm64 && bun scripts/build-binary.ts dist/bin/hara-darwin-x64 bun-darwin-x64 && bun scripts/build-binary.ts dist/bin/hara-linux-x64 bun-linux-x64 && bun scripts/build-binary.ts dist/bin/hara-linux-arm64 bun-linux-arm64"
48
+ "build:binaries": "npm run build && bun scripts/build-binary.ts dist/bin/hara-darwin-arm64 bun-darwin-arm64 && bun scripts/build-binary.ts dist/bin/hara-darwin-x64 bun-darwin-x64-baseline && bun scripts/build-binary.ts dist/bin/hara-linux-x64 bun-linux-x64-baseline && bun scripts/build-binary.ts dist/bin/hara-linux-arm64 bun-linux-arm64"
49
49
  },
50
50
  "publishConfig": {
51
51
  "access": "public"