@cronvello/sdk 0.2.0 → 0.2.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/CHANGELOG.md CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to `@cronvello/sdk` are documented here. This project adheres to
4
4
  [Semantic Versioning](https://semver.org/) (pre-1.0: minor-feature additions ship as patch releases).
5
5
 
6
+ ## 0.2.1
7
+
8
+ - Move the canonical SDK source to the public
9
+ [`niccasWilliams/cronvello-sdk`](https://github.com/niccasWilliams/cronvello-sdk) repository.
10
+ - Add public CI and a tokenless npm Trusted Publishing workflow with automatic provenance.
11
+ - Replace internal production-derived contract examples with synthetic fixtures of the same wire
12
+ shape. Runtime behavior and the public API are unchanged.
13
+
6
14
  ## 0.2.0
7
15
 
8
16
  **The SDK now runs locally with no account.** Until now `@cronvello/sdk` was cloud-coupled: jobs
package/README.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # @cronvello/sdk
2
2
 
3
+ [![npm](https://img.shields.io/npm/v/@cronvello/sdk)](https://www.npmjs.com/package/@cronvello/sdk)
4
+ [![CI](https://github.com/niccasWilliams/cronvello-sdk/actions/workflows/ci.yml/badge.svg)](https://github.com/niccasWilliams/cronvello-sdk/actions/workflows/ci.yml)
5
+ [![license](https://img.shields.io/npm/l/@cronvello/sdk)](./LICENSE)
6
+
3
7
  **Code-first cron jobs for [Cronvello](https://cronvello.com).** Define your scheduled jobs in
4
8
  your codebase, and the SDK keeps them in sync with Cronvello and runs them — **no dashboard
5
9
  required**. Your jobs always follow your code.
@@ -461,12 +465,12 @@ npx cronvello secret # generate a strong dispatch secret
461
465
 
462
466
  ```
463
467
  $ cronvello whoami
464
- ╭─ System (internal siblings) ───────────────────╮
465
- │ account #1system@node-cron.internal
466
- │ plan Enterprise
467
- │ limits 1000 jobs · 100 tasks/job · 6000/min
468
- │ usage 236253 / executions (6 jobs)
469
- │ attention 4 DLQ · 0 heartbeats · 0 maintenance │
468
+ ╭─ Acme Production ──────────────────────────────╮
469
+ │ account #42ops@example.com
470
+ │ plan Pro
471
+ │ limits 100 jobs · 50 tasks/job · 600/min
472
+ │ usage 1842 / 10000 executions (4 jobs)
473
+ │ attention 0 DLQ · 0 heartbeats · 0 maintenance │
470
474
  ╰────────────────────────────────────────────────╯
471
475
  ```
472
476
 
@@ -63,10 +63,9 @@ declare class Transport {
63
63
  /**
64
64
  * Wire types for the Cronvello public `/v1` API.
65
65
  *
66
- * These mirror the server-side Zod DTOs (`src/routes/v1/v1.dto.ts` in node-cron) but are
67
- * hand-authored as plain TypeScript so the SDK ships with ZERO runtime dependencies. When
68
- * the server contract changes, update these to match they are the single source of truth
69
- * for the SDK's request/response shapes. See `scripts/check-contract.md` for the drift check.
66
+ * These mirror the public API contract but are hand-authored as plain TypeScript so the SDK
67
+ * ships with ZERO runtime dependencies. When the server contract changes, update these to
68
+ * match. They are the single source of truth for the SDK's request/response shapes.
70
69
  */
71
70
  type Urgency = "low" | "medium" | "high" | "critical";
72
71
  type ExecutionMode = "sync" | "async_callback";
@@ -63,10 +63,9 @@ declare class Transport {
63
63
  /**
64
64
  * Wire types for the Cronvello public `/v1` API.
65
65
  *
66
- * These mirror the server-side Zod DTOs (`src/routes/v1/v1.dto.ts` in node-cron) but are
67
- * hand-authored as plain TypeScript so the SDK ships with ZERO runtime dependencies. When
68
- * the server contract changes, update these to match they are the single source of truth
69
- * for the SDK's request/response shapes. See `scripts/check-contract.md` for the drift check.
66
+ * These mirror the public API contract but are hand-authored as plain TypeScript so the SDK
67
+ * ships with ZERO runtime dependencies. When the server contract changes, update these to
68
+ * match. They are the single source of truth for the SDK's request/response shapes.
70
69
  */
71
70
  type Urgency = "low" | "medium" | "high" | "critical";
72
71
  type ExecutionMode = "sync" | "async_callback";
@@ -1,4 +1,4 @@
1
- import { O as DispatchHandler } from './dispatch-handler-DazGcFHz.cjs';
1
+ import { O as DispatchHandler } from './dispatch-handler-BoadpsL9.cjs';
2
2
 
3
3
  /**
4
4
  * Express adapter. Zero dependency on `express` itself — the request/response are typed
package/dist/express.d.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { O as DispatchHandler } from './dispatch-handler-DazGcFHz.js';
1
+ import { O as DispatchHandler } from './dispatch-handler-BoadpsL9.js';
2
2
 
3
3
  /**
4
4
  * Express adapter. Zero dependency on `express` itself — the request/response are typed