haansi 0.1.35 → 0.1.36

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/dist/haansi.js +10 -1
  2. package/package.json +1 -1
package/dist/haansi.js CHANGED
@@ -95,7 +95,7 @@ var require_package = __commonJS({
95
95
  "package.json"(exports2, module2) {
96
96
  module2.exports = {
97
97
  name: "haansi",
98
- version: "0.1.35",
98
+ version: "0.1.36",
99
99
  description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
100
100
  bin: {
101
101
  haansi: "./dist/haansi.js"
@@ -23530,6 +23530,9 @@ async function uploadSession(sessionId, content, apiUrl2, token, agentSource, gi
23530
23530
  if (response.status === 429) {
23531
23531
  err.rateLimited = true;
23532
23532
  }
23533
+ if (response.status === 409 && text.includes("mining_disabled")) {
23534
+ err.miningDisabled = true;
23535
+ }
23533
23536
  throw err;
23534
23537
  }
23535
23538
  }
@@ -23703,6 +23706,12 @@ async function collectLocked(options) {
23703
23706
  }
23704
23707
  );
23705
23708
  } catch (err) {
23709
+ if (err?.miningDisabled) {
23710
+ void logger3.info(
23711
+ "Mining is disabled for this organization \u2014 nothing is being collected. An owner or admin can enable it in Settings \u2192 Connections \u2192 Coding Sessions."
23712
+ );
23713
+ break;
23714
+ }
23706
23715
  if (err?.rateLimited) {
23707
23716
  deferred++;
23708
23717
  void logger3.info(`Rate limited, will retry next run: ${shortId}`);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haansi",
3
- "version": "0.1.35",
3
+ "version": "0.1.36",
4
4
  "description": "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
5
5
  "bin": {
6
6
  "haansi": "./dist/haansi.js"