clearctx 3.0.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 ADDED
@@ -0,0 +1,71 @@
1
+ # Changelog
2
+
3
+ All notable changes to clearctx will be documented in this file.
4
+
5
+ ## [3.0.0] - 2026-02-15
6
+ ### BREAKING CHANGES
7
+ - Renamed package from `claude-multi-session` to `clearctx`
8
+ - New CLI commands: `clearctx` (was `cms`), `ctx-mcp` (was `cms-mcp`), `ctx-setup` (was `cms-setup`)
9
+ - New storage path: `~/.clearctx/` (was `~/.claude-multi-session/`)
10
+ - New npm package name: Install with `npm install -g clearctx`
11
+
12
+ ## [2.9.1] - 2026-02-14
13
+ ### Fixed
14
+ - Gate enforcement bug: gate stayed open forever after phase_gate passed, allowing spawns without verification
15
+ - Gate now auto-closes when ALL workers from the current batch go idle
16
+ - Added spawnedWorkers tracking to gate state
17
+ - Test count: 48 → 49 (+1 gate auto-close test)
18
+
19
+ ## [2.9.0] - 2026-02-14
20
+ ### Changed
21
+ - Replaced 120-second batch window timing hack with deterministic gate logic
22
+ - phase_gate now explicitly opens/closes the spawn gate (no timing involved)
23
+ - Gate error message changed from "PHASE GATE REQUIRED" to "GATE CLOSED"
24
+ - phase_gate response now includes `_gate_phase` field instead of `_gate_generation`
25
+ - Test count increased from 46 to 48 (2 new deterministic gate tests)
26
+
27
+ ### Removed
28
+ - 120-second batch window constant
29
+ - Time-based spawn batch detection (lastSpawnTime, spawnBatchCount fields)
30
+
31
+ ## [2.8.0] - 2026-02-13
32
+ ### Added
33
+ - Inbox enforcement — workers MUST call team_check_inbox before artifact/contract tools
34
+ - Auto-status — server auto-sets workers to "active" on spawn, "idle" on stop/kill
35
+ - Convention completeness check in phase_gate (advisory, check 5 of 5)
36
+ - File ownership tracking — 2 new tools: register_files, check_file_owner
37
+ - Roster injection in team_spawn, phase_gate, send_message responses
38
+ - 46 automated enforcement tests in test-enforcement.js
39
+
40
+ ### Fixed
41
+ - roster.filter crash when roster.json contains object instead of array
42
+ - Defensive Array.isArray() guards on all roster operations
43
+
44
+ ## [2.7.0] - 2026-02
45
+ ### Added
46
+ - Gate-aware team_spawn — structural enforcement of phase_gate between spawn batches
47
+ - phase_gate tool with 5 verification checks
48
+ - team_reset tool for clearing state between runs
49
+ - server_version tool for staleness detection
50
+
51
+ ## [2.6.0] - 2026-02
52
+ ### Added
53
+ - Staleness warnings appended to all tool responses when version mismatch detected
54
+
55
+ ## [2.5.0] - 2026-01
56
+ ### Added
57
+ - server_version tool
58
+ - Improved orchestrator prompts
59
+
60
+ ## [2.4.0] - 2026-01
61
+ ### Added
62
+ - Version detection feature
63
+ - artifact_readers tool
64
+
65
+ ## [2.3.0] - 2026-01
66
+ ### Added
67
+ - Initial release with convention system
68
+ - Team coordination tools (team_spawn, team_ask, team_broadcast, etc.)
69
+ - Artifact store with versioning and read tracking
70
+ - Contract store with dependency resolution
71
+ - Session management (spawn, pause, resume, fork, kill)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.