@git-stunts/git-cas 6.5.5 → 6.5.7
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 +33 -0
- package/README.md +14 -5
- package/UPGRADING.md +35 -0
- package/bin/ui/context.js +18 -51
- package/bin/ui/dashboard-view.js +294 -256
- package/bin/ui/dashboard.js +352 -283
- package/bin/ui/progress.js +83 -23
- package/bin/ui/theme.js +39 -12
- package/build-info.json +2 -2
- package/docs/releases/v6.5.6.md +55 -0
- package/docs/releases/v6.5.7.md +56 -0
- package/package.json +7 -5
- package/src/infrastructure/adapters/GitPersistenceAdapter.js +48 -16
- package/src/infrastructure/adapters/GitRefAdapter.js +62 -32
- package/src/package-version.js +1 -1
- package/src/ports/GitRefPort.js +6 -0
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,39 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [6.5.7] — 2026-08-23
|
|
11
|
+
|
|
12
|
+
### Performance
|
|
13
|
+
|
|
14
|
+
- **Bounded stream session reads** - `readBlobStream()` now reuses the
|
|
15
|
+
persistent `cat-file` session for blobs at or below a fixed 10 MiB ceiling,
|
|
16
|
+
removing process-per-payload startup for small reads. Larger objects retain
|
|
17
|
+
the genuine one-shot streaming path without a speculative content read, and
|
|
18
|
+
plumbing without typed sessions retains the existing fallback.
|
|
19
|
+
|
|
20
|
+
## [6.5.6] — 2026-07-30
|
|
21
|
+
|
|
22
|
+
### Changed
|
|
23
|
+
|
|
24
|
+
- **Bijou 7 framed cockpit** - updates the coherent Bijou dependency family to
|
|
25
|
+
7.2.0 and moves terminal lifecycle, shell chrome, help, command/search
|
|
26
|
+
palettes, settings, notifications, performance telemetry, and quit
|
|
27
|
+
confirmation to the hosted `createFramedApp()` boundary.
|
|
28
|
+
|
|
29
|
+
### Fixed
|
|
30
|
+
|
|
31
|
+
- **Deterministic checked-ref conflicts** - failed checked updates, atomic
|
|
32
|
+
anchors, and checked deletes now classify concurrency from structured
|
|
33
|
+
post-failure ref posture instead of Git's human-readable diagnostics.
|
|
34
|
+
Operational failures remain unchanged when the observed ref still satisfies
|
|
35
|
+
the attempted precondition.
|
|
36
|
+
- **Shared progress cursor ownership** - store and restore progress now use
|
|
37
|
+
Bijou's reference-counted cursor guard and render the initial zero state
|
|
38
|
+
without counting it as a processed chunk.
|
|
39
|
+
- **Audited cockpit contrast** - foreground/background choices selected with
|
|
40
|
+
Design Book are registered as semantic theme tokens and verified at WCAG AA
|
|
41
|
+
contrast by Bijou's theme doctor.
|
|
42
|
+
|
|
10
43
|
## [6.5.5] — 2026-07-26
|
|
11
44
|
|
|
12
45
|
### Fixed
|
package/README.md
CHANGED
|
@@ -37,10 +37,10 @@ Unlike traditional LFS which moves files to external servers, `git-cas` treats t
|
|
|
37
37
|
or publish them with generation-scoped evidence instead of managing Git
|
|
38
38
|
objects, trees, or payload OIDs directly.
|
|
39
39
|
- **Bounded Git Process Reuse**: Immutable object metadata and tree reads reuse
|
|
40
|
-
typed Git sessions behind the adapter
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
40
|
+
typed Git sessions behind the adapter. On session-capable adapters, streaming
|
|
41
|
+
blob reads at or below a fixed 10 MiB ceiling use one bounded session read;
|
|
42
|
+
larger payloads retain the genuine one-shot streaming path. Explicitly
|
|
43
|
+
bounded page batches amortize writes without changing content identity.
|
|
44
44
|
- **Key Lifecycle**: Envelope encryption separates DEKs from KEKs. Rotate passphrases across an entire vault without re-encrypting data blobs. Privacy mode HMAC-hashes slug names to prevent metadata discovery.
|
|
45
45
|
- **Runtime-Adaptive**: A single core supports Node.js 22+, Bun, and Deno through a strict hexagonal port architecture with runtime-specific crypto adapters.
|
|
46
46
|
|
|
@@ -49,7 +49,7 @@ Unlike traditional LFS which moves files to external servers, `git-cas` treats t
|
|
|
49
49
|
Existing v5 users should read [UPGRADING.md](./UPGRADING.md) and run
|
|
50
50
|
`npm run upgrade` in dry-run mode before restoring old encrypted vault entries.
|
|
51
51
|
For the release overview, see the
|
|
52
|
-
[v6.5.
|
|
52
|
+
[v6.5.7 Release Notes](./docs/releases/v6.5.7.md).
|
|
53
53
|
|
|
54
54
|
### 1. CLI Usage
|
|
55
55
|
|
|
@@ -70,6 +70,11 @@ Navigate your stored assets through the reader-first interactive dashboard.
|
|
|
70
70
|
git-cas vault dashboard
|
|
71
71
|
```
|
|
72
72
|
|
|
73
|
+
The framed cockpit keeps Explorer, Atlas, and Operations in one shared session.
|
|
74
|
+
Use `/` to search assets, `Ctrl+P` for the command palette, `?` for keyboard
|
|
75
|
+
help, `F2` for session settings, and `q` for a confirmed exit. Noninteractive
|
|
76
|
+
invocations retain the plain tab-separated listing.
|
|
77
|
+
|
|
73
78
|
### 3. Library Ingress
|
|
74
79
|
|
|
75
80
|
Integrate managed blob storage directly into your TypeScript or JavaScript application.
|
|
@@ -223,6 +228,10 @@ All three runtimes are tested in CI on every push. The hexagonal architecture is
|
|
|
223
228
|
retained under one exact staging-workspace generation.
|
|
224
229
|
- **[v6.5.5 Release Notes](./docs/releases/v6.5.5.md)**: Self-contained
|
|
225
230
|
identity for git-cas-owned commits in unconfigured bare repositories.
|
|
231
|
+
- **[v6.5.6 Release Notes](./docs/releases/v6.5.6.md)**: Bijou 7 hosted
|
|
232
|
+
cockpit ownership and deterministic checked-ref conflict classification.
|
|
233
|
+
- **[v6.5.7 Release Notes](./docs/releases/v6.5.7.md)**: Bounded persistent
|
|
234
|
+
sessions for small streaming blob reads while large payloads remain streamed.
|
|
226
235
|
- **[Upgrading](./UPGRADING.md)**: Migration guide for v5 → v6.
|
|
227
236
|
- **[Changelog](./CHANGELOG.md)**: Version history and migration notes.
|
|
228
237
|
|
package/UPGRADING.md
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
|
|
3
3
|
v6.0.0 is a major release that simplifies the encryption model, hardens security defaults, and cleans up the architecture. This guide covers every breaking change and what you need to do.
|
|
4
4
|
|
|
5
|
+
## v6.5.6 To v6.5.7
|
|
6
|
+
|
|
7
|
+
v6.5.7 changes no public API, package export, object identity, manifest, ref,
|
|
8
|
+
or retention contract and requires no application or stored-data migration.
|
|
9
|
+
|
|
10
|
+
On session-capable Git persistence adapters, `readBlobStream()` now inspects
|
|
11
|
+
immutable object metadata through the persistent `cat-file` session. Blobs at
|
|
12
|
+
or below a fixed 10 MiB ceiling are returned as one bounded chunk through that
|
|
13
|
+
session. This changes backpressure granularity for admitted small reads, but
|
|
14
|
+
the method remains an `AsyncIterable` with identical bytes and errors.
|
|
15
|
+
|
|
16
|
+
Objects above 10 MiB retain the genuine one-shot streaming path and are never
|
|
17
|
+
speculatively session-read. Raising `maxBlobSize` cannot raise this fixed
|
|
18
|
+
ceiling. Adapters without typed sessions, plus exceptional metadata or bounded
|
|
19
|
+
read failures, retain the existing one-shot fallback.
|
|
20
|
+
|
|
21
|
+
See [v6.5.7 Release Notes](./docs/releases/v6.5.7.md) for the measured process
|
|
22
|
+
topology, fixed residency boundary, and compatibility details.
|
|
23
|
+
|
|
24
|
+
## v6.5.5 To v6.5.6
|
|
25
|
+
|
|
26
|
+
v6.5.6 changes no public API or stored-data schema and requires no migration.
|
|
27
|
+
Interactive terminals now run the cockpit through Bijou 7.2's hosted
|
|
28
|
+
`FramedApp`; noninteractive output and machine-readable command behavior are
|
|
29
|
+
unchanged.
|
|
30
|
+
|
|
31
|
+
Checked ref updates, atomic anchors, and checked deletes now classify
|
|
32
|
+
concurrency from structured post-failure ref posture instead of Git's
|
|
33
|
+
human-readable diagnostics. Existing callers keep the same boolean and
|
|
34
|
+
`GIT_REF_CONFLICT` contracts. Operational failures remain unchanged when the
|
|
35
|
+
attempted ref precondition still holds.
|
|
36
|
+
|
|
37
|
+
See [v6.5.6 Release Notes](./docs/releases/v6.5.6.md) for the framed-cockpit,
|
|
38
|
+
progress, contrast, and deterministic conflict details.
|
|
39
|
+
|
|
5
40
|
## v6.5.4 To v6.5.5
|
|
6
41
|
|
|
7
42
|
v6.5.5 changes no public API and requires no stored-data migration. New
|
package/bin/ui/context.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
import { createBijou } from '@flyingrobots/bijou';
|
|
6
|
-
import {
|
|
6
|
+
import { chalkStyle, createNodeContext, nodeIO, nodeRuntime } from '@flyingrobots/bijou-node';
|
|
7
7
|
import { GIT_CAS_THEME } from './theme.js';
|
|
8
8
|
|
|
9
9
|
/** @type {import('@flyingrobots/bijou').BijouContext | null} */
|
|
@@ -19,13 +19,12 @@ export function getCliContext() {
|
|
|
19
19
|
if (ctx) {
|
|
20
20
|
return ctx;
|
|
21
21
|
}
|
|
22
|
-
|
|
23
|
-
const noColor = runtime.env('NO_COLOR') !== undefined;
|
|
24
|
-
ctx = createBijou({
|
|
25
|
-
runtime,
|
|
26
|
-
io: stderrIO(),
|
|
27
|
-
style: chalkStyle(noColor),
|
|
22
|
+
ctx = createNodeContext({
|
|
28
23
|
theme: GIT_CAS_THEME,
|
|
24
|
+
nodeIO: {
|
|
25
|
+
stdout: process.stderr,
|
|
26
|
+
stderr: process.stderr,
|
|
27
|
+
},
|
|
29
28
|
});
|
|
30
29
|
return ctx;
|
|
31
30
|
}
|
|
@@ -71,52 +70,20 @@ export function detectCliTuiMode(runtime) {
|
|
|
71
70
|
export function createCliTuiContext(options = {}) {
|
|
72
71
|
const runtime = options.runtime || nodeRuntime();
|
|
73
72
|
const noColor = runtime.env('NO_COLOR') !== undefined;
|
|
74
|
-
const base =
|
|
75
|
-
runtime
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
73
|
+
const base =
|
|
74
|
+
options.runtime || options.style
|
|
75
|
+
? createBijou({
|
|
76
|
+
runtime,
|
|
77
|
+
io: options.io || nodeIO(),
|
|
78
|
+
style: options.style || chalkStyle({ noColor }),
|
|
79
|
+
theme: GIT_CAS_THEME,
|
|
80
|
+
})
|
|
81
|
+
: createNodeContext({
|
|
82
|
+
theme: GIT_CAS_THEME,
|
|
83
|
+
...(options.io ? { io: options.io } : {}),
|
|
84
|
+
});
|
|
80
85
|
return {
|
|
81
86
|
...base,
|
|
82
87
|
mode: detectCliTuiMode(runtime),
|
|
83
88
|
};
|
|
84
89
|
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* @returns {import('@flyingrobots/bijou').IOPort}
|
|
88
|
-
*/
|
|
89
|
-
function stderrIO() {
|
|
90
|
-
return {
|
|
91
|
-
/** @param {string} data */
|
|
92
|
-
write(data) {
|
|
93
|
-
process.stderr.write(data);
|
|
94
|
-
},
|
|
95
|
-
question() {
|
|
96
|
-
throw new Error('question() not supported in CLI context');
|
|
97
|
-
},
|
|
98
|
-
rawInput() {
|
|
99
|
-
throw new Error('rawInput() not supported in CLI context');
|
|
100
|
-
},
|
|
101
|
-
/** @param {(cols: number, rows: number) => void} callback */
|
|
102
|
-
onResize(callback) {
|
|
103
|
-
const handler = () => {
|
|
104
|
-
callback(process.stderr.columns ?? 80, process.stderr.rows ?? 24);
|
|
105
|
-
};
|
|
106
|
-
process.stderr.on('resize', handler);
|
|
107
|
-
return { dispose() { process.stderr.removeListener('resize', handler); } };
|
|
108
|
-
},
|
|
109
|
-
/**
|
|
110
|
-
* @param {() => void} callback
|
|
111
|
-
* @param {number} ms
|
|
112
|
-
*/
|
|
113
|
-
setInterval(callback, ms) {
|
|
114
|
-
const id = globalThis.setInterval(callback, ms);
|
|
115
|
-
return { dispose() { globalThis.clearInterval(id); } };
|
|
116
|
-
},
|
|
117
|
-
readFile() { throw new Error('readFile() not supported'); },
|
|
118
|
-
readDir() { throw new Error('readDir() not supported'); },
|
|
119
|
-
/** @param {string[]} segments */
|
|
120
|
-
joinPath(...segments) { return segments.join('/'); },
|
|
121
|
-
};
|
|
122
|
-
}
|