@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/README.md CHANGED
@@ -23,6 +23,18 @@ Your approver gets an email and a notification, opens a page that works on a
23
23
  phone, and approves, rejects with a reason, or asks your agent a question.
24
24
  Every step is on the record.
25
25
 
26
+ ## Start free
27
+
28
+ 1. [Create a free Deliverd account](https://deliverd.dev/sign-up?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=readme).
29
+ The Free plan needs no card.
30
+ 2. Name your organisation. The next page hands you a key: set it as
31
+ `DELIVERD_API_KEY`.
32
+ 3. Run the five lines above. Leave `approvers` out and the request goes to
33
+ your organisation's owners and admins; name anyone else in it to ask them.
34
+
35
+ Want to see it work before you sign up? Development mode, next, needs no key
36
+ and no network.
37
+
26
38
  ## Before you have an account
27
39
 
28
40
  ```ts
@@ -764,11 +776,13 @@ Zero dependencies. Node 20 or later.
764
776
 
765
777
  ## Also
766
778
 
779
+ - [Create a free account](https://deliverd.dev/sign-up?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=readme), if
780
+ you have not yet.
767
781
  - The same walkthrough as a page, if you would rather read it there:
768
- <https://deliverd.dev/quickstart>
769
- - The API reference: <https://deliverd.dev/docs/api>
782
+ [deliverd.dev/quickstart](https://deliverd.dev/quickstart?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=readme)
783
+ - The API reference: [deliverd.dev/docs/api](https://deliverd.dev/docs/api?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=readme)
770
784
  - MCP, if your agent speaks it rather than TypeScript:
771
- <https://deliverd.dev/docs/developers/mcp>
785
+ [deliverd.dev/docs/developers/mcp](https://deliverd.dev/docs/developers/mcp?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=readme)
772
786
  - The CLI, for a terminal or a CI job: `npm install -g deliverd`
773
787
 
774
788
  MIT.
@@ -15,6 +15,8 @@ export interface Explanation {
15
15
  /** The line under it: what to do. */
16
16
  hint: string;
17
17
  }
18
+ /** Where somebody without an account makes one, counted against this package. */
19
+ export declare const SIGN_UP_URL = "https://deliverd.dev/sign-up?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=no-api-key";
18
20
  export declare const EXPLANATIONS: Record<string, Explanation>;
19
21
  /** The message as a developer should read it: what happened, then what to do. */
20
22
  export declare function explain(code: string, apiMessage: string): {
@@ -1 +1 @@
1
- {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAmMpD,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAI5F"}
1
+ {"version":3,"file":"messages.d.ts","sourceRoot":"","sources":["../src/messages.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,MAAM,WAAW,WAAW;IAC1B,4DAA4D;IAC5D,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,qCAAqC;IACrC,IAAI,EAAE,MAAM,CAAC;CACd;AAED,iFAAiF;AACjF,eAAO,MAAM,WAAW,2GACkF,CAAC;AAE3G,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,MAAM,EAAE,WAAW,CAwMpD,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,OAAO,CAAC,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAI5F"}
package/dist/messages.js CHANGED
@@ -9,10 +9,17 @@
9
9
  * Keyed on the codes the API actually returns. Anything unlisted keeps the
10
10
  * API's own message, which is written for a person too.
11
11
  */
12
+ /** Where somebody without an account makes one, counted against this package. */
13
+ export const SIGN_UP_URL = "https://deliverd.dev/sign-up?utm_source=npm&utm_medium=package&utm_campaign=sdk&utm_content=no-api-key";
12
14
  export const EXPLANATIONS = {
13
15
  no_api_key: {
14
16
  message: "No API key.",
15
- hint: "Set DELIVERD_API_KEY in your environment, or pass { apiKey } — or use { mode: \"development\" } to run without one.",
17
+ /*
18
+ * The one moment somebody has installed the package and has no account:
19
+ * the link is the way to get one, tagged so a sign-up from here is
20
+ * counted against this package (`SIGN_UP_URL`, `packaging.test.ts`).
21
+ */
22
+ 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}`,
16
23
  },
17
24
  auth_error: {
18
25
  message: "That credential was not accepted.",
@@ -43,7 +43,7 @@
43
43
  * **Add the version here when you publish it, not before.** An entry is a
44
44
  * claim that `npm install @deliverd/sdk@x` works today.
45
45
  */
46
- export declare const PUBLISHED_TO_NPM: readonly ["0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "0.10.0", "0.11.0", "0.11.1", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.16.0", "0.17.0", "0.18.0", "0.19.0", "0.20.0", "0.21.0", "0.22.0", "0.23.0", "0.24.0", "0.24.1"];
46
+ export declare const PUBLISHED_TO_NPM: readonly ["0.1.0", "0.2.0", "0.3.0", "0.4.0", "0.5.0", "0.6.0", "0.6.1", "0.6.2", "0.7.0", "0.7.1", "0.8.0", "0.8.1", "0.8.2", "0.9.0", "0.10.0", "0.11.0", "0.11.1", "0.12.0", "0.13.0", "0.14.0", "0.15.0", "0.16.0", "0.17.0", "0.18.0", "0.19.0", "0.20.0", "0.21.0", "0.22.0", "0.23.0", "0.24.0", "0.24.1", "0.25.0"];
47
47
  /**
48
48
  * A fingerprint of what each *published* version recorded.
49
49
  *
@@ -1 +1 @@
1
- {"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,mTAgCnB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA6FzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAo8gBtD,CAAC"}
1
+ {"version":3,"file":"released.d.ts","sourceRoot":"","sources":["../src/released.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,gBAAgB,6TAiCnB,CAAC;AAEX;;;;;;;;;;;;;;;;GAgBG;AACH,eAAO,MAAM,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CA+FzC,CAAC;AAEF,eAAO,MAAM,QAAQ,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,MAAM,EAAE,CAw1iBtD,CAAC"}