@einsia/agent-git 0.2.0 → 0.2.2

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
@@ -6,6 +6,81 @@ Every notable change to agit, the AgentGit CLI, by release. The format follows
6
6
  its [GitHub Release](https://github.com/Einsia/agent-git/releases), and the
7
7
  `@einsia/agent-git` npm package ships this file.
8
8
 
9
+ ## [0.2.2] - 2026-09-19
10
+
11
+ ### Added
12
+
13
+ - **Shared workspace controllers.** Accept project- and session-scoped authority
14
+ from the Hub controller, so collaborators can operate a shared session without
15
+ separate device grants. This requires a Hub with shared controller support;
16
+ personal peer/Cloud connections retain their existing protocol.
17
+ - Expose native model and reasoning-effort controls through peer remote control.
18
+ - Protect detected secrets automatically with reversible, repository-local
19
+ placeholders before saving or publishing session content.
20
+
21
+ ### Changed
22
+
23
+ - Keep native controls responsive while prepared settlement completes, reuse
24
+ healthy session worktrees and Hub connections, and replace repeated Git child
25
+ processes with bounded local object reads.
26
+ - Start tunnel transport independently of repository storage and overlap Cloud
27
+ admission and peer setup to reduce connection overhead.
28
+ - Official Hub usage requires usage statistics; installation attempts and stages
29
+ are included in the documented collection policy. Other Hubs retain their
30
+ opt-out controls. See [usage statistics](docs/telemetry.md).
31
+
32
+ ### Fixed
33
+
34
+ - Keep shared native subscriptions attached to controller authority, isolate each
35
+ viewer's replay, and suppress duplicate events on Cloud utility routes.
36
+ - Preserve early session events, uncertain command receipt identities, native
37
+ titles, and saved session identities outside the active catalog.
38
+ - Correct Windows path component handling and directory navigation.
39
+ - Distinguish stale daemon records from reused process IDs, recover stopped
40
+ daemons after upgrades, and enforce private state permissions under permissive
41
+ umasks.
42
+ - Preserve fresh native history during model reads and settlement without
43
+ blocking read-only controls on repository metadata work.
44
+
45
+ ## [0.2.1] - 2026-09-17
46
+
47
+ ### Added
48
+
49
+ - **Native Windows peer remote control.** Windows supports the same controller,
50
+ executor and Cloud tunnel protocol as Linux and macOS, using a current-user
51
+ named pipe for local owner RPC.
52
+ - **Bundled Git and Git LFS.** Official distribution binaries include their Git
53
+ runtime, so session version control does not require a separate Git installation.
54
+
55
+ ### Changed
56
+
57
+ - **Owner-only Cloud access by default.** Run `agit login`, then
58
+ `agit rc start --detach`. Startup registers the device and enables remote control
59
+ for the signed-in owner, without a separate enrollment command. Use the same Hub
60
+ account in Web Workspaces or the desktop app. This does not grant public access.
61
+ - **Remove the paired RC transport.** Startup and device management use peer/Cloud
62
+ only. Users of the paired default in 0.2.0 must upgrade; the existing Linux 0.2.0
63
+ peer/Cloud protocol remains supported. Server retirement follows verification of
64
+ the new Windows and Linux release artifacts.
65
+ - Reuse Cloud HTTP connections, overlap admission checks with tunnel setup, and
66
+ race resolved TCP addresses to avoid waiting on a slow address before trying another.
67
+ - Reduce repeated repository checks and keep repository preparation and background
68
+ metadata work off the native session command loop. Record startup phase timings
69
+ without logging prompt contents.
70
+
71
+ ### Fixed
72
+
73
+ - Prevent detached Windows daemon helpers from opening console windows; release
74
+ inherited caller pipes when starting in the background.
75
+ - Preserve tunnel failure details and renew Cloud authority without repeatedly
76
+ reconnecting healthy idle sessions.
77
+ - Recover a revoked device registration when its owner explicitly starts RC again;
78
+ background reconnects do not undo revocation.
79
+ - Read history and goals from fresh Codex sessions before a transcript file exists,
80
+ and isolate history readers from snapshot capture and session control.
81
+ - Preserve native history identity and snapshot consistency, and protect generated
82
+ session observations with repository secret rules before settlement.
83
+
9
84
  ## [0.2.0] - 2026-09-16
10
85
 
11
86
  ### Added
@@ -162,6 +237,7 @@ First public release.
162
237
  per-platform packages for Linux and macOS on x64 and arm64, and GitHub Release
163
238
  artifacts with `SHA256SUMS`.
164
239
 
240
+ [0.2.1]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.2.1
165
241
  [0.2.0]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.2.0
166
242
  [0.1.2]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.1.2
167
243
  [0.1.1]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.1.1
package/README.md CHANGED
@@ -69,9 +69,10 @@ picks the platform sub-package matching your `os`/`cpu`; on platforms with no
69
69
  prebuilt binary (e.g. FreeBSD) running `agit` prints the source-build recipe.
70
70
  Details and environment variables: [`npm/README.md`](npm/README.md).
71
71
 
72
- Windows x64 packages include the local RC daemon. Its control channel uses a local named
73
- pipe restricted to the current Windows user. RC state requires a private, user-owned
74
- directory; shared or redirected RC paths are rejected.
72
+ Windows x64 packages include the native peer RC daemon. On Windows, Linux and macOS, run
73
+ `agit login` followed by `agit rc start --detach` to register the device and allow your own
74
+ account to control it from Workspaces. Windows owner RPC uses a local named pipe restricted
75
+ to the current user. RC state requires a private, user-owned directory.
75
76
 
76
77
  pnpm (v10+) does not run dependency install scripts by default, so the
77
78
  automatic `agit setup` is skipped there — run `agit setup` once yourself
@@ -81,8 +82,10 @@ The Linux artifact is **musl static-linked**, so no minimum glibc — the
81
82
  release pipeline runs every Linux binary inside an Alpine / Amazon Linux /
82
83
  Debian / Ubuntu container matrix before publishing.
83
84
 
84
- You also need **git >= 2.28** (repo init uses `git init --initial-branch`).
85
- Ubuntu 20.04 ships 2.25 the installer prints a warning.
85
+ Prebuilt binaries include Git and Git LFS, extracted into a private cache on first
86
+ use. Your shell PATH and global Git configuration stay unchanged. Source builds
87
+ use system Git; `AGIT_USE_SYSTEM_GIT=1` selects it in a prebuilt binary too.
88
+ See [runtime configuration and source prerequisites](docs/01_setup.md).
86
89
 
87
90
  > Do not install `@einsia/agentgit` (no hyphen) — that is the pre-rewrite
88
91
  > CLI; its protocol does not match this branch and it will not work.
@@ -160,16 +163,15 @@ The section becomes the GitHub Release body (`scripts/release-notes.mjs` extract
160
163
  `release.yml`, with repository-relative links pinned to the release tag) and ships inside
161
164
  the `@einsia/agent-git` package.
162
165
 
163
- After the source release commit passes CI and is synchronized to GitHub `main`,
164
- verify the mirrored files and create the tag in that GitHub checkout. The mirror
165
- rewrites commit IDs, so the source repository's SHA is not the release SHA.
166
- Pushing the tag to GitHub runs the whole chain binaries first, npm right after:
166
+ After the source release commit passes CI, merge it into GitLab `main`. Wait for
167
+ that pipeline's development builds and `mirror:github`, then run its manual
168
+ `release:github-tag` job. CI verifies the recorded source-to-mirror mapping and
169
+ creates `agit-v<version>` on the public mirror commit. Release tags are immutable;
170
+ a stale pipeline cannot publish after either `main` moves.
167
171
 
168
- ```sh
169
- # Run from the verified Einsia/agent-git GitHub mirror checkout.
170
- git tag agit-v0.1.0
171
- git push git@github.com:Einsia/agent-git.git refs/tags/agit-v0.1.0
172
- ```
172
+ The mirror rewrites commit IDs, so the source SHA is not the release SHA. Do not
173
+ push release tags directly to GitHub. The CI-created tag starts the GitHub Release
174
+ workflow, which builds the binaries and then triggers npm publication.
173
175
 
174
176
  Distribution to users runs through the npm registry: each target ships as a
175
177
  platform sub-package (`@einsia/agent-git-linux-x64` and friends, gated by
package/npm/README.md CHANGED
@@ -26,6 +26,13 @@ the platform sub-package matching your `os`/`cpu` via `optionalDependencies`
26
26
  that execs that binary with argv/stdio/exit-code forwarded, and `postinstall`
27
27
  runs `agit setup` once to wire skills, hooks, MCP and AGENTS.md.
28
28
 
29
+ The executable contains Git and Git LFS. On first use it extracts them under
30
+ `$AGIT_HOME/git-runtime` (default `~/.agit/git-runtime`), with no runtime download.
31
+ Only AgentGit's child processes use that private runtime; your shell PATH and
32
+ global Git configuration are unchanged. Copying or upgrading the single executable
33
+ also carries its Git runtime. External credential helpers and extensions may still
34
+ need your local tools; `AGIT_USE_SYSTEM_GIT=1` uses your system Git installation.
35
+
29
36
  pnpm (v10+) blocks dependency install scripts unless approved, so under pnpm
30
37
  the automatic `agit setup` does not run — run it once yourself after
31
38
  installing (or `pnpm approve-builds -g` and reinstall).
@@ -68,6 +75,7 @@ Unsupported operating system and architecture pairs get no prebuilt binary: runn
68
75
  | `AGIT_FORCE_INSTALL` | Also run postinstall inside the source checkout (CI smoke tests). |
69
76
  | `AGIT_HUB_URL` | Point the CLI at another hub (default `https://agent-git.com`). |
70
77
  | `AGIT_NPM_REGISTRY` | Registry `agit upgrade` downloads platform packages from. |
78
+ | `AGIT_USE_SYSTEM_GIT` | Set to `1` to use system Git and Git LFS instead of the bundled runtime. |
71
79
 
72
80
  ## Upgrading
73
81
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@einsia/agent-git",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "Version control for agent sessions — the agit CLI plus skills/hooks/MCP wiring for Claude Code, Codex, OpenCode and Cursor. The AgentGit hub deploys separately.",
5
5
  "keywords": [
6
6
  "agit",
@@ -49,10 +49,10 @@
49
49
  "access": "public"
50
50
  },
51
51
  "optionalDependencies": {
52
- "@einsia/agent-git-linux-x64": "0.2.0",
53
- "@einsia/agent-git-linux-arm64": "0.2.0",
54
- "@einsia/agent-git-darwin-x64": "0.2.0",
55
- "@einsia/agent-git-darwin-arm64": "0.2.0",
56
- "@einsia/agent-git-win32-x64": "0.2.0"
52
+ "@einsia/agent-git-linux-x64": "0.2.2",
53
+ "@einsia/agent-git-linux-arm64": "0.2.2",
54
+ "@einsia/agent-git-darwin-x64": "0.2.2",
55
+ "@einsia/agent-git-darwin-arm64": "0.2.2",
56
+ "@einsia/agent-git-win32-x64": "0.2.2"
57
57
  }
58
58
  }