brainjar 0.3.697 → 0.3.702

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.
Files changed (2) hide show
  1. package/brainjar.js +14 -1
  2. package/package.json +1 -1
package/brainjar.js CHANGED
@@ -107,7 +107,7 @@ var CLI_VERSION, CACHE, DAY;
107
107
  var init_version_check = __esm({
108
108
  "packages/cli/src/version-check.ts"() {
109
109
  "use strict";
110
- CLI_VERSION = "0.3.697";
110
+ CLI_VERSION = "0.3.702";
111
111
  CACHE = path.join(os.homedir(), ".brainjar", "version-check.json");
112
112
  DAY = 864e5;
113
113
  }
@@ -16793,6 +16793,19 @@ async function init(argv) {
16793
16793
  } catch {
16794
16794
  ok("skipped (server unreachable) \u2014 the sync hook will add it");
16795
16795
  }
16796
+ try {
16797
+ await captureApi("/capture/connect", {
16798
+ method: "POST",
16799
+ body: {
16800
+ brainId: conn.brainId,
16801
+ sourceId: conn.sourceId,
16802
+ name,
16803
+ done: true,
16804
+ tools: tools.map((t) => t.id)
16805
+ }
16806
+ });
16807
+ } catch {
16808
+ }
16796
16809
  const final = await captureApi(
16797
16810
  `/capture/project?brain=${conn.brainId}&source=${conn.sourceId}`
16798
16811
  );
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "brainjar",
3
- "version": "0.3.697",
3
+ "version": "0.3.702",
4
4
  "description": "BrainJar CLI: turn a repository into a live, self-documenting Brain.",
5
5
  "type": "module",
6
6
  "bin": {