haansi 0.1.48 → 0.1.49

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 +4 -3
  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.48",
98
+ version: "0.1.49",
99
99
  description: "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
100
100
  bin: {
101
101
  haansi: "./dist/haansi.js"
@@ -651,9 +651,10 @@ OpenAI Codex \u2014 configured in ${CODEX_CONFIG}`);
651
651
  }
652
652
  function refreshClaudeConfigTokens(config6, token) {
653
653
  const changed = [];
654
+ const projects = config6.projects ?? {};
654
655
  const scopes = [
655
656
  config6.mcpServers,
656
- ...Object.values(config6.projects ?? {}).map(
657
+ ...Object.values(projects).map(
657
658
  (p) => p?.mcpServers
658
659
  )
659
660
  ];
@@ -666,7 +667,7 @@ function refreshClaudeConfigTokens(config6, token) {
666
667
  const auth = entry2?.headers?.Authorization;
667
668
  if (typeof auth !== "string" || !HSK_BEARER.test(auth)) continue;
668
669
  const next = `Bearer ${token}`;
669
- if (auth === next) continue;
670
+ if (auth === next || !entry2?.headers) continue;
670
671
  entry2.headers.Authorization = next;
671
672
  changed.push(name);
672
673
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "haansi",
3
- "version": "0.1.48",
3
+ "version": "0.1.49",
4
4
  "description": "Haansi CLI - Session collector and MCP server for Claude Code & OpenAI Codex",
5
5
  "bin": {
6
6
  "haansi": "./dist/haansi.js"