@shivaedev/pr-watch 0.1.1 → 0.1.2

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,11 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.1.2 - 2026-10-24
4
+
5
+ ### Changed
6
+
7
+ - Require Effect and its companion packages at exactly 4.0.5. Generated applications use the same versions.
8
+
3
9
  ## 0.1.1 - 2026-10-18
4
10
 
5
11
  ### Fixed
package/README.md CHANGED
@@ -23,7 +23,7 @@ Each successful observation compares a PR with its saved snapshot. The first obs
23
23
  Install with Node 24 or later and the repository's Effect peer version:
24
24
 
25
25
  ```sh
26
- npm install @shivaedev/pr-watch effect@4.0.4 @effect/platform-node@4.0.4 @effect/platform-node-shared@4.0.4
26
+ npm install @shivaedev/pr-watch effect@4.0.5 @effect/platform-node@4.0.5 @effect/platform-node-shared@4.0.5
27
27
  export GH_TOKEN=YOUR_READ_ONLY_TOKEN
28
28
  pr-watch --repo acme/project 42 57 --state ./watch-state.json
29
29
  pr-watch --repo acme/project --fleet --interval 60 --state ./fleet-state.json
@@ -68,7 +68,3 @@ The state file records discovered open PR numbers and the last successfully comp
68
68
  Transitions that reverse between observations, including while the watcher is down, are not recovered. For example, leaving and rejoining the merge queue before the next observation produces no `dequeued` event. Stdout delivery is at-least-once across a crash: a crash after output but before the state replacement can repeat a line. There is no event history or acknowledged output protocol.
69
69
 
70
70
  The exported `StateFile.layer` requires Effect `FileSystem`, and `GitHubHttp.layer` requires Effect `HttpClient`. The CLI supplies `NodeFileSystem.layer` and a `FetchHttpClient` layer that refuses redirects. HTTP and file failures remain typed `WatchError` values.
71
-
72
- ### Evidence
73
-
74
- Synthetic HTTP tests cover conditional 304 responses, all eight events, already-stuck PRs at startup, terminal pruning across restarts, queue entry with a cleared auto-merge request, confirmed queue drops and rebuilds, manual auto-merge disablement, native IO injection and typed failures, checks independent of PR ETags, fleet discovery and pagination, quota slowdown, failed requests, and clean restart comparison. A CLI subprocess test verifies that pending mergeability diagnostics stay on stderr while stdout contains JSON event lines. The packed consumer runs the installed executable against a synthetic server. These tests establish the REST and GraphQL handling and installed package behavior; they do not establish live GitHub or Monitor adoption.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shivaedev/pr-watch",
3
- "version": "0.1.1",
3
+ "version": "0.1.2",
4
4
  "description": "One REST watcher for pull request transitions across a repository",
5
5
  "homepage": "https://github.com/ShivaeDev/platform/tree/main/packages/pr-watch#readme",
6
6
  "bugs": {
@@ -39,30 +39,28 @@
39
39
  "!src/**/*.test.ts",
40
40
  "!src/**/*.spec.ts",
41
41
  "!src/**/test-support",
42
- "docs",
43
42
  "CHANGELOG.md",
44
43
  "README.md"
45
44
  ],
46
45
  "dependencies": {
47
- "@shivaedev/effect-service": "0.4.0"
46
+ "@shivaedev/effect-service": "0.4.1"
48
47
  },
49
48
  "devDependencies": {
50
- "@effect/platform-node": "4.0.4",
51
- "@effect/platform-node-shared": "4.0.4",
52
- "@effect/vitest": "4.0.4",
53
- "@shivaedev/effect-test": "0.6.0",
54
- "@shivaedev/quality": "0.25.0",
55
- "@shivaedev/test-story": "0.7.1",
49
+ "@effect/platform-node": "4.0.5",
50
+ "@effect/platform-node-shared": "4.0.5",
51
+ "@effect/vitest": "4.0.5",
52
+ "@shivaedev/effect-test": "0.7.2",
53
+ "@shivaedev/quality": "0.34.0",
54
+ "@shivaedev/test-story": "0.18.2",
56
55
  "@types/node": "24.19.2",
57
- "@typescript/native": "npm:typescript@7.0.2",
58
- "effect": "4.0.4",
59
- "typescript": "npm:@typescript/typescript6@6.0.2",
60
- "vitest": "5.0.3"
56
+ "effect": "4.0.5",
57
+ "typescript": "7.0.2",
58
+ "vitest": "5.0.5"
61
59
  },
62
60
  "peerDependencies": {
63
- "@effect/platform-node": "4.0.4",
64
- "@effect/platform-node-shared": "4.0.4",
65
- "effect": "4.0.4"
61
+ "@effect/platform-node": "4.0.5",
62
+ "@effect/platform-node-shared": "4.0.5",
63
+ "effect": "4.0.5"
66
64
  },
67
65
  "engines": {
68
66
  "node": ">=24"
@@ -1,7 +0,0 @@
1
- # One process for pull request observations
2
-
3
- An orchestrator needs to see merges, conflicts, failed checks and merge queue drops across a repository. One REST watcher shares discovery and queue requests, uses conditional responses, and keeps successful snapshots across restarts.
4
-
5
- Evidence wins over speed. A failed or rate-limited request cannot stand in for a negative observation. Check runs and commit statuses belong to the observed head; queue discovery comes from the queue refs, and a suspected drop is confirmed against the PR’s own queue entry and auto-merge state. Native Effect services own composition and interruption.
6
-
7
- Durability means comparison between successful snapshots. It does not recover transitions that reversed between observations. Stdout is at-least-once across a crash. Event history, acknowledged delivery, PR changes and automated reactions belong outside this package.
package/docs/roadmap.md DELETED
@@ -1,18 +0,0 @@
1
- # Roadmap
2
-
3
- ## Built
4
-
5
- - A REST executable for explicit PRs or repository-wide fleet discovery, using effect-service services.
6
- - ETag response reuse, quota pacing, queue-ref observations and eight transition events, distinguishing queue entry from disabled auto-merge.
7
- - Startup events for already-stuck auto-merges, terminal PR pruning and GraphQL confirmation of suspected queue drops.
8
- - Native Effect filesystem and HTTP services with typed failures.
9
- - Atomic snapshot persistence and comparison across clean restarts.
10
- - Synthetic HTTP tests and packed executable consumer scenarios.
11
-
12
- ## Next
13
-
14
- Work Fleet checks and delivery integrations can consume the event lines. Application adoption needs its own evidence.
15
-
16
- ## Maintainer decisions
17
-
18
- No additional delivery protocol or event history is part of this package.