@getopencrawl/cli 0.2.0 → 0.3.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  # opencrawl
2
2
 
3
- The OpenCrawl v2 CLI. This initial release installs an automatically updating
3
+ The OpenCrawl CLI. This initial release installs an automatically updating
4
4
  command and signs you in. **Index queries are not available yet.**
5
5
 
6
6
  Once published:
@@ -98,3 +98,12 @@ UNLICENSED pending the repository's separate public-license decision.
98
98
  Prior art: OnePatch's npm/native launcher, device login, automatic refresh and
99
99
  background upgrades; Glen's small npm entry point for agents. No query command,
100
100
  agent hooks, MCP integration or background daemon is included in this release.
101
+
102
+
103
+ ### Session capture
104
+
105
+ After signing in, run `opencrawl collect install` to install Claude Code and Codex hooks and the background transcript collector. Review the commands in Codex `/hooks` or desktop Settings > Hooks. The same local configuration covers desktop and terminal sessions.
106
+
107
+ `opencrawl collect status --json` reports the enrolled identity, queued uploads, last receipt and errors. `collect sync` reconciles active transcripts; `collect flush` retries queued uploads; `collect uninstall` removes OpenCrawl hooks and stops collection while preserving queued data.
108
+
109
+ 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 derives ownership from login. Self-hosted users can supply `OPENCRAWL_SESSIONS_TOKEN` and `--api` for the portable receiver. See [capture architecture and limits](../docs/session-capture.md).
package/bin/opencrawl.cjs CHANGED
@@ -140,7 +140,7 @@ async function main(args = process.argv.slice(2)) {
140
140
  const selected = activeRoot();
141
141
  // Delegate the launcher too, so later releases can fix bootstrap behavior.
142
142
  if (selected !== ROOT) {
143
- const delegated = spawnSync(process.execPath, [path.join(selected, 'bin/opencrawl.cjs'), ...args], {stdio: 'inherit', windowsHide: true});
143
+ const delegated = spawnSync(process.execPath, [path.join(selected, 'bin/opencrawl.cjs'), ...args], {stdio: 'inherit', windowsHide: true, env: {...process.env, OPENCRAWL_LAUNCHER: process.env.OPENCRAWL_LAUNCHER || __filename, OPENCRAWL_NODE: process.execPath}});
144
144
  if (delegated.error) throw new Error('Could not start the cached launcher.');
145
145
  return delegated.signal === 'SIGINT' ? 130 : delegated.status ?? 1;
146
146
  }
@@ -153,7 +153,7 @@ async function main(args = process.argv.slice(2)) {
153
153
  return 0;
154
154
  }
155
155
  const root = activeRoot();
156
- const result = spawnSync(binary(root), args, {stdio: 'inherit', windowsHide: true});
156
+ const result = spawnSync(binary(root), args, {stdio: 'inherit', windowsHide: true, env: {...process.env, OPENCRAWL_LAUNCHER: process.env.OPENCRAWL_LAUNCHER || __filename, OPENCRAWL_NODE: process.execPath}});
157
157
  scheduleUpdate();
158
158
  if (result.error) throw new Error('Could not start the OpenCrawl binary. Reinstall @getopencrawl/cli.');
159
159
  if (result.signal === 'SIGINT') return 130;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getopencrawl/cli",
3
- "version": "0.2.0",
3
+ "version": "0.3.0",
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.2.0",
28
- "@getopencrawl/cli-darwin-x64": "0.2.0",
29
- "@getopencrawl/cli-linux-arm64": "0.2.0",
30
- "@getopencrawl/cli-linux-x64": "0.2.0",
31
- "@getopencrawl/cli-win32-x64": "0.2.0"
27
+ "@getopencrawl/cli-darwin-arm64": "0.3.0",
28
+ "@getopencrawl/cli-darwin-x64": "0.3.0",
29
+ "@getopencrawl/cli-linux-arm64": "0.3.0",
30
+ "@getopencrawl/cli-linux-x64": "0.3.0",
31
+ "@getopencrawl/cli-win32-x64": "0.3.0"
32
32
  }
33
33
  }