@crvouga/mockingbird-service-linear 0.1.0 → 0.3.0
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 +19 -1
- package/DISCOVERY.md +23 -0
- package/README.md +18 -3
- package/dist/chunk-4Z6PLMOH.js +9492 -0
- package/dist/chunk-4Z6PLMOH.js.map +7 -0
- package/dist/{chunk-M73LWCCP.js → chunk-6Z2MR3PO.js} +33 -3
- package/dist/{chunk-M73LWCCP.js.map → chunk-6Z2MR3PO.js.map} +2 -2
- package/dist/chunk-MMITTSKW.js +4792 -0
- package/dist/chunk-MMITTSKW.js.map +7 -0
- package/dist/cli.js +3 -3
- package/dist/crypto-II2ETGQQ.js +21 -0
- package/dist/{helpers-BMHFVPFA.js → helpers-5D4ROPWG.js} +2 -2
- package/dist/index.d.ts +376 -45
- package/dist/index.js +2 -2
- package/dist/server.d.ts +731 -86
- package/dist/server.js +3 -3
- package/package.json +3 -2
- package/dist/chunk-EV2HHR65.js +0 -873
- package/dist/chunk-EV2HHR65.js.map +0 -7
- package/dist/chunk-SJWPVFGG.js +0 -7591
- package/dist/chunk-SJWPVFGG.js.map +0 -7
- package/dist/crypto-I5AVO7Q3.js +0 -15
- /package/dist/{crypto-I5AVO7Q3.js.map → crypto-II2ETGQQ.js.map} +0 -0
- /package/dist/{helpers-BMHFVPFA.js.map → helpers-5D4ROPWG.js.map} +0 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog — @crvouga/mockingbird-service-linear
|
|
2
2
|
|
|
3
|
-
## 0.
|
|
3
|
+
## 0.3.0 (2026-10-15)
|
|
4
|
+
|
|
5
|
+
### Features
|
|
6
|
+
|
|
7
|
+
- finish durable run lifecycle ([725ea1a](https://github.com/crvouga/mockingbird/commit/725ea1a966dac65434e98f06a9c33aca0d6f32d7))
|
|
8
|
+
- add management and portable archives ([0d2a6dd](https://github.com/crvouga/mockingbird/commit/0d2a6dd0f9fecb3a1ea7c1638f6639787395c2f4))
|
|
9
|
+
|
|
10
|
+
### Fixes and improvements
|
|
11
|
+
|
|
12
|
+
- correlate cross-namespace operations ([3457a4b](https://github.com/crvouga/mockingbird/commit/3457a4b7dbfd9ad9c8a10671a5744b7c8425d000))
|
|
13
|
+
- harden HTTP stream handling ([674307a](https://github.com/crvouga/mockingbird/commit/674307a869f57907567d462c4f506c3b0a237e13))
|
|
14
|
+
|
|
15
|
+
## 0.2.0 (2026-10-12)
|
|
16
|
+
|
|
17
|
+
### Features
|
|
18
|
+
|
|
19
|
+
- unify the emulator control plane ([2068547](https://github.com/crvouga/mockingbird/commit/2068547bedde4e2e2331c1657c1a78120e84428b))
|
|
20
|
+
|
|
21
|
+
## 0.1.0 (2026-10-08)
|
|
4
22
|
|
|
5
23
|
Initial release.
|
package/DISCOVERY.md
CHANGED
|
@@ -34,6 +34,7 @@ repository; live parity is an additional oracle check, not a substitute for the
|
|
|
34
34
|
|
|
35
35
|
- `GET /__admin/health`
|
|
36
36
|
- `GET /__admin`
|
|
37
|
+
- `GET /__admin/controls`
|
|
37
38
|
- `GET /__admin/state`
|
|
38
39
|
- `GET /__admin/requests`
|
|
39
40
|
- `GET /__admin/metrics`
|
|
@@ -44,6 +45,28 @@ For HTTP services, use `x-mockingbird-namespace` (or the documented credential/p
|
|
|
44
45
|
parallel tests do not share state. Admin state, journal, metrics and fault-preset endpoints are
|
|
45
46
|
designed for assertions and diagnosis by consuming test suites.
|
|
46
47
|
|
|
48
|
+
## Admin controls
|
|
49
|
+
|
|
50
|
+
Every HTTP emulator takes the same controls, and each means the same thing at boot
|
|
51
|
+
(`createRuntime({ adminControls })`, `serve --admin-controls`), over `/__admin`, and in a request header:
|
|
52
|
+
|
|
53
|
+
| Control | Admin API | Request header | Interface |
|
|
54
|
+
| --- | --- | --- | --- |
|
|
55
|
+
| Isolate state by key | `GET /__admin/namespaces` | `x-mockingbird-namespace: <key>` | [Namespaces](https://mockingbird.chrisvouga.dev/docs/admin-controls/namespaces) |
|
|
56
|
+
| Reset to boot | `POST /__admin/reset` | `x-mockingbird-reset: true` | [Reset](https://mockingbird.chrisvouga.dev/docs/admin-controls/reset) |
|
|
57
|
+
| Snapshot and restore | `POST /__admin/snapshots`, `POST /__admin/snapshots/<id>/restore` | `x-mockingbird-snapshot: <name>`, `x-mockingbird-restore: <name>` | [Snapshot and restore](https://mockingbird.chrisvouga.dev/docs/admin-controls/snapshot-and-restore) |
|
|
58
|
+
| Move the clock | `POST /__admin/clock` | `x-mockingbird-time: <instant>`, `x-mockingbird-advance: <duration>` | [Clock](https://mockingbird.chrisvouga.dev/docs/admin-controls/clock) |
|
|
59
|
+
| Read or branch from old state | `GET /__admin/timeline` | `x-mockingbird-at: <checkpoint>`, `x-mockingbird-branch: <name>` | [Checkpoints and branches](https://mockingbird.chrisvouga.dev/docs/admin-controls/checkpoints-and-branches) |
|
|
60
|
+
| Inject a fault | `POST /__admin/faults` | `x-mockingbird-fault: <fault>` | [Faults](https://mockingbird.chrisvouga.dev/docs/admin-controls/faults) |
|
|
61
|
+
| Latency and timeouts | `PUT /__admin/latency` | `x-mockingbird-delay: <duration>`, `x-mockingbird-timeout: <duration>` | [Latency and timeouts](https://mockingbird.chrisvouga.dev/docs/admin-controls/latency-and-timeouts) |
|
|
62
|
+
| Replay from a seed | `PUT /__admin/controls` | `x-mockingbird-seed: <seed>` | [Seed and determinism](https://mockingbird.chrisvouga.dev/docs/admin-controls/seed-and-determinism) |
|
|
63
|
+
| See what happened | `GET /__admin/requests`, `GET /__admin/state` | | [Journal, metrics and state](https://mockingbird.chrisvouga.dev/docs/admin-controls/journal-and-state) |
|
|
64
|
+
|
|
65
|
+
`GET /__admin` lists every route and header with a one-line summary, and `GET /__admin/controls`
|
|
66
|
+
is the namespace's current control document. The same seed and the same requests give the same
|
|
67
|
+
bytes. Setting controls as an emulator starts is [Boot](https://mockingbird.chrisvouga.dev/docs/admin-controls/boot); every route and header is in
|
|
68
|
+
the [Reference](https://mockingbird.chrisvouga.dev/docs/admin-controls/reference). The full guide: <https://mockingbird.chrisvouga.dev/docs/admin-controls>.
|
|
69
|
+
|
|
47
70
|
## Report a mismatch or missing capability
|
|
48
71
|
|
|
49
72
|
Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
|
package/README.md
CHANGED
|
@@ -13,11 +13,26 @@ npm install @crvouga/mockingbird-service-linear
|
|
|
13
13
|
## Usage
|
|
14
14
|
|
|
15
15
|
```ts
|
|
16
|
-
import {
|
|
17
|
-
|
|
18
|
-
|
|
16
|
+
import { LinearClient } from "@linear/sdk"
|
|
17
|
+
import { createServer } from "@crvouga/mockingbird-service-linear/server"
|
|
18
|
+
|
|
19
|
+
// Test setup: the emulator, seeded with one synthetic team.
|
|
20
|
+
const team = { id: "0f0e8c1a-6f0b-4a53-9a43-3c7f0f1f2a10", key: "OPS", name: "Operations" }
|
|
21
|
+
const server = await createServer({ fixtures: { teams: [team] } })
|
|
22
|
+
|
|
23
|
+
// The app's own Linear client. Only its API URL changes.
|
|
24
|
+
const linear = new LinearClient({ apiKey: "lin_api_fixture", apiUrl: `${server.url}/graphql` })
|
|
25
|
+
const viewer = await linear.viewer
|
|
26
|
+
const created = await linear.createIssue({ teamId: team.id, title: "Fixture issue", assigneeId: viewer.id })
|
|
27
|
+
console.log(created.success) // true
|
|
28
|
+
if (created.issueId) await linear.createComment({ issueId: created.issueId, body: "Reproduced locally." })
|
|
29
|
+
await server.close()
|
|
19
30
|
```
|
|
20
31
|
|
|
32
|
+
The GraphQL schema is a subset of Linear's. With `@linear/sdk` 97, `viewer` and the create and
|
|
33
|
+
update mutations work; model reads that select fields outside the subset (`teams()`, `issues()`,
|
|
34
|
+
`issue(id)`) are rejected, so query those through `linear.client.rawRequest` with the fields you need.
|
|
35
|
+
|
|
21
36
|
## API
|
|
22
37
|
|
|
23
38
|
- `LinearAPI`: portable provider instance; accepts SQLite, namespace, clock, fixtures and baseUrl.
|