@vitorcen/context-resume 1.0.1 → 1.0.2

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.
@@ -4,10 +4,11 @@ import { glob } from 'glob';
4
4
  import os from 'os';
5
5
  // --- Claude Adapter ---
6
6
  function getClaudeEncodedPath(projectPath) {
7
- // Claude encodes paths by replacing / and . with -
7
+ // Claude encodes paths by replacing /, ., and _ with -
8
8
  // e.g. /home/user/project -> -home-user-project
9
9
  // e.g. /path/v1.0 -> -path-v1-0
10
- return projectPath.replace(/[\/\.]/g, '-');
10
+ // e.g. /home/work_ro -> -home-work-ro
11
+ return projectPath.replace(/[\/\._]/g, '-');
11
12
  }
12
13
  export async function getClaudeSessions(cwd, limit = 10) {
13
14
  const homeDir = os.homedir();
package/dist/index.js CHANGED
@@ -3,11 +3,14 @@ import { jsx as _jsx } from "react/jsx-runtime";
3
3
  import { Command } from 'commander';
4
4
  import { render } from 'ink';
5
5
  import App from './ui/app.js';
6
+ import { createRequire } from 'module';
7
+ const require = createRequire(import.meta.url);
8
+ const { version } = require('../package.json');
6
9
  const program = new Command();
7
10
  program
8
11
  .name('context')
9
12
  .description('Context Resume CLI')
10
- .version('1.0.0', '-v, --version');
13
+ .version(version, '-v, --version');
11
14
  program
12
15
  .option('-n, --number <count>', 'Number of sessions to show per source (claude/codex)', '10')
13
16
  .action(async (options) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vitorcen/context-resume",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Context Resume CLI - Browse and mutually restore the conversation history of Claude Code and Codex",
5
5
  "main": "dist/index.js",
6
6
  "type": "module",