cf-memory-mcp 3.39.0 → 3.40.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.
@@ -4299,7 +4299,8 @@ async function runListCli() {
4299
4299
  const status = (h.status || 'unknown').padEnd(11);
4300
4300
  const branch = h.branch ? `[${h.branch}] ` : '';
4301
4301
  const goal = (h.goal || '(no goal)').slice(0, 80);
4302
- process.stdout.write(` ${shortId} ${status} ${age.padStart(4)} ago ${branch}${goal}\n`);
4302
+ const q = typeof h.quality_score === 'number' ? ` q=${h.quality_score.toFixed(2)}` : '';
4303
+ process.stdout.write(` ${shortId} ${status} ${age.padStart(4)} ago${q} ${branch}${goal}\n`);
4303
4304
  if (h.next_step) process.stdout.write(` next: ${h.next_step.slice(0, 80)}\n`);
4304
4305
  }
4305
4306
  process.stdout.write(`\n(Run "npx cf-memory-mcp resume <id>" to see a specific handoff)\n`);
@@ -4611,6 +4612,26 @@ _cf_memory_mcp() {
4611
4612
  fi
4612
4613
  }
4613
4614
  _cf_memory_mcp "\$@"
4615
+ `);
4616
+ } else if (shell === 'powershell' || shell === 'pwsh') {
4617
+ process.stdout.write(`# cf-memory-mcp PowerShell completion
4618
+ # Install: cf-memory-mcp completion powershell | Out-String | Invoke-Expression
4619
+ # To persist: add the above to your $PROFILE
4620
+ Register-ArgumentCompleter -Native -CommandName cf-memory-mcp,cfm -ScriptBlock {
4621
+ param($wordToComplete, $commandAst, $cursorPosition)
4622
+ $commands = @('${commands.join("','")}')
4623
+ $flags = @('${flags.filter(f => f.startsWith('--')).join("','")}')
4624
+ $tokens = $commandAst.CommandElements | ForEach-Object { $_.Extent.Text }
4625
+ if ($tokens.Count -le 2) {
4626
+ $commands | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
4627
+ [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterValue', $_)
4628
+ }
4629
+ } elseif ($wordToComplete.StartsWith('--')) {
4630
+ $flags | Where-Object { $_ -like "$wordToComplete*" } | ForEach-Object {
4631
+ [System.Management.Automation.CompletionResult]::new($_, $_, 'ParameterName', $_)
4632
+ }
4633
+ }
4634
+ }
4614
4635
  `);
4615
4636
  } else if (shell === 'fish') {
4616
4637
  process.stdout.write(`# cf-memory-mcp fish completion
@@ -4625,7 +4646,7 @@ complete -c cf-memory-mcp -l help -s h -d 'Show help'
4625
4646
  complete -c cf-memory-mcp -l version -s v -d 'Show version'
4626
4647
  `);
4627
4648
  } else {
4628
- process.stderr.write(`Unknown shell "${shell}". Supported: bash, zsh, fish.\n`);
4649
+ process.stderr.write(`Unknown shell "${shell}". Supported: bash, zsh, fish, powershell.\n`);
4629
4650
  process.exit(1);
4630
4651
  }
4631
4652
  process.exit(0);
@@ -4687,7 +4708,7 @@ const PER_COMMAND_HELP = {
4687
4708
  cache writability, worker reachability, project indexing, resume
4688
4709
  availability. Exit nonzero if any check fails.
4689
4710
  --json, -j Emit a JSON list of checks.`,
4690
- completion: `cf-memory-mcp completion [bash|zsh|fish]
4711
+ completion: `cf-memory-mcp completion [bash|zsh|fish|powershell]
4691
4712
  Output shell completion script. Pipe to your shell's completion dir.`,
4692
4713
  delete: `cf-memory-mcp delete <session-id-or-prefix> [--json]
4693
4714
  cf-memory-mcp delete [--status STATUS] [--older-than 30d] [--repo PATH] --yes [--json]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-memory-mcp",
3
- "version": "3.39.0",
3
+ "version": "3.40.0",
4
4
  "description": "Cloudflare-hosted MCP server for code indexing, retrieval, and assistant memory with a direct remote MCP endpoint and local stdio bridge.",
5
5
  "main": "bin/cf-memory-mcp.js",
6
6
  "bin": {