@einsia/agent-git 0.1.1 → 0.1.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 +43 -0
- package/README.md +36 -14
- package/npm/README.md +8 -1
- package/npm/lib/platform.js +4 -4
- package/npm/lib/run.js +1 -1
- package/package.json +6 -5
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,48 @@ 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.1.2] - 2026-09-12
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- **Session files with explicit staging.** Use `agit file` to add, inspect, commit,
|
|
14
|
+
retrieve and link deliverables in a selected branch without changing its conversation
|
|
15
|
+
VIEW. File staging remains separate from automatic turn settlement.
|
|
16
|
+
- **Windows x64 distribution.** Install the native Windows CLI through npm or
|
|
17
|
+
download the executable from the GitHub Release, including remote-control support.
|
|
18
|
+
- **More remote-control workflows.** Connect existing Codex conversations through
|
|
19
|
+
the native inbox, use OpenCode remote control and transcript snapshots, and navigate
|
|
20
|
+
between connected machines and their workspaces.
|
|
21
|
+
- **Richer history inspection.** Inspect saved VIEWs and LOGs, raw native JSONL and
|
|
22
|
+
archived evidence; compare semantic prefixes and unsettled native turns with `diff`.
|
|
23
|
+
- **Scoped search and integrity checks.** Search authenticated repository scopes,
|
|
24
|
+
inspect incomplete-result diagnostics, and run bounded, read-only `doctor` checks.
|
|
25
|
+
- **Safer import and review.** Choose native-session lineage explicitly, preview and
|
|
26
|
+
name sessions interactively, and review committed VIEWs with guarded scan remedies.
|
|
27
|
+
|
|
28
|
+
### Changed
|
|
29
|
+
|
|
30
|
+
- **Explicit session targeting.** Use `owner/repo@branch` or `AGIT_SESSION` for
|
|
31
|
+
automation. Interactive commands offer target selection; `agit switch` and implicit
|
|
32
|
+
workspace targeting are removed. Update scripts that depended on those defaults.
|
|
33
|
+
- **Structured agent output.** JSON output includes typed recovery actions, while
|
|
34
|
+
human output identifies verified targets and quiet mode suppresses progress output.
|
|
35
|
+
- Merge-agent exploration remains available as archived evidence and visible session
|
|
36
|
+
history without adding that exploration to the merged VIEW.
|
|
37
|
+
|
|
38
|
+
### Fixed
|
|
39
|
+
|
|
40
|
+
- Preserve Codex fork history, portable provider metadata, mixed-runtime sharing and
|
|
41
|
+
paired tool evidence during capture, resume and export.
|
|
42
|
+
- Preserve reference, network, authentication, policy and cancellation error categories;
|
|
43
|
+
bind credentials to the selected Hub and validate setup before applying changes.
|
|
44
|
+
- Keep failed remote API turns responsive, preserve shared-message authors and native
|
|
45
|
+
execution feedback, and support HTTP CONNECT proxies between `agitd` and the Hub.
|
|
46
|
+
- Validate imports before adoption, prevent duplicate runtime claims, guard resume
|
|
47
|
+
against tracking divergence, and preserve private-publication checks.
|
|
48
|
+
- Avoid repository-wide migration scans on clean stores and skip tags already present
|
|
49
|
+
on a verified remote during push.
|
|
50
|
+
|
|
9
51
|
## [0.1.1] - 2026-09-04
|
|
10
52
|
|
|
11
53
|
### Added
|
|
@@ -65,5 +107,6 @@ First public release.
|
|
|
65
107
|
per-platform packages for Linux and macOS on x64 and arm64, and GitHub Release
|
|
66
108
|
artifacts with `SHA256SUMS`.
|
|
67
109
|
|
|
110
|
+
[0.1.2]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.1.2
|
|
68
111
|
[0.1.1]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.1.1
|
|
69
112
|
[0.1.0]: https://github.com/Einsia/agent-git/releases/tag/agit-v0.1.0
|
package/README.md
CHANGED
|
@@ -11,13 +11,25 @@ cleaned up at any moment. `agit` puts snapshots and versions on top of them,
|
|
|
11
11
|
so "that conversation last Wednesday that finally cracked the bug" becomes
|
|
12
12
|
something you can find, continue, and hand to a teammate.
|
|
13
13
|
|
|
14
|
+
```text
|
|
15
|
+
agit choose a session to continue
|
|
16
|
+
agit new choose a repo and name a fresh conversation
|
|
17
|
+
agit import choose an existing runtime conversation to adopt
|
|
18
|
+
agit log choose a session and browse its history
|
|
19
|
+
agit push choose a saved session to publish
|
|
20
|
+
agit share choose a session and review link settings
|
|
21
|
+
agit open owner/repo@ref open a saved source, forking when needed
|
|
14
22
|
```
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
23
|
+
|
|
24
|
+
These bare commands open their interfaces in a human terminal. `agit resume`
|
|
25
|
+
continues the same session and never forks; `agit open` can start a new writable
|
|
26
|
+
session from a tag, historical point or another author's source. `agit run`
|
|
27
|
+
remains a compatibility alias for `open`.
|
|
28
|
+
|
|
29
|
+
Inside an adopted agent session, `agit commit` saves completed turns and
|
|
30
|
+
`agit push` publishes that session. For scripts, pass the target explicitly,
|
|
31
|
+
for example `agit push owner/repo@branch --json`. Directory branch pins do not
|
|
32
|
+
choose targets for `commit`, `push` or `share`.
|
|
21
33
|
|
|
22
34
|
On user-facing startup, `agit` checks for a newer release at most once a day and prints a
|
|
23
35
|
reminder to stderr; it never upgrades automatically. JSON/quiet/CI and internal hook/MCP paths
|
|
@@ -27,12 +39,18 @@ Adopting and recording the first version are one command — the in-between
|
|
|
27
39
|
state ("linked, but unversioned") means nothing to anyone. To mark a session
|
|
28
40
|
without versioning it (e.g. offline), pass `--link-only`.
|
|
29
41
|
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`--
|
|
34
|
-
|
|
35
|
-
|
|
42
|
+
Use a full native session ID and an explicit runtime and destination for lineage discovery.
|
|
43
|
+
The terminal offers verified local bases, independent import, or cancellation. Noninteractive
|
|
44
|
+
calls return choices without writing; pass `--onto <ref>` or `--independent` to select a path.
|
|
45
|
+
`--propose-lineage` prints a read-only report without adopting the session.
|
|
46
|
+
Inspecting lineage in an existing repository requires NUL-framed Git worktree output,
|
|
47
|
+
normally available in Git 2.36 or newer. An unsupported Git reports `git_worktree_format`;
|
|
48
|
+
explicit `--onto`, `--independent`, and `--link-only` imports retain their ordinary checks.
|
|
49
|
+
|
|
50
|
+
`agit clone` fetches repository history locally. Use `agit open` or `agit resume`
|
|
51
|
+
to start a runtime. A clone is **read-only by default** on the Hub: nothing is
|
|
52
|
+
created in your name and `origin` points at the source. `agit clone --mine`
|
|
53
|
+
creates your copy, repoints `origin` and remembers the source as `upstream`.
|
|
36
54
|
|
|
37
55
|
The full command list is in `agit --help`.
|
|
38
56
|
|
|
@@ -49,9 +67,13 @@ agit --version
|
|
|
49
67
|
|
|
50
68
|
Both routes install a prebuilt binary — no Rust toolchain required. npm
|
|
51
69
|
picks the platform sub-package matching your `os`/`cpu`; on platforms with no
|
|
52
|
-
prebuilt binary (e.g.
|
|
70
|
+
prebuilt binary (e.g. FreeBSD) running `agit` prints the source-build recipe.
|
|
53
71
|
Details and environment variables: [`npm/README.md`](npm/README.md).
|
|
54
72
|
|
|
73
|
+
Windows x64 packages include the local RC daemon. Its control channel uses a local named
|
|
74
|
+
pipe restricted to the current Windows user. RC state requires a private, user-owned
|
|
75
|
+
directory; shared or redirected RC paths are rejected.
|
|
76
|
+
|
|
55
77
|
pnpm (v10+) does not run dependency install scripts by default, so the
|
|
56
78
|
automatic `agit setup` is skipped there — run `agit setup` once yourself
|
|
57
79
|
after installing.
|
|
@@ -84,7 +106,7 @@ the binary to `~/.local/bin/agit`. Common flags:
|
|
|
84
106
|
```
|
|
85
107
|
|
|
86
108
|
To build a binary whose built-in hub is the staging deployment, set the build-time default
|
|
87
|
-
explicitly. Runtime `AGIT_HUB_URL` and `agit config
|
|
109
|
+
explicitly. Runtime `AGIT_HUB_URL` and `agit config hub.url ...` still take precedence:
|
|
88
110
|
|
|
89
111
|
```sh
|
|
90
112
|
AGIT_DEFAULT_HUB_URL=https://staging.agent-git.com cargo build --release --locked
|
package/npm/README.md
CHANGED
|
@@ -40,6 +40,7 @@ The hub (**AgentGit**) is not in this package; it deploys separately.
|
|
|
40
40
|
| Linux | aarch64/arm64 | `@einsia/agent-git-linux-arm64` |
|
|
41
41
|
| macOS | x86_64 | `@einsia/agent-git-darwin-x64` |
|
|
42
42
|
| macOS | arm64 | `@einsia/agent-git-darwin-arm64` |
|
|
43
|
+
| Windows | x86_64 | `@einsia/agent-git-win32-x64` |
|
|
43
44
|
|
|
44
45
|
**Linux binaries are musl static-linked — no glibc floor.** Verified on Alpine,
|
|
45
46
|
Amazon Linux 2 (glibc 2.26), Debian 11/12, Ubuntu 20.04–24.04, x86_64 and
|
|
@@ -48,7 +49,7 @@ arm64. No more `libc.so.6: version 'GLIBC_2.xx' not found`.
|
|
|
48
49
|
On macOS, if Node runs under Rosetta (it reports itself as x64) the installer
|
|
49
50
|
detects it and installs the arm64 build.
|
|
50
51
|
|
|
51
|
-
Unsupported
|
|
52
|
+
Unsupported operating system and architecture pairs get no prebuilt binary: running
|
|
52
53
|
`agit` prints build-from-source instructions. On WSL, the Linux binary works.
|
|
53
54
|
|
|
54
55
|
## Failure behavior
|
|
@@ -73,3 +74,9 @@ Unsupported platforms (including Windows) get no prebuilt binary: running
|
|
|
73
74
|
`agit upgrade` asks the hub for the latest CLI version and downloads the
|
|
74
75
|
platform package tarball straight from the npm registry, verified against the
|
|
75
76
|
registry's SRI (sha512) before anything is replaced.
|
|
77
|
+
|
|
78
|
+
Windows packages contain `agit.exe`. The `create-agit` installer writes it to
|
|
79
|
+
`%USERPROFILE%\.local\bin`; add that directory to your user PATH if the installer
|
|
80
|
+
reports that it is missing. Windows source builds need Rust and the MSVC C/C++
|
|
81
|
+
toolchain. The local RC daemon uses a current-user Windows named pipe and private
|
|
82
|
+
RC state. It refuses shared or redirected RC paths instead of changing their permissions.
|
package/npm/lib/platform.js
CHANGED
|
@@ -10,13 +10,13 @@ const { spawnSync } = require('child_process');
|
|
|
10
10
|
//
|
|
11
11
|
// Linux is musl static linking: a gnu artifact built on ubuntu:24.04 locks in
|
|
12
12
|
// GLIBC_2.39 and nothing starts on older distributions; musl's static-pie has
|
|
13
|
-
// no interpreter, so it has no glibc floor.
|
|
14
|
-
// produces no windows artifacts.
|
|
13
|
+
// no interpreter, so it has no glibc floor.
|
|
15
14
|
const KEYS = {
|
|
16
15
|
'linux/x64': 'linux-x64',
|
|
17
16
|
'linux/arm64': 'linux-arm64',
|
|
18
17
|
'darwin/x64': 'darwin-x64',
|
|
19
18
|
'darwin/arm64': 'darwin-arm64',
|
|
19
|
+
'win32/x64': 'win32-x64',
|
|
20
20
|
};
|
|
21
21
|
|
|
22
22
|
// Platform key → Rust target triple (CI names artifact archives by triple).
|
|
@@ -25,6 +25,7 @@ const TRIPLES = {
|
|
|
25
25
|
'linux-arm64': 'aarch64-unknown-linux-musl',
|
|
26
26
|
'darwin-x64': 'x86_64-apple-darwin',
|
|
27
27
|
'darwin-arm64': 'aarch64-apple-darwin',
|
|
28
|
+
'win32-x64': 'x86_64-pc-windows-msvc',
|
|
28
29
|
};
|
|
29
30
|
|
|
30
31
|
function packageName(key) {
|
|
@@ -42,8 +43,7 @@ function realArch(nodePlatform, nodeArch) {
|
|
|
42
43
|
return !r.error && r.status === 0 && (r.stdout || '').trim() === '1' ? 'arm64' : arch;
|
|
43
44
|
}
|
|
44
45
|
|
|
45
|
-
//
|
|
46
|
-
// example) returns null and the caller picks the wording.
|
|
46
|
+
// Unsupported operating system and architecture pairs have no platform key.
|
|
47
47
|
function packageKey(nodePlatform, nodeArch) {
|
|
48
48
|
const platform = nodePlatform || process.platform;
|
|
49
49
|
const arch = nodeArch === undefined ? realArch() : nodeArch;
|
package/npm/lib/run.js
CHANGED
|
@@ -21,7 +21,7 @@ function run() {
|
|
|
21
21
|
|
|
22
22
|
if (!bin) {
|
|
23
23
|
// npm skipped the optional dep for this os/cpu = this platform has no
|
|
24
|
-
// prebuilt artifact (
|
|
24
|
+
// prebuilt artifact (freebsd, ...). This block is often everything
|
|
25
25
|
// the user sees, so on its own it has to say why there is no binary and
|
|
26
26
|
// which command fixes it.
|
|
27
27
|
log.error(`no prebuilt agit binary for ${process.platform}/${process.arch}.`);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@einsia/agent-git",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.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,9 +49,10 @@
|
|
|
49
49
|
"access": "public"
|
|
50
50
|
},
|
|
51
51
|
"optionalDependencies": {
|
|
52
|
-
"@einsia/agent-git-linux-x64": "0.1.
|
|
53
|
-
"@einsia/agent-git-linux-arm64": "0.1.
|
|
54
|
-
"@einsia/agent-git-darwin-x64": "0.1.
|
|
55
|
-
"@einsia/agent-git-darwin-arm64": "0.1.
|
|
52
|
+
"@einsia/agent-git-linux-x64": "0.1.2",
|
|
53
|
+
"@einsia/agent-git-linux-arm64": "0.1.2",
|
|
54
|
+
"@einsia/agent-git-darwin-x64": "0.1.2",
|
|
55
|
+
"@einsia/agent-git-darwin-arm64": "0.1.2",
|
|
56
|
+
"@einsia/agent-git-win32-x64": "0.1.2"
|
|
56
57
|
}
|
|
57
58
|
}
|