agent-deeplinks 0.1.25 → 0.1.27

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
@@ -21,7 +21,7 @@ On npm 12, add `--allow-remote=root` when installing the tarball URL. [npm 12 in
21
21
  You can also download the ZIP from GitHub Releases and install its bundled npm tarball. The ZIP includes a static demo and the SVG files.
22
22
 
23
23
  ```sh
24
- npm install ./agent-deeplinks-0.1.25.tgz
24
+ npm install ./agent-deeplinks-0.1.27.tgz
25
25
  ```
26
26
 
27
27
  ## Usage
@@ -40,6 +40,8 @@ console.log(url, route?.behavior, agents.cursor.name)
40
40
 
41
41
  Experimental routes require `allowExperimental: true`. Routes that auto-submit require `allowSend: true`. Prompt text goes into the URL and can appear in browser history and logs. Keep credentials and private data out of shareable links.
42
42
 
43
+ Cursor Desktop links encode the draft for both decoders in the app. The official Cursor web handoff can turn literal plus signs into spaces in the desktop review. Choose Desktop when the exact punctuation matters. [Cursor verification](research/coding-agents.md#cursor)
44
+
43
45
  Claude Code's iOS, Android, and HTTPS draft links support a prompt, a session `mode` of `plan` or `code`, an optional GitHub `repo` in `owner/name` format, and an optional `branch` when a repository is supplied.
44
46
 
45
47
  Use `getAgentLink("claude-code", "vscode", { prompt: "Review my changes." })` to prefill a draft in the Claude Code extension for VS Code. Pass `session` to resume a session from the current workspace.
@@ -88,8 +90,15 @@ ZCode's web, iOS, and Android links open its versioned Remote Control sign-in pa
88
90
  Kimi Code Desktop accepts a local `directory` and opens a fresh draft. Hosted Remote Control uses the same Kimi account as the running host. Supply `server` for another region or for a local address from `kimi web`, then enter the local server token in the browser.
89
91
 
90
92
  Call `getAgentLink("openclaw", "desktop")` or choose `"ios"` to open the dashboard. With a connected Gateway, supplying a prompt opens OpenClaw's run confirmation.
93
+ For the macOS [Add Gateway form](https://docs.openclaw.ai/platforms/mac/remote#open-the-mac-app-from-a-website), supply the Gateway HTTPS base address in `server`. The address can include a port and path. The user reviews it and chooses **Connect** in OpenClaw.
91
94
  On Android, pass the configured Gateway address in `server` to open its Control UI in a browser.
92
95
 
96
+ ```ts
97
+ const gatewaySetup = getAgentLink("openclaw", "desktop", {
98
+ server: "https://gateway.example.com/openclaw/",
99
+ })
100
+ ```
101
+
93
102
  Use `getHermesSkillLink("official/security/1password")` or pass a direct skill URL to open Hermes Desktop's [skill install review](https://hermes-agent.nousresearch.com/docs/user-guide/features/skills#desktop-install-links). The signed macOS canary displayed the requested skill and destination before installation.
94
103
 
95
104
  ### shadcn/ui
package/dist/catalog.d.ts CHANGED
@@ -45,8 +45,8 @@ declare const catalog: {
45
45
  readonly launchUrl: "https://cursor.com/agents";
46
46
  readonly behavior: "handoff";
47
47
  readonly evidence: "verified";
48
- readonly sources: readonly ["https://cursor.com/docs/reference/deeplinks", "https://cursor.com/docs/cloud-agent"];
49
- readonly note: "The browser handoff displayed the draft and produced the exact native link. An empty link opens Cloud Agents in the browser.";
48
+ readonly sources: readonly ["https://cursor.com/docs/reference/deeplinks", "https://cursor.com/docs/cloud-agent", "https://github.com/lalalune/agent-deeplinks/actions/runs/45487974246/artifacts/14965396228"];
49
+ readonly note: "The browser preview reached Cursor’s native review on Ubuntu. Cursor’s handoff turned a literal plus into a space in that review. An empty link opens Cloud Agents in the browser.";
50
50
  readonly fields: {
51
51
  readonly prompt: "text";
52
52
  };
@@ -55,10 +55,11 @@ declare const catalog: {
55
55
  };
56
56
  readonly desktop: {
57
57
  readonly url: "cursor://anysphere.cursor-deeplink/prompt";
58
- readonly sources: readonly ["https://cursor.com/docs/reference/deeplinks", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460026095/job/138679769952", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460380555/job/138681026834"];
59
- readonly note: "macOS and Ubuntu opened Cursor Agents at sign-in. Windows received the exact link after first launch registered Cursor's handler. Signed-in composer prefill remains unverified.";
60
- readonly behavior: "draft";
61
- readonly evidence: "documented";
58
+ readonly evidence: "verified";
59
+ readonly encodeQueryValuesTwice: true;
60
+ readonly sources: readonly ["https://cursor.com/docs/reference/deeplinks", "https://github.com/lalalune/agent-deeplinks/actions/runs/45491150004/job/138789493816", "https://github.com/lalalune/agent-deeplinks/actions/runs/45491628951/job/138791208997", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460026095/job/138679769952", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460380555/job/138681026834", "https://github.com/lalalune/agent-deeplinks/actions/runs/45489023213/artifacts/14966850011"];
61
+ readonly note: "Cursor 3.31.15 opened Create chat with prompt in the running classic editor on macOS and Ubuntu. The exact multiline Unicode text was visible in the Ubuntu window and reported by both renderers.";
62
+ readonly behavior: "confirm";
62
63
  readonly fields: {
63
64
  readonly prompt: "text";
64
65
  };
@@ -126,8 +127,8 @@ declare const catalog: {
126
127
  readonly url: "https://cursor.com/grok-bot/link/v1/prompt";
127
128
  readonly behavior: "handoff";
128
129
  readonly evidence: "verified";
129
- readonly note: "The handoff attempts to open Grok Bot. The button and automatic dispatch used the exact native URL in desktop and mobile browser profiles.";
130
- readonly sources: readonly ["https://docs.x.ai/grok-bot/deep-links"];
130
+ readonly sources: readonly ["https://docs.x.ai/grok-bot/deep-links", "https://github.com/lalalune/agent-deeplinks/actions/runs/45488932416/artifacts/14966115165"];
131
+ readonly note: "The published Playground opened the native Grok Bot sign-in screen through stock Chrome on Ubuntu after the browser’s one-time approval. The mobile browser preview also produced the exact native URL.";
131
132
  readonly fields: {
132
133
  readonly prompt: "text";
133
134
  readonly botId: "id";
@@ -416,14 +417,14 @@ declare const catalog: {
416
417
  readonly url: "claude-cli://open";
417
418
  readonly behavior: "draft";
418
419
  readonly evidence: "documented";
419
- readonly sources: readonly ["https://code.claude.com/docs/en/deep-links"];
420
+ readonly sources: readonly ["https://code.claude.com/docs/en/deep-links", "https://github.com/lalalune/agent-deeplinks/actions/runs/45488368601/artifacts/14965540998", "https://github.com/lalalune/agent-deeplinks/actions/runs/45487910168/artifacts/14964986411"];
420
421
  readonly fields: {
421
422
  readonly prompt: "q";
422
423
  readonly cwd: "cwd";
423
424
  readonly repo: "repo";
424
425
  };
425
426
  readonly promptLimit: 5000;
426
- readonly note: "macOS terminal delivery checked. The fresh local Claude Code session reached account selection. Anthropic also documents the Windows and Linux handlers. cwd takes precedence over repo.";
427
+ readonly note: "Native launch delivered the exact prompt to Claude Code on macOS, Ubuntu, and Windows. Ubuntu and Windows opened the requested working directory. Signed-in terminal prefill remains unverified. cwd takes precedence over repo.";
427
428
  };
428
429
  readonly vscode: {
429
430
  readonly url: "vscode://anthropic.claude-code/open";
@@ -940,15 +941,17 @@ declare const catalog: {
940
941
  readonly url: "openclaw://agent";
941
942
  readonly behavior: "confirm";
942
943
  readonly evidence: "verified";
943
- readonly sources: readonly ["https://github.com/openclaw/openclaw/blob/v2026.11.7/apps/macos/Sources/OpenClaw/DeepLinks.swift", "https://github.com/lalalune/agent-deeplinks/actions/runs/45473423005/job/138727187042", "https://github.com/lalalune/agent-deeplinks/actions/runs/45476772927/job/138738941929"];
944
+ readonly sources: readonly ["https://github.com/openclaw/openclaw/blob/v2026.11.7/apps/macos/Sources/OpenClaw/DeepLinks.swift", "https://github.com/lalalune/agent-deeplinks/actions/runs/45473423005/job/138727187042", "https://github.com/lalalune/agent-deeplinks/actions/runs/45476772927/job/138738941929", "https://docs.openclaw.ai/platforms/mac/remote#open-the-mac-app-from-a-website", "https://github.com/lalalune/agent-deeplinks/actions/runs/45491339853/job/138790178318"];
944
945
  readonly fields: {
945
946
  readonly prompt: "message";
947
+ readonly server: "";
946
948
  };
949
+ readonly serverBehavior: "confirm";
947
950
  readonly required: readonly ["prompt"];
948
951
  readonly launchUrl: "openclaw://dashboard";
949
952
  readonly promptLimit: 240;
950
953
  readonly promptLimitUnit: "grapheme";
951
- readonly note: "With a connected Gateway, the signed macOS 2026.11.7 app showed the exact message and Run confirmation. The blank link opened the app’s embedded Control UI, which displayed Model Setup in the fresh profile.";
954
+ readonly note: "With a connected Gateway, signed macOS 2026.11.7 showed the exact message and Run confirmation. A blank link opened its Control UI. Version 2026.11.8 displayed the exact HTTPS address in Add Gateway.";
952
955
  };
953
956
  readonly ios: {
954
957
  readonly url: "openclaw://agent";
package/dist/catalog.js CHANGED
@@ -66,7 +66,7 @@ const antigravityMobileRoute = {
66
66
  note: "Opens Antigravity Remote Control in a mobile browser. Sign-in verified in iPhone WebKit and Android Chromium profiles. Google supports adding it to the home screen.",
67
67
  };
68
68
  const cursorRoute = {
69
- behavior: "draft",
69
+ behavior: "confirm",
70
70
  evidence: "documented",
71
71
  sources: [cursorDocs],
72
72
  fields: { prompt: "text" },
@@ -148,18 +148,27 @@ const catalog = {
148
148
  launchUrl: cursorCloud,
149
149
  behavior: "handoff",
150
150
  evidence: "verified",
151
- sources: [cursorDocs, cursorCloudDocs],
152
- note: "The browser handoff displayed the draft and produced the exact native link. An empty link opens Cloud Agents in the browser.",
151
+ sources: [
152
+ cursorDocs,
153
+ cursorCloudDocs,
154
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45487974246/artifacts/14965396228",
155
+ ],
156
+ note: "The browser preview reached Cursor’s native review on Ubuntu. Cursor’s handoff turned a literal plus into a space in that review. An empty link opens Cloud Agents in the browser.",
153
157
  },
154
158
  desktop: {
155
159
  ...cursorRoute,
156
160
  url: "cursor://anysphere.cursor-deeplink/prompt",
161
+ evidence: "verified",
162
+ encodeQueryValuesTwice: true,
157
163
  sources: [
158
164
  cursorDocs,
165
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45491150004/job/138789493816",
166
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45491628951/job/138791208997",
159
167
  "https://github.com/lalalune/agent-deeplinks/actions/runs/45460026095/job/138679769952",
160
168
  "https://github.com/lalalune/agent-deeplinks/actions/runs/45460380555/job/138681026834",
169
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45489023213/artifacts/14966850011",
161
170
  ],
162
- note: "macOS and Ubuntu opened Cursor Agents at sign-in. Windows received the exact link after first launch registered Cursor's handler. Signed-in composer prefill remains unverified.",
171
+ note: "Cursor 3.31.15 opened Create chat with prompt in the running classic editor on macOS and Ubuntu. The exact multiline Unicode text was visible in the Ubuntu window and reported by both renderers.",
163
172
  },
164
173
  ios: {
165
174
  url: cursorCloud,
@@ -219,7 +228,8 @@ const catalog = {
219
228
  url: "https://cursor.com/grok-bot/link/v1/prompt",
220
229
  behavior: "handoff",
221
230
  evidence: "verified",
222
- note: "The handoff attempts to open Grok Bot. The button and automatic dispatch used the exact native URL in desktop and mobile browser profiles.",
231
+ sources: [grokBotDocs, "https://github.com/lalalune/agent-deeplinks/actions/runs/45488932416/artifacts/14966115165"],
232
+ note: "The published Playground opened the native Grok Bot sign-in screen through stock Chrome on Ubuntu after the browser’s one-time approval. The mobile browser preview also produced the exact native URL.",
223
233
  },
224
234
  desktop: {
225
235
  ...grokBotRoute,
@@ -414,10 +424,14 @@ const catalog = {
414
424
  url: "claude-cli://open",
415
425
  behavior: "draft",
416
426
  evidence: "documented",
417
- sources: [claudeCodeDocs],
427
+ sources: [
428
+ claudeCodeDocs,
429
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45488368601/artifacts/14965540998",
430
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45487910168/artifacts/14964986411",
431
+ ],
418
432
  fields: { prompt: "q", cwd: "cwd", repo: "repo" },
419
433
  promptLimit: 5_000,
420
- note: "macOS terminal delivery checked. The fresh local Claude Code session reached account selection. Anthropic also documents the Windows and Linux handlers. cwd takes precedence over repo.",
434
+ note: "Native launch delivered the exact prompt to Claude Code on macOS, Ubuntu, and Windows. Ubuntu and Windows opened the requested working directory. Signed-in terminal prefill remains unverified. cwd takes precedence over repo.",
421
435
  },
422
436
  vscode: {
423
437
  url: "vscode://anthropic.claude-code/open",
@@ -832,13 +846,16 @@ const catalog = {
832
846
  "https://github.com/openclaw/openclaw/blob/v2026.11.7/apps/macos/Sources/OpenClaw/DeepLinks.swift",
833
847
  "https://github.com/lalalune/agent-deeplinks/actions/runs/45473423005/job/138727187042",
834
848
  "https://github.com/lalalune/agent-deeplinks/actions/runs/45476772927/job/138738941929",
849
+ "https://docs.openclaw.ai/platforms/mac/remote#open-the-mac-app-from-a-website",
850
+ "https://github.com/lalalune/agent-deeplinks/actions/runs/45491339853/job/138790178318",
835
851
  ],
836
- fields: { prompt: "message" },
852
+ fields: { prompt: "message", server: "" },
853
+ serverBehavior: "confirm",
837
854
  required: ["prompt"],
838
855
  launchUrl: "openclaw://dashboard",
839
856
  promptLimit: 240,
840
857
  promptLimitUnit: "grapheme",
841
- note: "With a connected Gateway, the signed macOS 2026.11.7 app showed the exact message and Run confirmation. The blank link opened the app’s embedded Control UI, which displayed Model Setup in the fresh profile.",
858
+ note: "With a connected Gateway, signed macOS 2026.11.7 showed the exact message and Run confirmation. A blank link opened its Control UI. Version 2026.11.8 displayed the exact HTTPS address in Add Gateway.",
842
859
  },
843
860
  ios: {
844
861
  url: "openclaw://agent",
package/dist/index.js CHANGED
@@ -135,6 +135,15 @@ export function getAgentLink(agent, platform, options = {}) {
135
135
  if ((route.experimental && !options.allowExperimental) ||
136
136
  (route.behavior === "send" && !options.allowSend))
137
137
  return null;
138
+ if (agent === "openclaw" && platform === "desktop" && fields.server) {
139
+ if (fields.prompt || hiddenPathCharacters.test(fields.server) ||
140
+ !/^https:\/\/[^/\s@\\?#]+(?:\/[^\\?#]*)?$/iu.test(fields.server))
141
+ return null;
142
+ const gateway = parseServerUrl(fields.server);
143
+ return gateway && gateway.port !== "0"
144
+ ? `openclaw://gateway/add?url=${encodeURIComponent(gateway.href)}`
145
+ : null;
146
+ }
138
147
  if (route.required?.some((field) => !fields[field]?.trim()))
139
148
  return null;
140
149
  if (agent === "github-copilot" && platform !== "vscode" &&
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agent-deeplinks",
3
- "version": "0.1.25",
3
+ "version": "0.1.27",
4
4
  "description": "Evidence-backed deep links for AI agents with SVG icons and React helpers.",
5
5
  "type": "module",
6
6
  "license": "MIT",