sediment-cli 0.7.0__tar.gz → 0.8.0__tar.gz
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.
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/PKG-INFO +5 -5
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/pyproject.toml +5 -5
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/README.md +9 -4
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/index.ts +8 -2
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/package.json +2 -2
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/attribution.py +1 -1
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/cli.py +9 -7
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/local_postgres.py +5 -5
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/transcript.py +459 -148
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli.py +30 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_delivery_transport.py +14 -3
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_installed_wheel.py +1 -1
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-compute.txt +5 -2
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/sediment.txt +1 -1
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/.gitignore +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/LICENSE +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/README.md +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/hatch_build.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/__init__.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/LICENSE +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/lib/contract.ts +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/lib/process.ts +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/lib/provider.ts +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/lib/register.ts +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/_pi/lib/retrieval.ts +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/agent_guide.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/client.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/delivery.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/evidence.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/sediment_cli/ui.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/conftest.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_agent_guide.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_capture_authority.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_db.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_evidence.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_evidence_integration.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_help.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_libpq_unavailable.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_remote.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_cli_ui.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_consumer_profile_cli.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_demo_verb.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_e2e_quickstart.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_local_postgres.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/test_server_migration.py +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/commit.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/db-check.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/db-provision.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/db-status.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/db-upgrade.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/db.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/delivery-enqueue.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/delivery-replay.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/delivery-status.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/delivery.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/demo.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/derive.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/doctor.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/evidence-fetch.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/evidence-inspect.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/evidence-inventory.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/evidence.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/export-diff-sft.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/export-dpo.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/export-recovery.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/export-rlvr.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/export-sft.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/export.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/facts.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/guide.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/install.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/login.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/logout.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/mirror-gc.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/quarantine-inference-calls.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/quarantine-log.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/quarantine.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/release.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/repair-notes.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-abandonment.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-attribution-share.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-dataset-diagnostics.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-label-confidence-inspection.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-lifecycle.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-merge-retention.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-model.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-precision.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report-recovery-yield.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/report.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/server.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/stamp.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/transcript.txt +0 -0
- {sediment_cli-0.7.0 → sediment_cli-0.8.0}/tests/testdata/help/uninstall.txt +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.5
|
|
2
2
|
Name: sediment-cli
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.8.0
|
|
4
4
|
Summary: A self-hosted evidence store for coding agents: the sediment CLI and local server
|
|
5
5
|
Project-URL: Source, https://github.com/sediment-ai/sediment
|
|
6
6
|
Project-URL: Documentation, https://docs.sediment.so
|
|
@@ -10,10 +10,10 @@ License-Expression: AGPL-3.0-or-later
|
|
|
10
10
|
License-File: LICENSE
|
|
11
11
|
Requires-Python: >=3.12
|
|
12
12
|
Requires-Dist: httpx>=0.27
|
|
13
|
-
Requires-Dist: sediment-api==0.
|
|
14
|
-
Requires-Dist: sediment-core==0.
|
|
15
|
-
Requires-Dist: sediment-derive==0.
|
|
16
|
-
Requires-Dist: sediment-export==0.
|
|
13
|
+
Requires-Dist: sediment-api==0.8.0
|
|
14
|
+
Requires-Dist: sediment-core==0.8.0
|
|
15
|
+
Requires-Dist: sediment-derive==0.8.0
|
|
16
|
+
Requires-Dist: sediment-export==0.8.0
|
|
17
17
|
Description-Content-Type: text/markdown
|
|
18
18
|
|
|
19
19
|
# sediment-cli
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
# Depends on sediment-api deliberately: the operator verbs are DB-local by
|
|
6
6
|
# design (ADR 0001) and `server`/reports/mirror-gc forward into it.
|
|
7
7
|
name = "sediment-cli"
|
|
8
|
-
version = "0.
|
|
8
|
+
version = "0.8.0"
|
|
9
9
|
description = "A self-hosted evidence store for coding agents: the sediment CLI and local server"
|
|
10
10
|
readme = "README.md"
|
|
11
11
|
requires-python = ">=3.12"
|
|
@@ -15,10 +15,10 @@ license-files = ["LICENSE"]
|
|
|
15
15
|
# so an install never mixes member versions (the release workflow asserts
|
|
16
16
|
# the versions agree before publishing).
|
|
17
17
|
dependencies = [
|
|
18
|
-
"sediment-core==0.
|
|
19
|
-
"sediment-derive==0.
|
|
20
|
-
"sediment-export==0.
|
|
21
|
-
"sediment-api==0.
|
|
18
|
+
"sediment-core==0.8.0",
|
|
19
|
+
"sediment-derive==0.8.0",
|
|
20
|
+
"sediment-export==0.8.0",
|
|
21
|
+
"sediment-api==0.8.0",
|
|
22
22
|
"httpx>=0.27",
|
|
23
23
|
]
|
|
24
24
|
|
|
@@ -18,8 +18,12 @@ and opted-in transcript payloads before delivery. Without it, delivery is best-e
|
|
|
18
18
|
|
|
19
19
|
## Install
|
|
20
20
|
|
|
21
|
-
Use pi 0.84.1 or later with Node 24. Node 22.
|
|
22
|
-
release line is also supported.
|
|
21
|
+
Use pi 0.84.1 or later with Node 24.5 or later. Node 22.20 or later in the
|
|
22
|
+
Node 22 release line is also supported. Those official Node builds ship
|
|
23
|
+
OpenSSL 3.5, which can negotiate TLS 1.3 hybrid key exchange
|
|
24
|
+
(`X25519MLKEM768`) for capture HTTPS. Distro Node packages linked to OpenSSL
|
|
25
|
+
3.0 may still lack hybrid key exchange; prefer official Node binaries or a
|
|
26
|
+
host OpenSSL 3.5 or later. The shim rejects other Node release lines.
|
|
23
27
|
The shim has no runtime package dependencies and doesn't require `npm install`.
|
|
24
28
|
Your pi installation is a separate prerequisite: inventory its packages and
|
|
25
29
|
support status before installing it in your deployment.
|
|
@@ -184,7 +188,7 @@ the direct send succeeds; that send has no durable recovery guarantee.
|
|
|
184
188
|
|
|
185
189
|
```
|
|
186
190
|
npm ci
|
|
187
|
-
npm test # node --test (type stripping; Node 24 or Node 22.
|
|
191
|
+
npm test # node --test (type stripping; Node 24.5+ or Node 22.20+)
|
|
188
192
|
npm run typecheck # tsc --noEmit
|
|
189
193
|
```
|
|
190
194
|
|
|
@@ -199,6 +203,7 @@ The lockfile pins pi 1.5.0 (`@earendil-works/pi-coding-agent`) as a development
|
|
|
199
203
|
dependency. The native retrieval test exercises its extension registration,
|
|
200
204
|
argument validation, agent loop, and model-visible tool result with a scripted
|
|
201
205
|
model stream. It makes no paid inference request and downloads no package during
|
|
202
|
-
the test. Run these native checks on Node 24; pi's own minimum is
|
|
206
|
+
the test. Run these native checks on Node 24.5 or later; pi's own minimum is
|
|
207
|
+
Node 22.19.
|
|
203
208
|
Runtime extension imports remain standard-library imports; pi types are erased.
|
|
204
209
|
Source installation still needs no shim `node_modules` directory.
|
|
@@ -141,8 +141,14 @@ function resolveScripts(): Deps["scripts"] {
|
|
|
141
141
|
|
|
142
142
|
export default function (pi: PiLike & Parameters<typeof registerRetrieval>[0]) {
|
|
143
143
|
const version = /^(22|24)\.(\d+)\.\d+$/.exec(process.versions.node);
|
|
144
|
-
if (
|
|
145
|
-
|
|
144
|
+
if (
|
|
145
|
+
!version ||
|
|
146
|
+
(version[1] === "22" && Number(version[2]) < 20) ||
|
|
147
|
+
(version[1] === "24" && Number(version[2]) < 5)
|
|
148
|
+
) {
|
|
149
|
+
console.error(
|
|
150
|
+
"sediment-pi: unsupported Node runtime; use Node 24.5+ or Node 22.20+",
|
|
151
|
+
);
|
|
146
152
|
return;
|
|
147
153
|
}
|
|
148
154
|
registerRetrieval(pi, process.env);
|
|
@@ -6,14 +6,14 @@
|
|
|
6
6
|
"type": "module",
|
|
7
7
|
"description": "Sediment capture shim for the pi harness — emits the Sediment client capture contract (docs/agents/capture-clients.md)",
|
|
8
8
|
"engines": {
|
|
9
|
-
"node": ">=22.
|
|
9
|
+
"node": ">=22.20 <23 || >=24.5 <25"
|
|
10
10
|
},
|
|
11
11
|
"scripts": {
|
|
12
12
|
"test": "node --test",
|
|
13
13
|
"typecheck": "tsc --noEmit"
|
|
14
14
|
},
|
|
15
15
|
"devDependencies": {
|
|
16
|
-
"@earendil-works/pi-coding-agent": "1.5.
|
|
16
|
+
"@earendil-works/pi-coding-agent": "1.5.1",
|
|
17
17
|
"@types/node": "^24.19.2",
|
|
18
18
|
"typescript": "^7.0.2"
|
|
19
19
|
}
|
|
@@ -2682,7 +2682,7 @@ def _install_codex_transcript_hook() -> str:
|
|
|
2682
2682
|
|
|
2683
2683
|
# Only the edit tools: the snapshot hook reads the file each call is about to
|
|
2684
2684
|
# write, so Bash and the read-only tools have nothing for it to do.
|
|
2685
|
-
CLAUDE_EDIT_MATCHER = "Edit|Write"
|
|
2685
|
+
CLAUDE_EDIT_MATCHER = "Edit|Write|MultiEdit"
|
|
2686
2686
|
|
|
2687
2687
|
|
|
2688
2688
|
def _install_snapshot_hook() -> str:
|
|
@@ -1041,10 +1041,12 @@ def cmd_quarantine_or_release(
|
|
|
1041
1041
|
|
|
1042
1042
|
|
|
1043
1043
|
def cmd_quarantine_log(store: FactStore, org: str, args: argparse.Namespace) -> int:
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1044
|
+
if args.all:
|
|
1045
|
+
shown = store.read_quarantine_log(org)
|
|
1046
|
+
total = len(shown)
|
|
1047
|
+
else:
|
|
1048
|
+
shown = store.read_quarantine_log(org, limit=args.tail)
|
|
1049
|
+
total = store.count_quarantine_log(org)
|
|
1048
1050
|
for rec in shown:
|
|
1049
1051
|
color = "sandstone" if rec.action == "quarantine" else "phosphor"
|
|
1050
1052
|
print(
|
|
@@ -1052,15 +1054,15 @@ def cmd_quarantine_log(store: FactStore, org: str, args: argparse.Namespace) ->
|
|
|
1052
1054
|
+ f" {ui.style(f'{rec.action:<10}', color)} "
|
|
1053
1055
|
f"{rec.fact_table}/{rec.fact_id} {rec.reason}"
|
|
1054
1056
|
)
|
|
1055
|
-
if len(shown) <
|
|
1057
|
+
if len(shown) < total:
|
|
1056
1058
|
print(
|
|
1057
1059
|
ui.style(
|
|
1058
|
-
f"... showing last {len(shown)} of {
|
|
1060
|
+
f"... showing last {len(shown)} of {total} rows (--all for all)",
|
|
1059
1061
|
"dim",
|
|
1060
1062
|
)
|
|
1061
1063
|
)
|
|
1062
1064
|
revision = _styled_revision(store.quarantine_revision(org))
|
|
1063
|
-
print(f"{
|
|
1065
|
+
print(f"{total} rows; quarantine_revision: {revision}")
|
|
1064
1066
|
return 0
|
|
1065
1067
|
|
|
1066
1068
|
|
|
@@ -17,23 +17,23 @@ import urllib.request
|
|
|
17
17
|
from contextlib import contextmanager
|
|
18
18
|
from pathlib import Path
|
|
19
19
|
|
|
20
|
-
VERSION = "17.
|
|
20
|
+
VERSION = "17.12.0"
|
|
21
21
|
_PACKAGES = {
|
|
22
22
|
("Darwin", "arm64"): (
|
|
23
23
|
"aarch64-apple-darwin",
|
|
24
|
-
"
|
|
24
|
+
"2f752033b208f9a6a12ef64a9ee23bf19149cff160841980db1e221bf7d24809",
|
|
25
25
|
),
|
|
26
26
|
("Darwin", "x86_64"): (
|
|
27
27
|
"x86_64-apple-darwin",
|
|
28
|
-
"
|
|
28
|
+
"34ba0eca0f15776b4ab9a07b2decc6fb0b1910a57870ad7d7dacb7399b43c9bd",
|
|
29
29
|
),
|
|
30
30
|
("Linux", "aarch64"): (
|
|
31
31
|
"aarch64-unknown-linux-gnu",
|
|
32
|
-
"
|
|
32
|
+
"9b3ca376cbdecb297711f9b09bfe834ae0f7c231042de58b7cb4bb2c0a526301",
|
|
33
33
|
),
|
|
34
34
|
("Linux", "x86_64"): (
|
|
35
35
|
"x86_64-unknown-linux-gnu",
|
|
36
|
-
"
|
|
36
|
+
"af316b6e42266ec0a153bdc9194e0b1b5f12c9ce4f0b13d9a96dfca77d9aaecc",
|
|
37
37
|
),
|
|
38
38
|
}
|
|
39
39
|
_EXTERNAL = (
|