granttap-mcp 0.8.177 → 0.8.179

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.
package/README.md CHANGED
@@ -43,7 +43,9 @@ Managed service use requires authorized GrantTap account access; official TestFl
43
43
  access remains free. Earlier releases through 0.8.75 retain their Apache-2.0
44
44
  permissions. The Apple apps, Engine, relay, and website have their own terms.
45
45
 
46
- [Website](https://granttap.com) · [npm](https://www.npmjs.com/package/granttap-mcp) ·
46
+ [Website](https://granttap.com) ·
47
+ [App Store](https://apps.apple.com/app/id6809739366) ·
48
+ [npm](https://www.npmjs.com/package/granttap-mcp) ·
47
49
  [Security model](SECURITY.md) ·
48
50
  [Relay source](https://github.com/sergii-ziborov/granttap-relay)
49
51
 
@@ -81,10 +83,13 @@ monthly at the price shown by Apple. To avoid renewal, cancel at least 24 hours
81
83
  before the trial ends in Apple's subscription settings.
82
84
  A local cache is not deleted when managed access ends.
83
85
 
84
- **Official TestFlight builds include all features without a purchase or
85
- subscription.** A trial and TestFlight access are different forms of access.
86
- Paid products are still being prepared for commercial launch; the App Store
87
- purchase sheet determines availability, localized prices, eligibility and terms.
86
+ **GrantTap for iPhone and iPad is on the
87
+ [App Store](https://apps.apple.com/app/id6809739366)** as a free download;
88
+ subscriptions and Mac Local are sold through Apple. The Mac app is available by
89
+ TestFlight invitation. Official TestFlight builds include all features without a
90
+ purchase or subscription; a trial and TestFlight access are different forms of
91
+ access. The App Store purchase sheet determines availability, localized prices,
92
+ eligibility and terms.
88
93
  Models, AI tokens and coding-provider plans are purchased separately.
89
94
 
90
95
  **Mac Local is a separate $39.99 one-time purchase** for local control and an
@@ -128,7 +133,7 @@ local helper reports the Mac's user-assigned Computer Name and updates its
128
133
  account display name when that name changes. Device names are display labels,
129
134
  not routing keys: each Task keeps the computer route selected by its Mesh.
130
135
 
131
- Install the local helper separately from the Mac App Store app:
136
+ Install the local helper separately from the GrantTap app:
132
137
 
133
138
  ```bash
134
139
  npm install -g granttap-mcp
@@ -10,7 +10,7 @@ import { claudeContextReport } from "../../context-usage";
10
10
  import { LIVE_MS, safeParse, stateFor, ts } from "../../support/common";
11
11
  import { finishScan } from "../../cooperative-scan";
12
12
  import { claudeCapabilityUsage, createClaudeCapabilityCollector } from "./activity";
13
- import { claudeTranscriptRecord, pastedImageLabel } from "../../support/activity-helpers";
13
+ import { claudeTranscriptRecord, pastedImageLabel, visibleUserText } from "../../support/activity-helpers";
14
14
  import { claudeChangedPaths, claudeCheckout, claudeRepositoryPaths } from "./repository-observation";
15
15
  import {
16
16
  childLogsFingerprint,
@@ -30,6 +30,10 @@ type ClaudeParseState = ClaudeTurnClock & {
30
30
  branch?: string;
31
31
  model?: string;
32
32
  title?: string;
33
+ /** The name the person gave the chat in Claude; the latest one counts. */
34
+ customTitle?: string;
35
+ /** The name Claude generated for the chat; the latest one counts. */
36
+ aiTitle?: string;
33
37
  summary?: string;
34
38
  startedAt: number;
35
39
  lastActivityAt: number;
@@ -43,6 +47,12 @@ type ClaudeParseState = ClaudeTurnClock & {
43
47
  turnEnded: boolean;
44
48
  };
45
49
 
50
+ function claudeName(value: unknown): string | undefined {
51
+ if (typeof value !== "string") return undefined;
52
+ const name = value.replace(/\s+/g, " ").trim();
53
+ return name ? name.slice(0, 120) : undefined;
54
+ }
55
+
46
56
  function applyClaudeLine(d: any, state: ClaudeParseState): void {
47
57
  if (!claudeTranscriptRecord(d)) return;
48
58
  observeClaudeTurn(d, state);
@@ -60,7 +70,8 @@ function applyClaudeLine(d: any, state: ClaudeParseState): void {
60
70
  }
61
71
  if (typeof d.gitBranch === "string" && d.gitBranch.trim()) state.branch = d.gitBranch;
62
72
  }
63
- if (d.type === "ai-title" && typeof d.content === "string" && !state.title) state.title = d.content;
73
+ if (d.type === "custom-title") state.customTitle = claudeName(d.customTitle) ?? state.customTitle;
74
+ if (d.type === "ai-title") state.aiTitle = claudeName(d.aiTitle ?? d.content) ?? state.aiTitle;
64
75
  if (!state.title && (d.type === "user" || d.message?.role === "user")) {
65
76
  const raw =
66
77
  typeof d.message?.content === "string"
@@ -74,7 +85,8 @@ function applyClaudeLine(d: any, state: ClaudeParseState): void {
74
85
  : typeof d.content === "string"
75
86
  ? d.content
76
87
  : "";
77
- const clean = String(raw).replace(/\s+/g, " ").trim();
88
+ // Named by what the person wrote, without the host's wrappers around it.
89
+ const clean = visibleUserText(raw).replace(/\s+/g, " ").trim();
78
90
  if (clean) state.title = clean.slice(0, 120);
79
91
  }
80
92
  const t = ts(d.timestamp);
@@ -241,7 +253,8 @@ export function* parseClaudeFileSteps(file: string): Generator<void, ClaudeParse
241
253
  const ownSession: SessionInfo = {
242
254
  sessionId: state.sessionId,
243
255
  agent: "claude",
244
- title: state.title,
256
+ // The chat keeps the name Claude shows for it: the person's, then Claude's, then the first message.
257
+ title: state.customTitle ?? state.aiTitle ?? state.title,
245
258
  cwd: state.cwd,
246
259
  worktree: state.cwd ? claudeCheckout({ ...state, cwd: state.cwd }) : undefined,
247
260
  branch: state.branch,
@@ -45,6 +45,8 @@ export function stripTranscriptMarkup(value: unknown): string {
45
45
  }
46
46
  text = text.replace(/<\/?user_query\b[^>]*>/gi, "");
47
47
  text = text.replace(/<\/?timestamp\b[^>]*>/gi, "");
48
+ // Claude Code wraps text the person pasted; the words are theirs, the tags are not.
49
+ text = text.replace(/<pasted_content\b[^>]*>[ \t]*\n?|\n?[ \t]*<\/pasted_content\s*>/gi, "");
48
50
  return text.replace(/^\s+|\s+$/g, "");
49
51
  }
50
52
 
@@ -10,7 +10,7 @@ keeps each phone response tied to the exact originating chat and prompt.
10
10
  Install the supported CLI on this computer, then run:
11
11
 
12
12
  ```bash
13
- npm install -g granttap-mcp@0.8.177
13
+ npm install -g granttap-mcp@0.8.179
14
14
  granttap setup
15
15
  granttap status
16
16
  ```
@@ -4,7 +4,7 @@
4
4
  "command": "node",
5
5
  "args": [
6
6
  "-e",
7
- "\"use strict\";\n\n// Cursor may start this MCP from any cwd. Execute JavaScript entry points with\n// Node itself: Windows batch shims require shell quoting that differs by host.\nconst { spawn } = require(\"node:child_process\");\nconst { existsSync } = require(\"node:fs\");\nconst { delimiter, dirname, join } = require(\"node:path\");\n\nconst PACKAGE = \"granttap-mcp@0.8.177\";\nconst dryRun = process.env.GRANTTAP_BOOTSTRAP_DRY_RUN === \"1\";\nconst platform = dryRun && process.env.GRANTTAP_BOOTSTRAP_PLATFORM\n ? process.env.GRANTTAP_BOOTSTRAP_PLATFORM : process.platform;\nconst nodeRoot = dryRun && process.env.GRANTTAP_BOOTSTRAP_NODE_ROOT\n ? process.env.GRANTTAP_BOOTSTRAP_NODE_ROOT : dirname(process.execPath);\nconst pathRoots = (process.env.PATH || \"\").split(delimiter).filter(Boolean);\nconst appData = process.env.APPDATA;\nconst roots = [nodeRoot, ...pathRoots, ...(appData ? [join(appData, \"npm\")] : [])];\nconst first = (paths) => paths.find((path) => existsSync(path));\n\nfunction launch() {\n if (platform !== \"win32\") {\n const installed = first(roots.map((root) => join(root, \"granttap-mcp\")));\n if (installed) return { command: installed, args: [] };\n const npx = first(roots.map((root) => join(root, \"npx\"))) || \"npx\";\n return { command: npx, args: [\"-y\", PACKAGE] };\n }\n const installed = first(roots.map((root) =>\n join(root, \"node_modules\", \"granttap-mcp\", \"bin\", \"granttap-mcp.mjs\")));\n if (installed) return { command: process.execPath, args: [installed] };\n const npx = first(roots.map((root) =>\n join(root, \"node_modules\", \"npm\", \"bin\", \"npx-cli.js\")));\n if (npx) return { command: process.execPath, args: [npx, \"-y\", PACKAGE] };\n throw new Error(\"Node.js/npm 22.13.0+ is required on this Windows device. Install npm and retry GrantTap.\");\n}\n\nlet target;\ntry { target = launch(); }\ncatch (error) {\n process.stderr.write(`[granttap] ${error.message}\\n`);\n process.exit(1);\n}\n\nif (dryRun) {\n process.stdout.write(JSON.stringify(target));\n process.exit(0);\n}\n\nconst child = spawn(target.command, target.args, { stdio: \"inherit\", windowsHide: true });\nchild.on(\"error\", (error) => {\n process.stderr.write(`[granttap] ${error.message}\\n`);\n process.exit(1);\n});\nchild.on(\"exit\", (code, signal) => {\n if (signal && platform !== \"win32\") {\n try { process.kill(process.pid, signal); } catch { process.exit(code ?? 1); }\n return;\n }\n process.exit(code ?? 1);\n});\n"
7
+ "\"use strict\";\n\n// Cursor may start this MCP from any cwd. Execute JavaScript entry points with\n// Node itself: Windows batch shims require shell quoting that differs by host.\nconst { spawn } = require(\"node:child_process\");\nconst { existsSync } = require(\"node:fs\");\nconst { delimiter, dirname, join } = require(\"node:path\");\n\nconst PACKAGE = \"granttap-mcp@0.8.179\";\nconst dryRun = process.env.GRANTTAP_BOOTSTRAP_DRY_RUN === \"1\";\nconst platform = dryRun && process.env.GRANTTAP_BOOTSTRAP_PLATFORM\n ? process.env.GRANTTAP_BOOTSTRAP_PLATFORM : process.platform;\nconst nodeRoot = dryRun && process.env.GRANTTAP_BOOTSTRAP_NODE_ROOT\n ? process.env.GRANTTAP_BOOTSTRAP_NODE_ROOT : dirname(process.execPath);\nconst pathRoots = (process.env.PATH || \"\").split(delimiter).filter(Boolean);\nconst appData = process.env.APPDATA;\nconst roots = [nodeRoot, ...pathRoots, ...(appData ? [join(appData, \"npm\")] : [])];\nconst first = (paths) => paths.find((path) => existsSync(path));\n\nfunction launch() {\n if (platform !== \"win32\") {\n const installed = first(roots.map((root) => join(root, \"granttap-mcp\")));\n if (installed) return { command: installed, args: [] };\n const npx = first(roots.map((root) => join(root, \"npx\"))) || \"npx\";\n return { command: npx, args: [\"-y\", PACKAGE] };\n }\n const installed = first(roots.map((root) =>\n join(root, \"node_modules\", \"granttap-mcp\", \"bin\", \"granttap-mcp.mjs\")));\n if (installed) return { command: process.execPath, args: [installed] };\n const npx = first(roots.map((root) =>\n join(root, \"node_modules\", \"npm\", \"bin\", \"npx-cli.js\")));\n if (npx) return { command: process.execPath, args: [npx, \"-y\", PACKAGE] };\n throw new Error(\"Node.js/npm 22.13.0+ is required on this Windows device. Install npm and retry GrantTap.\");\n}\n\nlet target;\ntry { target = launch(); }\ncatch (error) {\n process.stderr.write(`[granttap] ${error.message}\\n`);\n process.exit(1);\n}\n\nif (dryRun) {\n process.stdout.write(JSON.stringify(target));\n process.exit(0);\n}\n\nconst child = spawn(target.command, target.args, { stdio: \"inherit\", windowsHide: true });\nchild.on(\"error\", (error) => {\n process.stderr.write(`[granttap] ${error.message}\\n`);\n process.exit(1);\n});\nchild.on(\"exit\", (code, signal) => {\n if (signal && platform !== \"win32\") {\n try { process.kill(process.pid, signal); } catch { process.exit(code ?? 1); }\n return;\n }\n process.exit(code ?? 1);\n});\n"
8
8
  ]
9
9
  }
10
10
  }
@@ -7,7 +7,7 @@ const { spawn } = require("node:child_process");
7
7
  const { existsSync } = require("node:fs");
8
8
  const { delimiter, dirname, join } = require("node:path");
9
9
 
10
- const PACKAGE = "granttap-mcp@0.8.177";
10
+ const PACKAGE = "granttap-mcp@0.8.179";
11
11
  const dryRun = process.env.GRANTTAP_BOOTSTRAP_DRY_RUN === "1";
12
12
  const platform = dryRun && process.env.GRANTTAP_BOOTSTRAP_PLATFORM
13
13
  ? process.env.GRANTTAP_BOOTSTRAP_PLATFORM : process.platform;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "granttap-mcp",
3
- "version": "0.8.177",
3
+ "version": "0.8.179",
4
4
  "description": "Commercial computer runtime connecting local coding agents to GrantTap on Mac, iPhone, iPad and Apple Watch.",
5
5
  "type": "module",
6
6
  "bin": {