cf-memory-mcp 3.46.0 → 3.47.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.
@@ -3977,6 +3977,10 @@ function parseCliArgs(rest) {
3977
3977
  flags.goal_only = true;
3978
3978
  } else if (a === '--status-only') {
3979
3979
  flags.status_only = true;
3980
+ } else if (a === '--branch-only') {
3981
+ flags.branch_only = true;
3982
+ } else if (a === '--repo-only') {
3983
+ flags.repo_only = true;
3980
3984
  } else if (a === '--older-than') {
3981
3985
  // Accept "7d" / "30d" / "12h" / raw number (days).
3982
3986
  const raw = rest[++i] || '';
@@ -4155,6 +4159,22 @@ async function runResumeCli() {
4155
4159
  process.exit(0);
4156
4160
  }
4157
4161
 
4162
+ // --branch-only: print just the branch.
4163
+ if (flags.branch_only) {
4164
+ const branch = payload.resume_handoff?.handoff?.branch;
4165
+ if (!branch) process.exit(3);
4166
+ process.stdout.write(branch + '\n');
4167
+ process.exit(0);
4168
+ }
4169
+
4170
+ // --repo-only: print just the repo_path.
4171
+ if (flags.repo_only) {
4172
+ const repo = payload.resume_handoff?.handoff?.repo_path;
4173
+ if (!repo) process.exit(3);
4174
+ process.stdout.write(repo + '\n');
4175
+ process.exit(0);
4176
+ }
4177
+
4158
4178
  // --age: print just handoff_age_minutes (single integer).
4159
4179
  if (flags.age) {
4160
4180
  const ageMin = payload.resume_handoff?.handoff_age_minutes;
@@ -4967,6 +4987,8 @@ const PER_COMMAND_HELP = {
4967
4987
  --quality Print quality_score (single float, 0-1).
4968
4988
  --goal-only Print just the goal text (single line).
4969
4989
  --status-only Print just the status string.
4990
+ --branch-only Print just the branch.
4991
+ --repo-only Print just the repo_path.
4970
4992
  --json, -j Full bootstrap payload as JSON.
4971
4993
  Exit codes: 0 = found, 3 = no handoff / no data, 4 = --validate found missing files.`,
4972
4994
  list: `cf-memory-mcp list [--status S] [--since ISO] [--repo PATH] [--limit N] [--json]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "cf-memory-mcp",
3
- "version": "3.46.0",
3
+ "version": "3.47.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": {