@getopencrawl/cli 0.4.6 → 0.4.9
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/README.md +26 -3
- package/package.json +6 -6
package/README.md
CHANGED
|
@@ -101,12 +101,35 @@ background upgrades; Glen's small npm entry point for agents.
|
|
|
101
101
|
|
|
102
102
|
### Session capture
|
|
103
103
|
|
|
104
|
-
After signing in, run `opencrawl collect install` to install Claude Code and Codex hooks and the
|
|
104
|
+
After signing in, run `opencrawl collect install` to install Claude Code and Codex hooks and the on-demand transcript uploader. Review the commands in Codex `/hooks` or desktop Settings > Hooks. The same local configuration covers desktop and terminal sessions.
|
|
105
105
|
|
|
106
|
-
`opencrawl collect status --json` reports the last authenticated identity, queued uploads, last receipt and errors. `collect sync` reconciles active transcripts; `collect flush`
|
|
106
|
+
`opencrawl collect status --json` reports the last authenticated identity, queued uploads, last receipt and errors. `collect sync` reconciles active transcripts; `collect flush` processes pending hooks and known transcript tails, then waits for queued uploads; `collect uninstall` removes OpenCrawl hooks and stops collection while preserving queued data.
|
|
107
107
|
|
|
108
108
|
Messages, tool arguments/results and attachments are collected with native session IDs and a stable installation ID. System/developer prompts are excluded. The hosted service determines the current team from login and validates human attribution. Existing collectors and queued personal-scope uploads automatically use that team after updating, without reinstalling or resetting. Self-hosted users can supply `OPENCRAWL_SESSIONS_TOKEN` and `--api` for the portable receiver. See [capture architecture and limits](../docs/session-capture.md).
|
|
109
109
|
|
|
110
|
+
Hooks durably save their event locally and wake one detached worker. They do not
|
|
111
|
+
read transcripts, wait for an upload lock, or make network requests. The worker
|
|
112
|
+
parses permitted records, spools immutable batches, and keeps each batch until a
|
|
113
|
+
verified durable receipt arrives. Concurrent workers exit without waiting;
|
|
114
|
+
foreground flush/backfill waits for upload ownership rather than failing after
|
|
115
|
+
20 seconds. Backfill completes only after its queued data has receipts.
|
|
116
|
+
|
|
117
|
+
No systemd, launchd, cron, or installed daemon is required on any supported OS.
|
|
118
|
+
An updated worker retires legacy OpenCrawl timers when it first runs; reinstall
|
|
119
|
+
also removes them. Existing cursors, queue, identity and hook dispatcher remain
|
|
120
|
+
compatible. The worker polls known transcripts for 30 seconds after activity,
|
|
121
|
+
including after Stop, and retries failed uploads with backoff while it can run.
|
|
122
|
+
Later hooks and ordinary CLI invocations recover pending work and recheck known
|
|
123
|
+
sources after process loss. An idle interval is not a final-session receipt:
|
|
124
|
+
unsent data needs retained files and another execution opportunity. A destroyed
|
|
125
|
+
sandbox cannot deliver bytes that never left it. `collect status` reports
|
|
126
|
+
`pendingHooks` separately from queued upload batches. Uninstall preserves both.
|
|
127
|
+
|
|
128
|
+
Cloud image setup uses `collect install --harness claude-code --defer-auth
|
|
129
|
+
--backfill skip`: it requires no runtime credential or network identity lookup.
|
|
130
|
+
The first detached worker binds the authenticated identity and installation ID
|
|
131
|
+
before parsing or uploading. First-run hooks remain network-nonblocking.
|
|
132
|
+
|
|
110
133
|
### Optional history import
|
|
111
134
|
|
|
112
135
|
`collect install` asks terminal users whether to import past Claude Code sessions,
|
|
@@ -185,7 +208,7 @@ a separate setup session are supported. Environment variables are visible to
|
|
|
185
208
|
commands in that environment; don't paste the credential into the chat or repo.
|
|
186
209
|
|
|
187
210
|
The installer detects `CLAUDE_CODE_REMOTE=true`, installs Claude hooks only and
|
|
188
|
-
|
|
211
|
+
uses the same service-free uploader as local installations. `--harness claude-code` selects just Claude hooks; `--no-background` remains an accepted compatibility flag.
|
|
189
212
|
The setup installs the CLI at
|
|
190
213
|
`$HOME/.local/share/opencrawl-cloud/node_modules/.bin/opencrawl`. After a user
|
|
191
214
|
message, tool call and image, `collect status` must report a stored receipt and
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getopencrawl/cli",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.9",
|
|
4
4
|
"description": "OpenCrawl CLI: sign in now, query the index as features become available",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "UNLICENSED",
|
|
@@ -24,10 +24,10 @@
|
|
|
24
24
|
"registry": "https://registry.npmjs.org"
|
|
25
25
|
},
|
|
26
26
|
"optionalDependencies": {
|
|
27
|
-
"@getopencrawl/cli-darwin-arm64": "0.4.
|
|
28
|
-
"@getopencrawl/cli-darwin-x64": "0.4.
|
|
29
|
-
"@getopencrawl/cli-linux-arm64": "0.4.
|
|
30
|
-
"@getopencrawl/cli-linux-x64": "0.4.
|
|
31
|
-
"@getopencrawl/cli-win32-x64": "0.4.
|
|
27
|
+
"@getopencrawl/cli-darwin-arm64": "0.4.9",
|
|
28
|
+
"@getopencrawl/cli-darwin-x64": "0.4.9",
|
|
29
|
+
"@getopencrawl/cli-linux-arm64": "0.4.9",
|
|
30
|
+
"@getopencrawl/cli-linux-x64": "0.4.9",
|
|
31
|
+
"@getopencrawl/cli-win32-x64": "0.4.9"
|
|
32
32
|
}
|
|
33
33
|
}
|