trajectories 0.1.2 → 0.1.3
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 +12 -0
- package/README.md +21 -5
- package/dist/cli.js +25984 -24326
- package/dist/convert.d.ts +8 -0
- package/dist/convert.js +26 -4
- package/dist/index.d.ts +5 -3
- package/dist/index.js +1205 -125
- package/dist/log-stage.js +3 -1
- package/dist/log-state.d.ts +1 -1
- package/dist/log-switch.js +4 -3
- package/dist/readers/atif.d.ts +10 -0
- package/dist/readers/atif.js +54 -0
- package/dist/shared-managed.d.ts +31 -0
- package/dist/shared-managed.js +333 -0
- package/dist/shared-observed.d.ts +96 -0
- package/dist/shared-observed.js +286 -0
- package/dist/shared.d.ts +40 -0
- package/dist/shared.js +357 -0
- package/dist/types.d.ts +41 -3
- package/dist/types.js +7 -1
- package/docs/shared-history.md +133 -0
- package/legacy/src/db.ts +11 -7
- package/legacy/src/reader.ts +21 -0
- package/legacy/src/shared.ts +217 -0
- package/package.json +47 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## Unreleased
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Authenticated shared history through `remote serve/push/pull/list` and Node-compatible handler/client APIs. Native SQLite histories retain machine identity, lineage and diagnostics; managed sessions synchronize canonical logs and required immutable evidence with conflict checks. Local SQLite ingestion and search remain unchanged.
|
|
8
|
+
- Optional DuckDB analytics evaluation: warm cross-session metadata aggregates were 2.9–33.5× faster than indexed SQLite on the measured corpus; no production DuckDB dependency was added.
|
|
9
|
+
- `read --canonical-only` omits duplicated raw native bytes while preserving canonical history, provenance, diagnostics and portability warnings. Default snapshot output remains unchanged.
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- The sync worker-deadline regression isolates worker admission from database setup, retaining real abort/reap and resume checks without a CI scheduling-speed assumption.
|
|
14
|
+
|
|
3
15
|
## 0.1.2
|
|
4
16
|
|
|
5
17
|
### Added
|
package/README.md
CHANGED
|
@@ -14,7 +14,7 @@ state converter. Compatibility evidence is in the [source repository](https://gi
|
|
|
14
14
|
## Install
|
|
15
15
|
|
|
16
16
|
Download a native archive and its `.sha256` file from the
|
|
17
|
-
[
|
|
17
|
+
[Trajectories releases](https://github.com/archeism/oh-my-ai/releases?q=trajectories%40&expanded=true).
|
|
18
18
|
Choose `linux-x64`, `linux-arm64`, or `darwin-arm64` (Apple Silicon).
|
|
19
19
|
Keep the executable and its `lib/` directory together; the native installer
|
|
20
20
|
places a `trajectories` symlink on PATH. See the
|
|
@@ -22,12 +22,13 @@ places a `trajectories` symlink on PATH. See the
|
|
|
22
22
|
|
|
23
23
|
```sh
|
|
24
24
|
# CLI: requires Bun 1.4.2 or newer on PATH.
|
|
25
|
-
bun add --global trajectories@
|
|
25
|
+
bun add --global trajectories@latest
|
|
26
26
|
trajectories --version
|
|
27
27
|
trajectories search --help
|
|
28
|
+
trajectories remote --help
|
|
28
29
|
|
|
29
30
|
# SDK: inside your project; also works in Node 22.13 or newer.
|
|
30
|
-
bun add trajectories@
|
|
31
|
+
bun add trajectories@latest
|
|
31
32
|
```
|
|
32
33
|
|
|
33
34
|
The package includes the CLI, SDK, agent skill, and OS service installers.
|
|
@@ -63,8 +64,12 @@ conversation authority per logical session, shared evidence/artifacts, and
|
|
|
63
64
|
explicitly bounded native checkpoints. Version 1 stores require explicit migration
|
|
64
65
|
before using these managed APIs. Native scan/sync continues to use Ledger's engine.
|
|
65
66
|
|
|
66
|
-
|
|
67
|
-
|
|
67
|
+
Managed stores use private local files; [shared history](./docs/shared-history.md)
|
|
68
|
+
adds authenticated cross-machine synchronization of their canonical logs and
|
|
69
|
+
required evidence, plus native histories already indexed in SQLite. SQLite remains
|
|
70
|
+
the local ingestion/search engine. Each session keeps its own history; sync uploads
|
|
71
|
+
missing objects and changes instead of copying whole databases or snapshots.
|
|
72
|
+
Omakase can use this SDK and keep Vercel's HarnessAgent for execution. Same-harness native resume remains
|
|
68
73
|
useful: a transcript does not reconstruct runtime caches, permissions, pending
|
|
69
74
|
approvals, installed tools/skills, filesystem state, or opaque reasoning state.
|
|
70
75
|
The caller must stop the source and provide the target's tools and credentials.
|
|
@@ -148,6 +153,17 @@ Aliases: `cc` means `claude-code`. Native artifacts and source transcripts are
|
|
|
148
153
|
never overwritten. Workspace files must already be present; `--cwd` changes the
|
|
149
154
|
workspace reference, not tool-output text or historical file contents.
|
|
150
155
|
|
|
156
|
+
For inspection without duplicating the complete native transcript in the JSON:
|
|
157
|
+
|
|
158
|
+
```sh
|
|
159
|
+
trajectories read /absolute/session.jsonl --from cc --canonical-only
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
This omits only `raw`; source provenance, canonical records, normalization
|
|
163
|
+
metadata, diagnostics and portability warnings remain intact. The default
|
|
164
|
+
`read` output is unchanged. This inspection output is not a complete portable
|
|
165
|
+
snapshot, and the flag does not make unsupported continuation history resumable.
|
|
166
|
+
|
|
151
167
|
Inspect a managed conversation directly, or add its current complete history to
|
|
152
168
|
the same search index that holds native sessions:
|
|
153
169
|
|