agentflight 0.2.0 → 0.3.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.
Files changed (66) hide show
  1. package/CHANGELOG.md +140 -0
  2. package/README.md +171 -88
  3. package/dist/adapters/agentloopkit.d.ts.map +1 -1
  4. package/dist/adapters/agentloopkit.js +26 -7
  5. package/dist/adapters/agentloopkit.js.map +1 -1
  6. package/dist/adapters/projscan.d.ts.map +1 -1
  7. package/dist/adapters/projscan.js +26 -7
  8. package/dist/adapters/projscan.js.map +1 -1
  9. package/dist/cli.d.ts.map +1 -1
  10. package/dist/cli.js +11 -0
  11. package/dist/cli.js.map +1 -1
  12. package/dist/commands/doctor.d.ts +1 -0
  13. package/dist/commands/doctor.d.ts.map +1 -1
  14. package/dist/commands/doctor.js +17 -0
  15. package/dist/commands/doctor.js.map +1 -1
  16. package/dist/commands/replay.d.ts +1 -0
  17. package/dist/commands/replay.d.ts.map +1 -1
  18. package/dist/commands/replay.js +20 -8
  19. package/dist/commands/replay.js.map +1 -1
  20. package/dist/commands/report.d.ts +1 -0
  21. package/dist/commands/report.d.ts.map +1 -1
  22. package/dist/commands/report.js +19 -2
  23. package/dist/commands/report.js.map +1 -1
  24. package/dist/commands/resume.d.ts +1 -0
  25. package/dist/commands/resume.d.ts.map +1 -1
  26. package/dist/commands/resume.js +20 -1
  27. package/dist/commands/resume.js.map +1 -1
  28. package/dist/commands/snapshot.d.ts +13 -0
  29. package/dist/commands/snapshot.d.ts.map +1 -0
  30. package/dist/commands/snapshot.js +45 -0
  31. package/dist/commands/snapshot.js.map +1 -0
  32. package/dist/commands/status.d.ts.map +1 -1
  33. package/dist/commands/status.js +28 -2
  34. package/dist/commands/status.js.map +1 -1
  35. package/dist/commands/verify.d.ts.map +1 -1
  36. package/dist/commands/verify.js +26 -2
  37. package/dist/commands/verify.js.map +1 -1
  38. package/dist/core/risk.d.ts.map +1 -1
  39. package/dist/core/risk.js +3 -0
  40. package/dist/core/risk.js.map +1 -1
  41. package/dist/core/session.d.ts +14 -1
  42. package/dist/core/session.d.ts.map +1 -1
  43. package/dist/core/session.js +78 -0
  44. package/dist/core/session.js.map +1 -1
  45. package/dist/core/verification.js +3 -1
  46. package/dist/core/verification.js.map +1 -1
  47. package/dist/renderers/html-replay.d.ts +4 -5
  48. package/dist/renderers/html-replay.d.ts.map +1 -1
  49. package/dist/renderers/html-replay.js +40 -2
  50. package/dist/renderers/html-replay.js.map +1 -1
  51. package/dist/renderers/markdown-report.d.ts +2 -1
  52. package/dist/renderers/markdown-report.d.ts.map +1 -1
  53. package/dist/renderers/markdown-report.js +13 -0
  54. package/dist/renderers/markdown-report.js.map +1 -1
  55. package/dist/renderers/resume-prompt.d.ts +2 -0
  56. package/dist/renderers/resume-prompt.d.ts.map +1 -1
  57. package/dist/renderers/resume-prompt.js +6 -0
  58. package/dist/renderers/resume-prompt.js.map +1 -1
  59. package/dist/types/index.d.ts +10 -0
  60. package/dist/types/index.d.ts.map +1 -1
  61. package/docs/assets/agentflight-replay-timeline.png +0 -0
  62. package/docs/development/dogfooding.md +173 -0
  63. package/docs/development/release.md +66 -0
  64. package/docs/examples/basic-agentflight-session.md +164 -0
  65. package/docs/roadmap.md +49 -0
  66. package/package.json +12 -1
