agent-deeplinks 0.1.26 → 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 +8 -1
- package/dist/catalog.d.ts +7 -5
- package/dist/catalog.js +9 -3
- package/dist/index.js +9 -0
- package/package.json +1 -1
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.
|
|
24
|
+
npm install ./agent-deeplinks-0.1.27.tgz
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
## Usage
|
|
@@ -90,8 +90,15 @@ ZCode's web, iOS, and Android links open its versioned Remote Control sign-in pa
|
|
|
90
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.
|
|
91
91
|
|
|
92
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.
|
|
93
94
|
On Android, pass the configured Gateway address in `server` to open its Control UI in a browser.
|
|
94
95
|
|
|
96
|
+
```ts
|
|
97
|
+
const gatewaySetup = getAgentLink("openclaw", "desktop", {
|
|
98
|
+
server: "https://gateway.example.com/openclaw/",
|
|
99
|
+
})
|
|
100
|
+
```
|
|
101
|
+
|
|
95
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.
|
|
96
103
|
|
|
97
104
|
### shadcn/ui
|
package/dist/catalog.d.ts
CHANGED
|
@@ -55,11 +55,11 @@ declare const catalog: {
|
|
|
55
55
|
};
|
|
56
56
|
readonly desktop: {
|
|
57
57
|
readonly url: "cursor://anysphere.cursor-deeplink/prompt";
|
|
58
|
+
readonly evidence: "verified";
|
|
58
59
|
readonly encodeQueryValuesTwice: true;
|
|
59
|
-
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", "https://github.com/lalalune/agent-deeplinks/actions/runs/45489023213/artifacts/14966850011"];
|
|
60
|
-
readonly note: "Cursor
|
|
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.";
|
|
61
62
|
readonly behavior: "confirm";
|
|
62
|
-
readonly evidence: "documented";
|
|
63
63
|
readonly fields: {
|
|
64
64
|
readonly prompt: "text";
|
|
65
65
|
};
|
|
@@ -941,15 +941,17 @@ declare const catalog: {
|
|
|
941
941
|
readonly url: "openclaw://agent";
|
|
942
942
|
readonly behavior: "confirm";
|
|
943
943
|
readonly evidence: "verified";
|
|
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"];
|
|
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"];
|
|
945
945
|
readonly fields: {
|
|
946
946
|
readonly prompt: "message";
|
|
947
|
+
readonly server: "";
|
|
947
948
|
};
|
|
949
|
+
readonly serverBehavior: "confirm";
|
|
948
950
|
readonly required: readonly ["prompt"];
|
|
949
951
|
readonly launchUrl: "openclaw://dashboard";
|
|
950
952
|
readonly promptLimit: 240;
|
|
951
953
|
readonly promptLimitUnit: "grapheme";
|
|
952
|
-
readonly note: "With a connected Gateway,
|
|
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.";
|
|
953
955
|
};
|
|
954
956
|
readonly ios: {
|
|
955
957
|
readonly url: "openclaw://agent";
|
package/dist/catalog.js
CHANGED
|
@@ -158,14 +158,17 @@ const catalog = {
|
|
|
158
158
|
desktop: {
|
|
159
159
|
...cursorRoute,
|
|
160
160
|
url: "cursor://anysphere.cursor-deeplink/prompt",
|
|
161
|
+
evidence: "verified",
|
|
161
162
|
encodeQueryValuesTwice: true,
|
|
162
163
|
sources: [
|
|
163
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",
|
|
164
167
|
"https://github.com/lalalune/agent-deeplinks/actions/runs/45460026095/job/138679769952",
|
|
165
168
|
"https://github.com/lalalune/agent-deeplinks/actions/runs/45460380555/job/138681026834",
|
|
166
169
|
"https://github.com/lalalune/agent-deeplinks/actions/runs/45489023213/artifacts/14966850011",
|
|
167
170
|
],
|
|
168
|
-
note: "Cursor
|
|
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.",
|
|
169
172
|
},
|
|
170
173
|
ios: {
|
|
171
174
|
url: cursorCloud,
|
|
@@ -843,13 +846,16 @@ const catalog = {
|
|
|
843
846
|
"https://github.com/openclaw/openclaw/blob/v2026.11.7/apps/macos/Sources/OpenClaw/DeepLinks.swift",
|
|
844
847
|
"https://github.com/lalalune/agent-deeplinks/actions/runs/45473423005/job/138727187042",
|
|
845
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",
|
|
846
851
|
],
|
|
847
|
-
fields: { prompt: "message" },
|
|
852
|
+
fields: { prompt: "message", server: "" },
|
|
853
|
+
serverBehavior: "confirm",
|
|
848
854
|
required: ["prompt"],
|
|
849
855
|
launchUrl: "openclaw://dashboard",
|
|
850
856
|
promptLimit: 240,
|
|
851
857
|
promptLimitUnit: "grapheme",
|
|
852
|
-
note: "With a connected Gateway,
|
|
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.",
|
|
853
859
|
},
|
|
854
860
|
ios: {
|
|
855
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" &&
|