trajectories 0.1.1 → 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 +25 -0
- package/README.md +35 -5
- package/dist/cli.js +25044 -1718
- package/dist/convert.d.ts +8 -0
- package/dist/convert.js +26 -4
- package/dist/deepagents_checkpoint.py +362 -0
- 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/cli.ts +2 -2
- package/legacy/src/db.ts +11 -7
- package/legacy/src/reader.ts +21 -0
- package/legacy/src/shared.ts +217 -0
- package/legacy/src/sync.ts +17 -3
- package/ops/README.md +31 -1
- package/ops/install-native.sh +35 -0
- package/package.json +51 -12
- package/dist/cli.d.ts +0 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
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
|
+
|
|
15
|
+
## 0.1.2
|
|
16
|
+
|
|
17
|
+
### Added
|
|
18
|
+
|
|
19
|
+
- Native CLI distributions for Linux x64, Linux ARM64 and Apple Silicon macOS, with the Bun runtime embedded. No separate Bun, Node or npm installation is required.
|
|
20
|
+
- Companion assets preserve local ONNX embeddings, vocabulary and Deep Agents checkpoint conversion. Model weights remain a separate explicit download.
|
|
21
|
+
- Per-platform release CI builds and tests each archive on its own operating system and architecture, then attaches verified assets and SHA-256 checksums to GitHub Releases independently of npm authentication.
|
|
22
|
+
- Direct native installer and Bun-free consumer checks for conversion, managed logs, lexical search, sync workers and Cursor SQLite decoding.
|
|
23
|
+
|
|
24
|
+
### Fixed
|
|
25
|
+
|
|
26
|
+
- Bundled CLIs relaunch their own entrypoint for bounded sync preparation, ingestion and maintenance. Package versions are embedded instead of read from a runtime source tree.
|
|
27
|
+
|
|
3
28
|
## 0.1.1
|
|
4
29
|
|
|
5
30
|
### Fixed
|
package/README.md
CHANGED
|
@@ -6,20 +6,29 @@ GitHub Copilot, Cline, and fx. Read and search 18 local history formats through
|
|
|
6
6
|
the CLI, or use the independent conversion SDK.
|
|
7
7
|
|
|
8
8
|
One package, two entrypoints: `import … from 'trajectories'` works in Node 22.13+;
|
|
9
|
-
the `trajectories` CLI uses Bun 1.4.2+ for the existing Ledger SQLite/search engine.
|
|
9
|
+
the npm `trajectories` CLI uses Bun 1.4.2+ for the existing Ledger SQLite/search engine.
|
|
10
|
+
Native CLI releases embed that runtime and require no separate Bun or Node installation.
|
|
10
11
|
Conversion support has explicit fidelity limits; it is not a universal native
|
|
11
12
|
state converter. Compatibility evidence is in the [source repository](https://github.com/archeism/oh-my-ai/tree/main/packages/trajectories/evidence).
|
|
12
13
|
|
|
13
14
|
## Install
|
|
14
15
|
|
|
16
|
+
Download a native archive and its `.sha256` file from the
|
|
17
|
+
[Trajectories releases](https://github.com/archeism/oh-my-ai/releases?q=trajectories%40&expanded=true).
|
|
18
|
+
Choose `linux-x64`, `linux-arm64`, or `darwin-arm64` (Apple Silicon).
|
|
19
|
+
Keep the executable and its `lib/` directory together; the native installer
|
|
20
|
+
places a `trajectories` symlink on PATH. See the
|
|
21
|
+
[native installation commands](./ops/README.md#native-cli).
|
|
22
|
+
|
|
15
23
|
```sh
|
|
16
24
|
# CLI: requires Bun 1.4.2 or newer on PATH.
|
|
17
|
-
bun add --global trajectories@
|
|
25
|
+
bun add --global trajectories@latest
|
|
18
26
|
trajectories --version
|
|
19
27
|
trajectories search --help
|
|
28
|
+
trajectories remote --help
|
|
20
29
|
|
|
21
30
|
# SDK: inside your project; also works in Node 22.13 or newer.
|
|
22
|
-
bun add trajectories@
|
|
31
|
+
bun add trajectories@latest
|
|
23
32
|
```
|
|
24
33
|
|
|
25
34
|
The package includes the CLI, SDK, agent skill, and OS service installers.
|
|
@@ -28,6 +37,12 @@ indexing service. See [installation and service cutover](./ops/README.md).
|
|
|
28
37
|
Lexical search works without embedding models. Optional semantic search needs
|
|
29
38
|
the ONNX runtime and a downloaded model (`trajectories models pull`); that
|
|
30
39
|
download is separate from the release's lexical installation checks.
|
|
40
|
+
Native archives include ONNX and vocabulary; `models pull` downloads only the
|
|
41
|
+
model when vocabulary is present. Local inference requires glibc 2.28+ on Linux
|
|
42
|
+
or macOS 14+ on Apple Silicon.
|
|
43
|
+
Intel macOS is not released because the current ONNX dependency lacks its native
|
|
44
|
+
binding. Deep Agents SQLite access still requires that harness's Python/LangGraph
|
|
45
|
+
environment. Native harness execution and provider credentials remain separate.
|
|
31
46
|
|
|
32
47
|
The optional Workflow adapter remains a separate package and is not part of
|
|
33
48
|
this release. The SDK and CLI do not require Workflow.
|
|
@@ -49,8 +64,12 @@ conversation authority per logical session, shared evidence/artifacts, and
|
|
|
49
64
|
explicitly bounded native checkpoints. Version 1 stores require explicit migration
|
|
50
65
|
before using these managed APIs. Native scan/sync continues to use Ledger's engine.
|
|
51
66
|
|
|
52
|
-
|
|
53
|
-
|
|
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
|
|
54
73
|
useful: a transcript does not reconstruct runtime caches, permissions, pending
|
|
55
74
|
approvals, installed tools/skills, filesystem state, or opaque reasoning state.
|
|
56
75
|
The caller must stop the source and provide the target's tools and credentials.
|
|
@@ -134,6 +153,17 @@ Aliases: `cc` means `claude-code`. Native artifacts and source transcripts are
|
|
|
134
153
|
never overwritten. Workspace files must already be present; `--cwd` changes the
|
|
135
154
|
workspace reference, not tool-output text or historical file contents.
|
|
136
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
|
+
|
|
137
167
|
Inspect a managed conversation directly, or add its current complete history to
|
|
138
168
|
the same search index that holds native sessions:
|
|
139
169
|
|