agent-deeplinks 0.1.16 → 0.1.17
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 +9 -1
- package/dist/catalog.d.ts +10 -10
- package/dist/catalog.js +22 -10
- package/dist/index.d.ts +2 -0
- package/dist/index.js +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -19,7 +19,7 @@ npm install https://github.com/lalalune/agent-deeplinks/releases/latest/download
|
|
|
19
19
|
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.
|
|
20
20
|
|
|
21
21
|
```sh
|
|
22
|
-
npm install ./agent-deeplinks-0.1.
|
|
22
|
+
npm install ./agent-deeplinks-0.1.17.tgz
|
|
23
23
|
```
|
|
24
24
|
|
|
25
25
|
## Usage
|
|
@@ -50,6 +50,14 @@ For Hermes and OpenClaw, set `server` to the URL of your Webapp or Control UI wh
|
|
|
50
50
|
|
|
51
51
|
For OpenCode 2.x on the web or in an iPhone browser, supply the server origin in `server` and select your project after sign-in. The Web route's optional `directory` parameter builds the older OpenCode 1.x project URL. OpenCode Desktop accepts the local directory and an optional prompt.
|
|
52
52
|
|
|
53
|
+
For Android, pass a one-time `/auth/connect/<code>` URL from [`opencode pair`](https://opencode.ai/docs/cli/commands#pair) to `getOpenCodeAndroidPairingLink`. It builds a custom-scheme link to the native pairing review without fetching the one-time URL. The user confirms the connection in OpenCode. The server address in the issued URL must be reachable from the phone.
|
|
54
|
+
|
|
55
|
+
```ts
|
|
56
|
+
import { getOpenCodeAndroidPairingLink } from "agent-deeplinks"
|
|
57
|
+
|
|
58
|
+
const href = getOpenCodeAndroidPairingLink(issuedPairingUrl)
|
|
59
|
+
```
|
|
60
|
+
|
|
53
61
|
T3 Code accepts an optional server origin on the web. Leave it unset for the hosted chooser. For a self-hosted link, pair that browser with your T3 server and let the workspace connect first.
|
|
54
62
|
|
|
55
63
|
ZCode's web, iOS, and Android links open its versioned Remote Control sign-in page in a browser. Connecting requires the same account and region as an online desktop with Remote Control enabled. [ZCode Remote Control instructions](https://zcode.z.ai/en/docs/remote-control)
|
package/dist/catalog.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ declare const catalog: {
|
|
|
49
49
|
};
|
|
50
50
|
readonly desktop: {
|
|
51
51
|
readonly url: "cursor://anysphere.cursor-deeplink/prompt";
|
|
52
|
-
readonly sources: readonly ["https://cursor.com/docs/reference/deeplinks", "https://
|
|
53
|
-
readonly note: "macOS
|
|
52
|
+
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"];
|
|
53
|
+
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.";
|
|
54
54
|
readonly behavior: "draft";
|
|
55
55
|
readonly evidence: "documented";
|
|
56
56
|
readonly fields: {
|
|
@@ -306,11 +306,11 @@ declare const catalog: {
|
|
|
306
306
|
readonly url: "claude://claude.ai/new";
|
|
307
307
|
readonly behavior: "draft";
|
|
308
308
|
readonly evidence: "verified";
|
|
309
|
-
readonly sources: readonly ["https://support.claude.com/en/articles/14729294-open-claude-desktop-with-a-link"];
|
|
309
|
+
readonly sources: readonly ["https://support.claude.com/en/articles/14729294-open-claude-desktop-with-a-link", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460279575/job/138680666371", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460279575/job/138680666686"];
|
|
310
310
|
readonly fields: {
|
|
311
311
|
readonly prompt: "q";
|
|
312
312
|
};
|
|
313
|
-
readonly note: "Prefill verified in Claude 6.28899.6 on macOS.
|
|
313
|
+
readonly note: "Prefill verified in Claude 6.28899.6 on macOS. Windows and Ubuntu received the exact link and showed first-run onboarding. Signed-in composers on those platforms still need verification.";
|
|
314
314
|
};
|
|
315
315
|
readonly web: {
|
|
316
316
|
readonly url: "https://claude.ai/new";
|
|
@@ -365,12 +365,12 @@ declare const catalog: {
|
|
|
365
365
|
readonly url: "claude://code/new";
|
|
366
366
|
readonly behavior: "draft";
|
|
367
367
|
readonly evidence: "verified";
|
|
368
|
-
readonly sources: readonly ["https://support.claude.com/en/articles/14729294-open-claude-desktop-with-a-link"];
|
|
368
|
+
readonly sources: readonly ["https://support.claude.com/en/articles/14729294-open-claude-desktop-with-a-link", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460279575/job/138680666371", "https://github.com/lalalune/agent-deeplinks/actions/runs/45460279575/job/138680666686"];
|
|
369
369
|
readonly fields: {
|
|
370
370
|
readonly prompt: "q";
|
|
371
371
|
readonly folder: "folder";
|
|
372
372
|
};
|
|
373
|
-
readonly note: "Prefill verified in Claude Desktop’s Code tab in 6.28899.6 on macOS.
|
|
373
|
+
readonly note: "Prefill verified in Claude Desktop’s Code tab in 6.28899.6 on macOS. Windows and Ubuntu received the exact link and showed first-run onboarding. Signed-in composers on those platforms still need verification.";
|
|
374
374
|
};
|
|
375
375
|
readonly ios: {
|
|
376
376
|
readonly url: "claude://code/new";
|
|
@@ -411,7 +411,7 @@ declare const catalog: {
|
|
|
411
411
|
readonly repo: "repo";
|
|
412
412
|
};
|
|
413
413
|
readonly promptLimit: 5000;
|
|
414
|
-
readonly note: "macOS terminal delivery checked. Anthropic also documents the Windows and Linux handlers. cwd takes precedence over repo.";
|
|
414
|
+
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.";
|
|
415
415
|
};
|
|
416
416
|
readonly vscode: {
|
|
417
417
|
readonly url: "vscode://anthropic.claude-code/open";
|
|
@@ -592,7 +592,7 @@ declare const catalog: {
|
|
|
592
592
|
readonly auto_send: "false";
|
|
593
593
|
};
|
|
594
594
|
readonly experimental: true;
|
|
595
|
-
readonly note: "Kimi 3.1.5
|
|
595
|
+
readonly note: "The blank HTTPS link opened Kimi 3.1.5 on Android 16 through verified App Links. The experimental prompt link reached first-launch consent. Visible prefill remains unverified.";
|
|
596
596
|
};
|
|
597
597
|
};
|
|
598
598
|
};
|
|
@@ -800,8 +800,8 @@ declare const catalog: {
|
|
|
800
800
|
readonly url: "opencode://";
|
|
801
801
|
readonly behavior: "launch";
|
|
802
802
|
readonly evidence: "source";
|
|
803
|
-
readonly sources: readonly ["https://github.com/anomalyco/opencode-android/blob/v0.8.
|
|
804
|
-
readonly note: "Opens the Android client. The
|
|
803
|
+
readonly sources: readonly ["https://github.com/anomalyco/opencode-android/blob/v0.8.8/app/src/main/AndroidManifest.xml", "https://github.com/anomalyco/opencode-android/blob/v0.8.8/server/src/main/kotlin/ai/opencode/server/OpenCodePairingLink.kt"];
|
|
804
|
+
readonly note: "Opens the Android client. Use getOpenCodeAndroidPairingLink with an issued URL to open pairing review. The official development build paired with OpenCode 2.4.1 and showed a blank session in the paired project.";
|
|
805
805
|
};
|
|
806
806
|
};
|
|
807
807
|
};
|
package/dist/catalog.js
CHANGED
|
@@ -12,6 +12,11 @@ const cursorCloudDocs = "https://cursor.com/docs/cloud-agent";
|
|
|
12
12
|
const cursorCloud = "https://cursor.com/agents";
|
|
13
13
|
const claudeCodeDocs = "https://code.claude.com/docs/en/deep-links";
|
|
14
14
|
const claudeDesktopDocs = "https://support.claude.com/en/articles/14729294-open-claude-desktop-with-a-link";
|
|
15
|
+
const claudeDesktopChecks = [
|
|
16
|
+
claudeDesktopDocs,
|
|
17
|
+
"https://github.com/lalalune/agent-deeplinks/actions/runs/45460279575/job/138680666371",
|
|
18
|
+
"https://github.com/lalalune/agent-deeplinks/actions/runs/45460279575/job/138680666686",
|
|
19
|
+
];
|
|
15
20
|
const claudeMobileDocs = "https://support.claude.com/en/articles/14898120-open-the-claude-mobile-app-with-a-link";
|
|
16
21
|
const claudeVsCodeDocs = "https://code.claude.com/docs/en/vs-code#launch-a-vs-code-tab-from-other-tools";
|
|
17
22
|
const codexDocs = "https://learn.chatgpt.com/docs/reference/commands";
|
|
@@ -137,8 +142,12 @@ const catalog = {
|
|
|
137
142
|
desktop: {
|
|
138
143
|
...cursorRoute,
|
|
139
144
|
url: "cursor://anysphere.cursor-deeplink/prompt",
|
|
140
|
-
sources: [
|
|
141
|
-
|
|
145
|
+
sources: [
|
|
146
|
+
cursorDocs,
|
|
147
|
+
"https://github.com/lalalune/agent-deeplinks/actions/runs/45460026095/job/138679769952",
|
|
148
|
+
"https://github.com/lalalune/agent-deeplinks/actions/runs/45460380555/job/138681026834",
|
|
149
|
+
],
|
|
150
|
+
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.",
|
|
142
151
|
},
|
|
143
152
|
ios: {
|
|
144
153
|
url: cursorCloud,
|
|
@@ -320,9 +329,9 @@ const catalog = {
|
|
|
320
329
|
url: "claude://claude.ai/new",
|
|
321
330
|
behavior: "draft",
|
|
322
331
|
evidence: "verified",
|
|
323
|
-
sources:
|
|
332
|
+
sources: claudeDesktopChecks,
|
|
324
333
|
fields: { prompt: "q" },
|
|
325
|
-
note: "Prefill verified in Claude 6.28899.6 on macOS.
|
|
334
|
+
note: "Prefill verified in Claude 6.28899.6 on macOS. Windows and Ubuntu received the exact link and showed first-run onboarding. Signed-in composers on those platforms still need verification.",
|
|
326
335
|
},
|
|
327
336
|
web: {
|
|
328
337
|
url: "https://claude.ai/new",
|
|
@@ -368,9 +377,9 @@ const catalog = {
|
|
|
368
377
|
url: "claude://code/new",
|
|
369
378
|
behavior: "draft",
|
|
370
379
|
evidence: "verified",
|
|
371
|
-
sources:
|
|
380
|
+
sources: claudeDesktopChecks,
|
|
372
381
|
fields: { prompt: "q", folder: "folder" },
|
|
373
|
-
note: "Prefill verified in Claude Desktop’s Code tab in 6.28899.6 on macOS.
|
|
382
|
+
note: "Prefill verified in Claude Desktop’s Code tab in 6.28899.6 on macOS. Windows and Ubuntu received the exact link and showed first-run onboarding. Signed-in composers on those platforms still need verification.",
|
|
374
383
|
},
|
|
375
384
|
ios: claudeCodeMobileRoute,
|
|
376
385
|
android: claudeCodeMobileRoute,
|
|
@@ -381,7 +390,7 @@ const catalog = {
|
|
|
381
390
|
sources: [claudeCodeDocs],
|
|
382
391
|
fields: { prompt: "q", cwd: "cwd", repo: "repo" },
|
|
383
392
|
promptLimit: 5_000,
|
|
384
|
-
note: "macOS terminal delivery checked. Anthropic also documents the Windows and Linux handlers. cwd takes precedence over repo.",
|
|
393
|
+
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.",
|
|
385
394
|
},
|
|
386
395
|
vscode: {
|
|
387
396
|
url: "vscode://anthropic.claude-code/open",
|
|
@@ -537,7 +546,7 @@ const catalog = {
|
|
|
537
546
|
required: ["prompt"],
|
|
538
547
|
query: { create_new: "true", auto_send: "false" },
|
|
539
548
|
experimental: true,
|
|
540
|
-
note: "Kimi 3.1.5
|
|
549
|
+
note: "The blank HTTPS link opened Kimi 3.1.5 on Android 16 through verified App Links. The experimental prompt link reached first-launch consent. Visible prefill remains unverified.",
|
|
541
550
|
},
|
|
542
551
|
},
|
|
543
552
|
},
|
|
@@ -675,8 +684,11 @@ const catalog = {
|
|
|
675
684
|
url: "opencode://",
|
|
676
685
|
behavior: "launch",
|
|
677
686
|
evidence: "source",
|
|
678
|
-
sources: [
|
|
679
|
-
|
|
687
|
+
sources: [
|
|
688
|
+
"https://github.com/anomalyco/opencode-android/blob/v0.8.8/app/src/main/AndroidManifest.xml",
|
|
689
|
+
"https://github.com/anomalyco/opencode-android/blob/v0.8.8/server/src/main/kotlin/ai/opencode/server/OpenCodePairingLink.kt",
|
|
690
|
+
],
|
|
691
|
+
note: "Opens the Android client. Use getOpenCodeAndroidPairingLink with an issued URL to open pairing review. The official development build paired with OpenCode 2.4.1 and showed a blank session in the paired project.",
|
|
680
692
|
},
|
|
681
693
|
},
|
|
682
694
|
},
|
package/dist/index.d.ts
CHANGED
|
@@ -15,5 +15,7 @@ export interface LinkOptions extends Partial<Record<LinkField, string>> {
|
|
|
15
15
|
export declare function getAgentLink(agent: AgentId, platform: Platform, options?: LinkOptions): string | null;
|
|
16
16
|
/** Open Hermes Desktop's install review for a qualified skill or a direct skill URL. */
|
|
17
17
|
export declare function getHermesSkillLink(identifier: string): string | null;
|
|
18
|
+
/** Convert an OpenCode CLI pairing URL to the Android app's native pairing review. */
|
|
19
|
+
export declare function getOpenCodeAndroidPairingLink(pairingUrl: string): string | null;
|
|
18
20
|
/** Return a self-contained SVG URL for an agent with a bundled brand asset. */
|
|
19
21
|
export declare function getAgentIcon(agent: AgentId): string | null;
|
package/dist/index.js
CHANGED
|
@@ -6,6 +6,7 @@ const githubRepo = /^https:\/\/github\.com\/[\w.-]+\/[\w.-]+\/?$/iu;
|
|
|
6
6
|
const hiddenPathCharacters = /[\p{Cc}\p{Cf}]/u;
|
|
7
7
|
const qualifiedSkill = /^[\w.@-]+(?:\/[\w.@-]+)+$/u;
|
|
8
8
|
const invalidSessionId = /[\\/\u0000]|\.\./u;
|
|
9
|
+
const openCodePairingUrl = /^([A-Za-z]+:\/\/[^/@\\?#]+)\/auth\/connect\/([A-Za-z0-9_-]+)$/u;
|
|
9
10
|
function parseServerUrl(value) {
|
|
10
11
|
try {
|
|
11
12
|
const url = new URL(value);
|
|
@@ -137,6 +138,18 @@ export function getHermesSkillLink(identifier) {
|
|
|
137
138
|
}
|
|
138
139
|
return `hermes://skill/install?identifier=${encodeURIComponent(skill)}`;
|
|
139
140
|
}
|
|
141
|
+
/** Convert an OpenCode CLI pairing URL to the Android app's native pairing review. */
|
|
142
|
+
export function getOpenCodeAndroidPairingLink(pairingUrl) {
|
|
143
|
+
if (typeof pairingUrl !== "string" || hiddenPathCharacters.test(pairingUrl))
|
|
144
|
+
return null;
|
|
145
|
+
const [, address, code] = openCodePairingUrl.exec(pairingUrl.trim()) ?? [];
|
|
146
|
+
if (!address || !code)
|
|
147
|
+
return null;
|
|
148
|
+
const server = parseServerUrl(address);
|
|
149
|
+
if (!server || server.port === "0")
|
|
150
|
+
return null;
|
|
151
|
+
return `opencode://pair?code=${code}&url=${encodeURIComponent(server.origin)}`;
|
|
152
|
+
}
|
|
140
153
|
/** Return a self-contained SVG URL for an agent with a bundled brand asset. */
|
|
141
154
|
export function getAgentIcon(agent) {
|
|
142
155
|
return Object.hasOwn(iconSources, agent) ? iconSources[agent] ?? null : null;
|