@@ -0,0 +1,66 @@
1
+ # Release Process
2
+
3
+ AgentFlight releases use npm Trusted Publishing from GitHub Actions.
4
+
5
+ ## Why Tags, Not Every Push
6
+
7
+ npm versions are immutable. Publishing on every push would either fail whenever the version is unchanged or force noisy version churn. AgentFlight verifies every push, but publishes only from version tags.
8
+
9
+ ## npm Trusted Publisher Settings
10
+
11
+ Configure these values on npmjs.com for the `agentflight` package:
12
+
13
+ - Publisher: `GitHub Actions`
14
+ - Organization or user: `abhiyoheswaran1`
15
+ - Repository: `AgentFlight`
16
+ - Workflow filename: `release.yml`
17
+ - Environment name: `npm`
18
+ - Allowed actions: `Allow npm publish`
19
+
20
+ Do not enable `Allow npm stage publish` unless AgentFlight intentionally adopts npm staged releases later.
21
+
22
+ ## Release Checklist
23
+
24
+ 1. Update `package.json` and `package-lock.json` to the new version.
25
+ 2. Update `CHANGELOG.md`.
26
+ 3. Run verification:
27
+
28
+ ```bash
29
+ npm run verify
30
+ npm run format:check
31
+ npm pack --dry-run
32
+ ```
33
+
34
+ 4. Commit the release:
35
+
36
+ ```bash
37
+ git add .
38
+ git commit -m "chore: release v0.1.1"
39
+ ```
40
+
41
+ 5. Tag and push:
42
+
43
+ ```bash
44
+ git tag v0.1.1
45
+ git push origin main --tags
46
+ ```
47
+
48
+ 6. Confirm:
49
+
50
+ ```bash
51
+ npm view agentflight version
52
+ npx --yes agentflight@latest --help
53
+ ```
54
+
55
+ ## Manual Emergency Publish
56
+
57
+ Manual publishing is allowed for emergencies while the package is young:
58
+
59
+ ```bash
60
+ npm run verify
61
+ npm run format:check
62
+ npm pack --dry-run
63
+ npm publish --access public
64
+ ```
65
+
66
+ Record any manual publish in `CHANGELOG.md` and `AGENTFLIGHT_DEVLOG.md`.
@@ -0,0 +1,164 @@
1
+ # Basic AgentFlight Session
2
+
3
+ This example shows a fictional local session for adding a password reset flow.
4
+
5
+ ## 1. Start The Flight
6
+
7
+ ```bash
8
+ npx agentflight@latest init
9
+ npx agentflight@latest start --task "Add password reset flow"
10
+ ```
11
+
12
+ AgentFlight records the task, current branch, commit, dirty state, package manager, and available tools. It also writes `.agentflight/current/handoff.md` so the coding agent or human reviewer has a starting point.
13
+
14
+ ## 2. Run The Coding Agent
15
+
16
+ Run Codex, Claude Code, Cursor, or another coding agent normally.
17
+
18
+ In this example the agent changes:
19
+
20
+ ```text
21
+ src/password-reset.ts
22
+ tests/password-reset.test.ts
23
+ docs/password-reset.md
24
+ ```
25
+
26
+ ## 3. Capture Proof
27
+
28
+ ```bash
29
+ npx agentflight@latest verify -- npm test
30
+ ```
31
+
32
+ AgentFlight runs the command and stores local evidence:
33
+
34
+ ```text
35
+ Verification recorded
36
+
37
+ Command:
38
+ npm test
39
+
40
+ Status:
41
+ passed
42
+
43
+ Evidence:
44
+ stdout: .agentflight/evidence/.../verification-1.stdout.txt
45
+ stderr: .agentflight/evidence/.../verification-1.stderr.txt
46
+ ```
47
+
48
+ If the command fails, AgentFlight records it as failed. It does not turn failed proof into success.
49
+
50
+ ## 4. Create A Snapshot
51
+
52
+ ```bash
53
+ npx agentflight@latest snapshot --note "Initial implementation verified"
54
+ ```
55
+
56
+ The snapshot records:
57
+
58
+ - branch
59
+ - commit
60
+ - dirty state
61
+ - changed files
62
+ - risk level
63
+ - verification summary
64
+ - note
65
+
66
+ AgentFlight stores this as a session event. It does not store full code diffs by default.
67
+
68
+ ## 5. Check Status
69
+
70
+ ```bash
71
+ npx agentflight@latest status
72
+ ```
73
+
74
+ Example:
75
+
76
+ ```text
77
+ AgentFlight status
78
+
79
+ Task:
80
+ Add password reset flow
81
+
82
+ Changed files:
83
+ 3
84
+
85
+ Changed areas:
86
+ - docs: docs/password-reset.md
87
+ - tests: tests/password-reset.test.ts
88
+ - unknown: src/password-reset.ts
89
+
90
+ Risk: medium
91
+ - Dependency, backend, or unknown files changed.
92
+
93
+ Verification Evidence:
94
+ 1 passed, 0 failed
95
+
96
+ Latest snapshot:
97
+ - Note: Initial implementation verified
98
+ - Risk: medium
99
+ - Changed files: 3
100
+
101
+ Review readiness: Ready for review
102
+
103
+ Next action:
104
+ Generate a proof report with agentflight report
105
+ ```
106
+
107
+ ## 6. Generate Review Artifacts
108
+
109
+ ```bash
110
+ npx agentflight@latest report
111
+ npx agentflight@latest replay
112
+ ```
113
+
114
+ The Markdown report gives a reviewer the task, session metadata, changed files, risk summary, timeline, verification evidence, and recommendation.
115
+
116
+ The HTML replay gives a browser-friendly timeline:
117
+
118
+ ```text
119
+ session_started
120
+ verification_started
121
+ verification_passed
122
+ snapshot_created
123
+ report_generated
124
+ replay_generated
125
+ ```
126
+
127
+ Both artifacts stay local under `.agentflight/reports/`.
128
+
129
+ ## 7. Resume Safely
130
+
131
+ ```bash
132
+ npx agentflight@latest resume
133
+ ```
134
+
135
+ The resume prompt includes:
136
+
137
+ - original task
138
+ - current state
139
+ - changed files
140
+ - risk
141
+ - latest snapshot note
142
+ - verification state
143
+ - next recommended action
144
+ - guardrails for the next agent
145
+
146
+ Example guardrails:
147
+
148
+ ```text
149
+ - Stay scoped to the current task.
150
+ - Do not start unrelated work.
151
+ - Do not claim completion without proof.
152
+ - Run relevant verification before declaring success.
153
+ ```
154
+
155
+ ## What This Gives You
156
+
157
+ By the end of the session, you know:
158
+
159
+ - what changed
160
+ - how risky it looks
161
+ - what proof exists
162
+ - what proof is missing
163
+ - whether the work is ready for review
164
+ - how to hand it off without losing context
@@ -0,0 +1,49 @@
1
+ # Roadmap
2
+
3
+ ## MVP
4
+
5
+ - Local CLI package.
6
+ - Safe `.agentflight/` initialization.
7
+ - Session start and current handoff.
8
+ - Changed-file risk summary.
9
+ - Markdown proof report.
10
+ - Self-contained HTML replay.
11
+ - Resume prompt.
12
+ - Doctor checks.
13
+ - Defensive ProjScan and AgentLoopKit adapters.
14
+ - Verification evidence capture.
15
+ - Session events and snapshots.
16
+
17
+ ## Future Free/Open-Core
18
+
19
+ - Basic local session history.
20
+ - Structured `--json` output.
21
+ - Richer configurable verification command profiles.
22
+ - More precise git diff stats without including full code by default.
23
+ - Timeline filtering and richer local replay navigation.
24
+
25
+ ## Future Pro
26
+
27
+ - Searchable local session history.
28
+ - Advanced replay exports.
29
+ - Multi-repo workspace.
30
+ - Custom report themes.
31
+ - Advanced policy packs.
32
+ - Agent mistake analytics.
33
+
34
+ ## Future Team
35
+
36
+ - GitHub PR comments.
37
+ - Shared policies.
38
+ - Team dashboard.
39
+ - Audit trail.
40
+ - Required verification gates.
41
+ - Slack, Linear, and Jira integrations.
42
+
43
+ ## Future Enterprise
44
+
45
+ - Self-hosted deployment.
46
+ - SSO.
47
+ - Compliance exports.
48
+ - Custom risk rules.
49
+ - Support.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "agentflight",
3
- "version": "0.2.0",
3
+ "version": "0.3.1",
4
4
  "description": "Local-first flight recorder for AI coding agents.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli.js",
@@ -11,6 +11,12 @@
11
11
  "files": [
12
12
  "dist",
13
13
  "README.md",
14
+ "CHANGELOG.md",
15
+ "docs/assets/agentflight-replay-timeline.png",
16
+ "docs/development/dogfooding.md",
17
+ "docs/development/release.md",
18
+ "docs/examples/basic-agentflight-session.md",
19
+ "docs/roadmap.md",
14
20
  "LICENSE"
15
21
  ],
16
22
  "scripts": {
@@ -34,8 +40,13 @@
34
40
  "keywords": [
35
41
  "ai",
36
42
  "coding-agents",
43
+ "codex",
44
+ "claude-code",
37
45
  "cli",
38
46
  "developer-tools",
47
+ "agentic-coding",
48
+ "verification",
49
+ "code-review",
39
50
  "local-first",
40
51
  "observability"
41
52
  ],