@deliverd/sdk 0.25.0 → 0.25.1

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@deliverd/sdk",
3
- "version": "0.25.0",
4
- "description": "Add human approval to any AI agent. Ask a person, wait for the answer, act on it.",
3
+ "version": "0.25.1",
4
+ "description": "Add human approval to any AI agent. Ask a person, wait for the answer, act on it. Start free at deliverd.dev.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",
7
7
  "types": "./dist/index.d.ts",
@@ -47,13 +47,13 @@
47
47
  "mcp",
48
48
  "deliverd"
49
49
  ],
50
- "homepage": "https://deliverd.dev/docs/developers/sdk",
50
+ "homepage": "https://deliverd.dev/docs/developers/sdk?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=metadata",
51
51
  "repository": {
52
52
  "type": "git",
53
53
  "url": "git+https://github.com/davidpreid/deliverd.git",
54
54
  "directory": "packages/sdk"
55
55
  },
56
56
  "bugs": {
57
- "url": "https://deliverd.dev/contact"
57
+ "url": "https://deliverd.dev/contact?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=metadata"
58
58
  }
59
59
  }
package/src/messages.ts CHANGED
@@ -17,10 +17,19 @@ export interface Explanation {
17
17
  hint: string;
18
18
  }
19
19
 
20
+ /** Where somebody without an account makes one, counted against this package. */
21
+ export const SIGN_UP_URL =
22
+ "https://deliverd.dev/sign-up?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=no-api-key";
23
+
20
24
  export const EXPLANATIONS: Record<string, Explanation> = {
21
25
  no_api_key: {
22
26
  message: "No API key.",
23
- hint: "Set DELIVERD_API_KEY in your environment, or pass { apiKey } — or use { mode: \"development\" } to run without one.",
27
+ /*
28
+ * The one moment somebody has installed the package and has no account:
29
+ * the link is the way to get one, tagged so a sign-up from here is
30
+ * counted against this package (`SIGN_UP_URL`, `packaging.test.ts`).
31
+ */
32
+ hint: `Set DELIVERD_API_KEY in your environment, or pass { apiKey } — or use { mode: "development" } to run without one. No account yet? Setting up a free one hands you a key: ${SIGN_UP_URL}`,
24
33
  },
25
34
  auth_error: {
26
35
  message: "That credential was not accepted.",