@tryprojectblue/dialer 0.1.0 → 0.1.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
@@ -1,5 +1,9 @@
1
1
  # @tryprojectblue/dialer
2
2
 
3
+ ## 0.1.1
4
+
5
+ - README is customer-facing only; engineering notes moved to the internal wiki. No code changes.
6
+
3
7
  ## 0.1.0
4
8
 
5
9
  - Initial release: token-provider based session, outbound calls, inbound calls
package/README.md CHANGED
@@ -141,36 +141,3 @@ Every rejection is a `DialerError` with a `code`:
141
141
  progress are never cut off.
142
142
  - Inbound calls ring the SDK only while the line is provisioned for inbound and
143
143
  someone in your workspace is in its ring set.
144
-
145
- ## Developing (Project Blue engineers)
146
-
147
- This package lives in the `project-blue` repo at `sdk/dialer` and is a
148
- standalone project (own lockfile, `pnpm install --ignore-workspace`).
149
-
150
- ```
151
- pnpm sdk:install # deps for sdk/dialer (tsup, typescript)
152
- pnpm sdk:build # dist/ (ESM + CJS + .d.ts) via tsup
153
- pnpm sdk:verify # typecheck + build + dist smoke — what prepublishOnly runs
154
- pnpm sdk:publish # bump version in sdk/dialer/package.json first
155
- ```
156
-
157
- ### Tests
158
-
159
- Unit tests run with the app's Vitest (`pnpm test:unit` at the repo root):
160
-
161
- | file | proves |
162
- | --- | --- |
163
- | `src/dialer.test.ts` | happy paths of a session against a fake engine |
164
- | `src/dialer.lifecycle.test.ts` | token parsing edge cases, refresh de-dup / backoff / cap hold, inbound registration toggling, engine error routing, every invalid-state guard, option passthrough, teardown |
165
- | `src/call.test.ts` | `DialerCall` status mapping, control passthrough, event translation, error-code mapping, end-once semantics |
166
- | `src/errors.test.ts` | every mint status/code → `DialerError` code, cap/rate-limit error shapes, engine error mapping |
167
- | `src/emitter.test.ts` | typed emitter semantics incl. throwing listeners |
168
- | `src/engine.test.ts` | the adapter constructs the engine `Device` with our options and memoizes the import |
169
- | `src/engine.real.test.ts` | the **real** `@twilio/voice-sdk` `Device` accepts our option object and event names under jsdom; a session starts and tears down on it without opening signaling |
170
- | `src/app/api/v1/dialer/token/sdk-contract.test.ts` (app) | the mint route's **actual** success and refusal bodies drive the SDK end to end |
171
- | `scripts/smoke-dist.mjs` | the built ESM and CJS bundles import, expose the public surface, run a session, ship engine-free types, keep the engine external — runs in `pnpm sdk:verify` and `prepublishOnly` |
172
-
173
- What is not covered: a real call. jsdom has no WebRTC and the local stack has
174
- no Twilio emulator, so placing a call is a manual check on a preview deploy.
175
-
176
- Publishing needs an npm account on the `@tryprojectblue` org (`npm login`).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tryprojectblue/dialer",
3
- "version": "0.1.0",
3
+ "version": "0.1.1",
4
4
  "description": "Browser SDK for placing and receiving Project Blue dialer calls with short-lived, line-scoped tokens minted by your own server.",
5
5
  "license": "MIT",
6
6
  "author": "Project Blue",