agentpack-cli 0.1.6 → 0.1.8
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/README.md +52 -64
- package/dist/src/cli/index.js +37 -6
- package/dist/src/cli/index.js.map +1 -1
- package/dist/src/integrations/install.js +6 -0
- package/dist/src/integrations/install.js.map +1 -1
- package/dist/src/operations.d.ts +2 -0
- package/dist/src/operations.js +56 -1
- package/dist/src/operations.js.map +1 -1
- package/docs/CLI.md +62 -0
- package/docs/MCP.md +13 -2
- package/docs/ROADMAP.md +4 -2
- package/docs/VISION.md +43 -0
- package/docs/agentpack-architecture.html +1330 -0
- package/docs/agentpack-architecture.json +838 -0
- package/package.json +1 -1
- package/docs/agentpack-flow.md +0 -63
|
@@ -0,0 +1,838 @@
|
|
|
1
|
+
{
|
|
2
|
+
"schemaVersion": 1,
|
|
3
|
+
"title": "agentpack — Architecture & Flows",
|
|
4
|
+
"description": "Local task-state ledger for AI coding agents. Pick a flow on the right to highlight the path through CLI, MCP tools, durable state, and generated handoff context.",
|
|
5
|
+
"repository": "agentpack-cli",
|
|
6
|
+
"package": "agentpack-cli",
|
|
7
|
+
"binary": "agentpack",
|
|
8
|
+
"engines": {
|
|
9
|
+
"node": ">=20"
|
|
10
|
+
},
|
|
11
|
+
"columns": [
|
|
12
|
+
{
|
|
13
|
+
"id": "actors",
|
|
14
|
+
"label": "Actors"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"id": "entry",
|
|
18
|
+
"label": "CLI / MCP entry"
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
"id": "dispatch",
|
|
22
|
+
"label": "Dispatch & tools"
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
"id": "operations",
|
|
26
|
+
"label": "Operations"
|
|
27
|
+
},
|
|
28
|
+
{
|
|
29
|
+
"id": "core",
|
|
30
|
+
"label": "Core builders"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
"id": "storage",
|
|
34
|
+
"label": ".agentpack/ state"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"id": "outputs",
|
|
38
|
+
"label": "Outputs"
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
"id": "quality",
|
|
42
|
+
"label": "Tests & release"
|
|
43
|
+
}
|
|
44
|
+
],
|
|
45
|
+
"legend": [
|
|
46
|
+
{
|
|
47
|
+
"type": "actor",
|
|
48
|
+
"label": "Actor"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"type": "entry",
|
|
52
|
+
"label": "CLI / MCP entry"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"type": "tool",
|
|
56
|
+
"label": "Dispatch / tool"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"type": "operation",
|
|
60
|
+
"label": "Operation"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"type": "core",
|
|
64
|
+
"label": "Core builder"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"type": "state",
|
|
68
|
+
"label": ".agentpack state"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"type": "output",
|
|
72
|
+
"label": "Output artifact"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"type": "quality",
|
|
76
|
+
"label": "Tests / CI"
|
|
77
|
+
}
|
|
78
|
+
],
|
|
79
|
+
"nodes": [
|
|
80
|
+
{
|
|
81
|
+
"id": "human",
|
|
82
|
+
"column": "actors",
|
|
83
|
+
"type": "actor",
|
|
84
|
+
"title": "Developer",
|
|
85
|
+
"summary": "Runs setup commands, reviews handoffs, steers coding-agent work.",
|
|
86
|
+
"files": [
|
|
87
|
+
"README.md",
|
|
88
|
+
"docs/CLI.md"
|
|
89
|
+
]
|
|
90
|
+
},
|
|
91
|
+
{
|
|
92
|
+
"id": "agent",
|
|
93
|
+
"column": "actors",
|
|
94
|
+
"type": "actor",
|
|
95
|
+
"title": "Coding agent",
|
|
96
|
+
"summary": "Codex / Claude Code / Cursor / any MCP client. Reads instructions, calls MCP tools.",
|
|
97
|
+
"files": [
|
|
98
|
+
"AGENTS.md",
|
|
99
|
+
"CLAUDE.md",
|
|
100
|
+
".agentpack/instructions/"
|
|
101
|
+
]
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "ci",
|
|
105
|
+
"column": "actors",
|
|
106
|
+
"type": "actor",
|
|
107
|
+
"title": "CI / release",
|
|
108
|
+
"summary": "GitHub Actions builds, tests, smokes MCP, packs, publishes provenance releases.",
|
|
109
|
+
"files": [
|
|
110
|
+
".github/workflows/ci.yml",
|
|
111
|
+
".github/workflows/publish.yml"
|
|
112
|
+
]
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
"id": "agentpack-bin",
|
|
116
|
+
"column": "entry",
|
|
117
|
+
"type": "entry",
|
|
118
|
+
"title": "agentpack",
|
|
119
|
+
"subtitle": "package bin",
|
|
120
|
+
"summary": "package.json#bin → dist/src/agentpack.js after TypeScript build.",
|
|
121
|
+
"files": [
|
|
122
|
+
"package.json",
|
|
123
|
+
"src/agentpack.ts"
|
|
124
|
+
]
|
|
125
|
+
},
|
|
126
|
+
{
|
|
127
|
+
"id": "cli",
|
|
128
|
+
"column": "entry",
|
|
129
|
+
"type": "entry",
|
|
130
|
+
"title": "src/cli/index.ts",
|
|
131
|
+
"subtitle": "495 lines",
|
|
132
|
+
"summary": "Parses commands and flags, resolves --root / AGENTPACK_ROOT / cwd, dispatches CLI operations, can start MCP mode.",
|
|
133
|
+
"files": [
|
|
134
|
+
"src/cli/index.ts"
|
|
135
|
+
]
|
|
136
|
+
},
|
|
137
|
+
{
|
|
138
|
+
"id": "mcp-start",
|
|
139
|
+
"column": "entry",
|
|
140
|
+
"type": "entry",
|
|
141
|
+
"title": "agentpack mcp",
|
|
142
|
+
"subtitle": "stdio launcher",
|
|
143
|
+
"summary": "Launches JSON-RPC over stdio. Root resolution: --root → AGENTPACK_ROOT → cwd.",
|
|
144
|
+
"files": [
|
|
145
|
+
"src/cli/index.ts",
|
|
146
|
+
"src/mcp/server.ts"
|
|
147
|
+
]
|
|
148
|
+
},
|
|
149
|
+
{
|
|
150
|
+
"id": "mcp-server",
|
|
151
|
+
"column": "dispatch",
|
|
152
|
+
"type": "tool",
|
|
153
|
+
"title": "src/mcp/server.ts",
|
|
154
|
+
"subtitle": "397 lines",
|
|
155
|
+
"summary": "MCP tools: load_context, source_status, record_source, record_decision, record_dead_end, attach_evidence, checkpoint, diff, replay, resume.",
|
|
156
|
+
"files": [
|
|
157
|
+
"src/mcp/server.ts",
|
|
158
|
+
"docs/MCP.md"
|
|
159
|
+
]
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
"id": "commands",
|
|
163
|
+
"column": "dispatch",
|
|
164
|
+
"type": "tool",
|
|
165
|
+
"title": "CLI commands",
|
|
166
|
+
"subtitle": "human surface",
|
|
167
|
+
"summary": "init · set · record · note · source · evidence · run · checkpoint · resume · export · diff · replay · doctor.",
|
|
168
|
+
"files": [
|
|
169
|
+
"src/cli/index.ts",
|
|
170
|
+
"docs/CLI.md"
|
|
171
|
+
]
|
|
172
|
+
},
|
|
173
|
+
{
|
|
174
|
+
"id": "install",
|
|
175
|
+
"column": "dispatch",
|
|
176
|
+
"type": "tool",
|
|
177
|
+
"title": "installIntegration()",
|
|
178
|
+
"subtitle": "client installer",
|
|
179
|
+
"summary": "Generates Codex / Claude / Claude Desktop / Cursor instructions + MCP config. Dry-run unless --write.",
|
|
180
|
+
"files": [
|
|
181
|
+
"src/integrations/install.ts",
|
|
182
|
+
"docs/INTEGRATIONS.md"
|
|
183
|
+
]
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"id": "operations",
|
|
187
|
+
"column": "operations",
|
|
188
|
+
"type": "operation",
|
|
189
|
+
"title": "src/operations.ts",
|
|
190
|
+
"subtitle": "268 lines",
|
|
191
|
+
"summary": "Source records, evidence files, source status, replay output, git-status labels, redaction at the operation boundary.",
|
|
192
|
+
"files": [
|
|
193
|
+
"src/operations.ts"
|
|
194
|
+
]
|
|
195
|
+
},
|
|
196
|
+
{
|
|
197
|
+
"id": "doctor",
|
|
198
|
+
"column": "operations",
|
|
199
|
+
"type": "operation",
|
|
200
|
+
"title": "core/doctor.ts",
|
|
201
|
+
"summary": "Pack health, ignore gaps, project MCP names, stale roots, Desktop config, launcher risks.",
|
|
202
|
+
"files": [
|
|
203
|
+
"src/core/doctor.ts"
|
|
204
|
+
]
|
|
205
|
+
},
|
|
206
|
+
{
|
|
207
|
+
"id": "git",
|
|
208
|
+
"column": "operations",
|
|
209
|
+
"type": "operation",
|
|
210
|
+
"title": "core/git.ts",
|
|
211
|
+
"summary": "Branch, head commit, working-tree status, bounded diff context for resumes.",
|
|
212
|
+
"files": [
|
|
213
|
+
"src/core/git.ts"
|
|
214
|
+
]
|
|
215
|
+
},
|
|
216
|
+
{
|
|
217
|
+
"id": "hash",
|
|
218
|
+
"column": "operations",
|
|
219
|
+
"type": "operation",
|
|
220
|
+
"title": "core/hash.ts",
|
|
221
|
+
"summary": "sha256File + getFileRecord. Powers source-cache identity and stale detection.",
|
|
222
|
+
"files": [
|
|
223
|
+
"src/core/hash.ts"
|
|
224
|
+
]
|
|
225
|
+
},
|
|
226
|
+
{
|
|
227
|
+
"id": "store",
|
|
228
|
+
"column": "core",
|
|
229
|
+
"type": "core",
|
|
230
|
+
"title": "core/store.ts",
|
|
231
|
+
"subtitle": "286 lines",
|
|
232
|
+
"summary": "Finds pack roots, initPack(), appends ignore patterns, reads/writes state, appends events, serializes writes with .lock.",
|
|
233
|
+
"files": [
|
|
234
|
+
"src/core/store.ts"
|
|
235
|
+
]
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"id": "checkpoints",
|
|
239
|
+
"column": "core",
|
|
240
|
+
"type": "core",
|
|
241
|
+
"title": "core/checkpoints.ts",
|
|
242
|
+
"summary": "Creates checkpoint directories, manifests, resume snapshots, updates state pointer, diffs checkpoint pairs.",
|
|
243
|
+
"files": [
|
|
244
|
+
"src/core/checkpoints.ts"
|
|
245
|
+
]
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"id": "resume",
|
|
249
|
+
"column": "core",
|
|
250
|
+
"type": "core",
|
|
251
|
+
"title": "core/resume.ts",
|
|
252
|
+
"summary": "Builds budgeted markdown context: state + git + source cache + decisions + dead ends + evidence + recent timeline.",
|
|
253
|
+
"files": [
|
|
254
|
+
"src/core/resume.ts"
|
|
255
|
+
]
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"id": "budget",
|
|
259
|
+
"column": "core",
|
|
260
|
+
"type": "core",
|
|
261
|
+
"title": "core/budget.ts",
|
|
262
|
+
"summary": "Token estimator + section packer. Required sections kept, optionals truncated, omissions reported.",
|
|
263
|
+
"files": [
|
|
264
|
+
"src/core/budget.ts",
|
|
265
|
+
"src/core/presets.ts"
|
|
266
|
+
]
|
|
267
|
+
},
|
|
268
|
+
{
|
|
269
|
+
"id": "redaction",
|
|
270
|
+
"column": "core",
|
|
271
|
+
"type": "core",
|
|
272
|
+
"title": "core/redaction.ts",
|
|
273
|
+
"summary": "Strips root paths and configured secret patterns before state leaves the local ledger.",
|
|
274
|
+
"files": [
|
|
275
|
+
"src/core/redaction.ts"
|
|
276
|
+
]
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"id": "state",
|
|
280
|
+
"column": "storage",
|
|
281
|
+
"type": "state",
|
|
282
|
+
"title": "state.json",
|
|
283
|
+
"summary": "Goal · current status · next actions · current checkpoint pointer.",
|
|
284
|
+
"files": [
|
|
285
|
+
".agentpack/state.json"
|
|
286
|
+
]
|
|
287
|
+
},
|
|
288
|
+
{
|
|
289
|
+
"id": "events",
|
|
290
|
+
"column": "storage",
|
|
291
|
+
"type": "state",
|
|
292
|
+
"title": "events.jsonl",
|
|
293
|
+
"summary": "Append-only timeline: decisions, notes, evidence, commands, sources, checkpoints.",
|
|
294
|
+
"files": [
|
|
295
|
+
".agentpack/events.jsonl"
|
|
296
|
+
]
|
|
297
|
+
},
|
|
298
|
+
{
|
|
299
|
+
"id": "sources",
|
|
300
|
+
"column": "storage",
|
|
301
|
+
"type": "state",
|
|
302
|
+
"title": "sources.json",
|
|
303
|
+
"summary": "Source-cache summaries keyed by path + sha256 so future agents avoid stale assumptions.",
|
|
304
|
+
"files": [
|
|
305
|
+
".agentpack/sources.json"
|
|
306
|
+
]
|
|
307
|
+
},
|
|
308
|
+
{
|
|
309
|
+
"id": "evidence",
|
|
310
|
+
"column": "storage",
|
|
311
|
+
"type": "state",
|
|
312
|
+
"title": "evidence/",
|
|
313
|
+
"summary": "Local evidence payloads attached from command output, files, notes, links.",
|
|
314
|
+
"files": [
|
|
315
|
+
".agentpack/evidence/"
|
|
316
|
+
]
|
|
317
|
+
},
|
|
318
|
+
{
|
|
319
|
+
"id": "checkpoint-store",
|
|
320
|
+
"column": "storage",
|
|
321
|
+
"type": "state",
|
|
322
|
+
"title": "checkpoints/",
|
|
323
|
+
"summary": "Durable checkpoint manifests and resume snapshots for recovery & comparison.",
|
|
324
|
+
"files": [
|
|
325
|
+
".agentpack/checkpoints/"
|
|
326
|
+
]
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"id": "instructions",
|
|
330
|
+
"column": "storage",
|
|
331
|
+
"type": "state",
|
|
332
|
+
"title": "instructions/",
|
|
333
|
+
"summary": "Generated client instructions for the Agentpack workflow.",
|
|
334
|
+
"files": [
|
|
335
|
+
".agentpack/instructions/"
|
|
336
|
+
]
|
|
337
|
+
},
|
|
338
|
+
{
|
|
339
|
+
"id": "resume-output",
|
|
340
|
+
"column": "outputs",
|
|
341
|
+
"type": "output",
|
|
342
|
+
"title": "resume / load_context",
|
|
343
|
+
"summary": "Markdown task context: pack root, state, git, source-cache guidance, decisions, evidence, next actions.",
|
|
344
|
+
"files": [
|
|
345
|
+
"docs/MCP.md",
|
|
346
|
+
"docs/CLI.md"
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
{
|
|
350
|
+
"id": "handoff-export",
|
|
351
|
+
"column": "outputs",
|
|
352
|
+
"type": "output",
|
|
353
|
+
"title": "exports/",
|
|
354
|
+
"summary": "Markdown handoff fallback for clients that cannot read local MCP tools.",
|
|
355
|
+
"files": [
|
|
356
|
+
".agentpack/exports/"
|
|
357
|
+
]
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"id": "client-config",
|
|
361
|
+
"column": "outputs",
|
|
362
|
+
"type": "output",
|
|
363
|
+
"title": "Client MCP config",
|
|
364
|
+
"summary": "Project-local Codex / Claude / Cursor. Claude Desktop gets a merge snippet for global config.",
|
|
365
|
+
"files": [
|
|
366
|
+
".codex/config.toml",
|
|
367
|
+
".mcp.json",
|
|
368
|
+
".cursor/mcp.json"
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
{
|
|
372
|
+
"id": "doctor-output",
|
|
373
|
+
"column": "outputs",
|
|
374
|
+
"type": "output",
|
|
375
|
+
"title": "doctor report",
|
|
376
|
+
"summary": "Ok / warn / fail checks for pack setup, ignore rules, MCP launcher safety.",
|
|
377
|
+
"files": [
|
|
378
|
+
"src/core/doctor.ts"
|
|
379
|
+
]
|
|
380
|
+
},
|
|
381
|
+
{
|
|
382
|
+
"id": "tests",
|
|
383
|
+
"column": "quality",
|
|
384
|
+
"type": "quality",
|
|
385
|
+
"title": "tests/agentpack.test.ts",
|
|
386
|
+
"summary": "node --test suite covering CLI, pack state, source status, resumes, MCP tools, doctor, installs, redaction, budget.",
|
|
387
|
+
"files": [
|
|
388
|
+
"tests/agentpack.test.ts"
|
|
389
|
+
]
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"id": "smoke",
|
|
393
|
+
"column": "quality",
|
|
394
|
+
"type": "quality",
|
|
395
|
+
"title": "scripts/mcp-smoke.mjs",
|
|
396
|
+
"summary": "Builds CLI, starts MCP, sends initialize / tools/list / resume JSON-RPC, validates output.",
|
|
397
|
+
"files": [
|
|
398
|
+
"scripts/mcp-smoke.mjs"
|
|
399
|
+
]
|
|
400
|
+
},
|
|
401
|
+
{
|
|
402
|
+
"id": "release",
|
|
403
|
+
"column": "quality",
|
|
404
|
+
"type": "quality",
|
|
405
|
+
"title": "release workflow",
|
|
406
|
+
"summary": "ci.yml builds + tests + smokes + packs. publish.yml releases npm with provenance via OIDC Trusted Publisher.",
|
|
407
|
+
"files": [
|
|
408
|
+
".github/workflows/ci.yml",
|
|
409
|
+
".github/workflows/publish.yml",
|
|
410
|
+
"docs/RELEASING.md"
|
|
411
|
+
]
|
|
412
|
+
}
|
|
413
|
+
],
|
|
414
|
+
"edges": [
|
|
415
|
+
{
|
|
416
|
+
"id": "e-human-bin",
|
|
417
|
+
"from": "human",
|
|
418
|
+
"to": "agentpack-bin"
|
|
419
|
+
},
|
|
420
|
+
{
|
|
421
|
+
"id": "e-agent-mcp",
|
|
422
|
+
"from": "agent",
|
|
423
|
+
"to": "mcp-start"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"id": "e-ci-bin",
|
|
427
|
+
"from": "ci",
|
|
428
|
+
"to": "agentpack-bin"
|
|
429
|
+
},
|
|
430
|
+
{
|
|
431
|
+
"id": "e-bin-cli",
|
|
432
|
+
"from": "agentpack-bin",
|
|
433
|
+
"to": "cli"
|
|
434
|
+
},
|
|
435
|
+
{
|
|
436
|
+
"id": "e-cli-mcp",
|
|
437
|
+
"from": "cli",
|
|
438
|
+
"to": "mcp-start"
|
|
439
|
+
},
|
|
440
|
+
{
|
|
441
|
+
"id": "e-mcp-server",
|
|
442
|
+
"from": "mcp-start",
|
|
443
|
+
"to": "mcp-server"
|
|
444
|
+
},
|
|
445
|
+
{
|
|
446
|
+
"id": "e-mcp-commands",
|
|
447
|
+
"from": "mcp-server",
|
|
448
|
+
"to": "commands"
|
|
449
|
+
},
|
|
450
|
+
{
|
|
451
|
+
"id": "e-cli-commands",
|
|
452
|
+
"from": "cli",
|
|
453
|
+
"to": "commands"
|
|
454
|
+
},
|
|
455
|
+
{
|
|
456
|
+
"id": "e-cli-install",
|
|
457
|
+
"from": "cli",
|
|
458
|
+
"to": "install"
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"id": "e-commands-operations",
|
|
462
|
+
"from": "commands",
|
|
463
|
+
"to": "operations"
|
|
464
|
+
},
|
|
465
|
+
{
|
|
466
|
+
"id": "e-commands-doctor",
|
|
467
|
+
"from": "commands",
|
|
468
|
+
"to": "doctor"
|
|
469
|
+
},
|
|
470
|
+
{
|
|
471
|
+
"id": "e-mcp-operations",
|
|
472
|
+
"from": "mcp-server",
|
|
473
|
+
"to": "operations"
|
|
474
|
+
},
|
|
475
|
+
{
|
|
476
|
+
"id": "e-operations-hash",
|
|
477
|
+
"from": "operations",
|
|
478
|
+
"to": "hash"
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"id": "e-operations-git",
|
|
482
|
+
"from": "operations",
|
|
483
|
+
"to": "git"
|
|
484
|
+
},
|
|
485
|
+
{
|
|
486
|
+
"id": "e-commands-store",
|
|
487
|
+
"from": "commands",
|
|
488
|
+
"to": "store"
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"id": "e-install-store",
|
|
492
|
+
"from": "install",
|
|
493
|
+
"to": "store"
|
|
494
|
+
},
|
|
495
|
+
{
|
|
496
|
+
"id": "e-commands-checkpoints",
|
|
497
|
+
"from": "commands",
|
|
498
|
+
"to": "checkpoints"
|
|
499
|
+
},
|
|
500
|
+
{
|
|
501
|
+
"id": "e-mcp-checkpoints",
|
|
502
|
+
"from": "mcp-server",
|
|
503
|
+
"to": "checkpoints"
|
|
504
|
+
},
|
|
505
|
+
{
|
|
506
|
+
"id": "e-commands-resume",
|
|
507
|
+
"from": "commands",
|
|
508
|
+
"to": "resume"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"id": "e-mcp-resume",
|
|
512
|
+
"from": "mcp-server",
|
|
513
|
+
"to": "resume"
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
"id": "e-store-state",
|
|
517
|
+
"from": "store",
|
|
518
|
+
"to": "state"
|
|
519
|
+
},
|
|
520
|
+
{
|
|
521
|
+
"id": "e-store-events",
|
|
522
|
+
"from": "store",
|
|
523
|
+
"to": "events"
|
|
524
|
+
},
|
|
525
|
+
{
|
|
526
|
+
"id": "e-store-sources",
|
|
527
|
+
"from": "store",
|
|
528
|
+
"to": "sources"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"id": "e-operations-sources",
|
|
532
|
+
"from": "operations",
|
|
533
|
+
"to": "sources"
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
"id": "e-operations-evidence",
|
|
537
|
+
"from": "operations",
|
|
538
|
+
"to": "evidence"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"id": "e-operations-events",
|
|
542
|
+
"from": "operations",
|
|
543
|
+
"to": "events"
|
|
544
|
+
},
|
|
545
|
+
{
|
|
546
|
+
"id": "e-checkpoints-store",
|
|
547
|
+
"from": "checkpoints",
|
|
548
|
+
"to": "checkpoint-store"
|
|
549
|
+
},
|
|
550
|
+
{
|
|
551
|
+
"id": "e-checkpoints-state",
|
|
552
|
+
"from": "checkpoints",
|
|
553
|
+
"to": "state"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"id": "e-checkpoints-events",
|
|
557
|
+
"from": "checkpoints",
|
|
558
|
+
"to": "events"
|
|
559
|
+
},
|
|
560
|
+
{
|
|
561
|
+
"id": "e-install-instructions",
|
|
562
|
+
"from": "install",
|
|
563
|
+
"to": "instructions"
|
|
564
|
+
},
|
|
565
|
+
{
|
|
566
|
+
"id": "e-resume-state",
|
|
567
|
+
"from": "resume",
|
|
568
|
+
"to": "state"
|
|
569
|
+
},
|
|
570
|
+
{
|
|
571
|
+
"id": "e-resume-sources",
|
|
572
|
+
"from": "resume",
|
|
573
|
+
"to": "sources"
|
|
574
|
+
},
|
|
575
|
+
{
|
|
576
|
+
"id": "e-resume-events",
|
|
577
|
+
"from": "resume",
|
|
578
|
+
"to": "events"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"id": "e-resume-git",
|
|
582
|
+
"from": "resume",
|
|
583
|
+
"to": "git"
|
|
584
|
+
},
|
|
585
|
+
{
|
|
586
|
+
"id": "e-resume-budget",
|
|
587
|
+
"from": "resume",
|
|
588
|
+
"to": "budget"
|
|
589
|
+
},
|
|
590
|
+
{
|
|
591
|
+
"id": "e-resume-redaction",
|
|
592
|
+
"from": "resume",
|
|
593
|
+
"to": "redaction"
|
|
594
|
+
},
|
|
595
|
+
{
|
|
596
|
+
"id": "e-resume-out",
|
|
597
|
+
"from": "resume",
|
|
598
|
+
"to": "resume-output"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"id": "e-resume-export",
|
|
602
|
+
"from": "resume",
|
|
603
|
+
"to": "handoff-export"
|
|
604
|
+
},
|
|
605
|
+
{
|
|
606
|
+
"id": "e-install-config",
|
|
607
|
+
"from": "install",
|
|
608
|
+
"to": "client-config"
|
|
609
|
+
},
|
|
610
|
+
{
|
|
611
|
+
"id": "e-doctor-output",
|
|
612
|
+
"from": "doctor",
|
|
613
|
+
"to": "doctor-output"
|
|
614
|
+
},
|
|
615
|
+
{
|
|
616
|
+
"id": "e-tests-cli",
|
|
617
|
+
"from": "tests",
|
|
618
|
+
"to": "cli"
|
|
619
|
+
},
|
|
620
|
+
{
|
|
621
|
+
"id": "e-tests-mcp",
|
|
622
|
+
"from": "tests",
|
|
623
|
+
"to": "mcp-server"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"id": "e-smoke-mcp",
|
|
627
|
+
"from": "smoke",
|
|
628
|
+
"to": "mcp-server"
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"id": "e-release-tests",
|
|
632
|
+
"from": "release",
|
|
633
|
+
"to": "tests"
|
|
634
|
+
},
|
|
635
|
+
{
|
|
636
|
+
"id": "e-release-smoke",
|
|
637
|
+
"from": "release",
|
|
638
|
+
"to": "smoke"
|
|
639
|
+
}
|
|
640
|
+
],
|
|
641
|
+
"flows": [
|
|
642
|
+
{
|
|
643
|
+
"id": "init",
|
|
644
|
+
"label": "init workspace",
|
|
645
|
+
"summary": "Create local task-state ledger and keep it out of git.",
|
|
646
|
+
"nodes": [
|
|
647
|
+
"human",
|
|
648
|
+
"agentpack-bin",
|
|
649
|
+
"cli",
|
|
650
|
+
"commands",
|
|
651
|
+
"store",
|
|
652
|
+
"state",
|
|
653
|
+
"events",
|
|
654
|
+
"sources",
|
|
655
|
+
"instructions"
|
|
656
|
+
],
|
|
657
|
+
"edges": [
|
|
658
|
+
"e-human-bin",
|
|
659
|
+
"e-bin-cli",
|
|
660
|
+
"e-cli-commands",
|
|
661
|
+
"e-commands-store",
|
|
662
|
+
"e-store-state",
|
|
663
|
+
"e-store-events",
|
|
664
|
+
"e-store-sources"
|
|
665
|
+
],
|
|
666
|
+
"steps": [
|
|
667
|
+
"Developer runs `agentpack init` in a repo.",
|
|
668
|
+
"CLI resolves the workspace and calls `initPack()` in core/store.ts.",
|
|
669
|
+
"store.ts creates `.agentpack/` and default state.json, events.jsonl, sources.json.",
|
|
670
|
+
"`ensurePackIgnored()` appends local-only ignore patterns to .gitignore without replacing existing rules."
|
|
671
|
+
]
|
|
672
|
+
},
|
|
673
|
+
{
|
|
674
|
+
"id": "install",
|
|
675
|
+
"label": "install client",
|
|
676
|
+
"summary": "Generate client instructions + MCP launcher config for Codex / Claude / Cursor.",
|
|
677
|
+
"nodes": [
|
|
678
|
+
"human",
|
|
679
|
+
"agentpack-bin",
|
|
680
|
+
"cli",
|
|
681
|
+
"install",
|
|
682
|
+
"store",
|
|
683
|
+
"instructions",
|
|
684
|
+
"client-config"
|
|
685
|
+
],
|
|
686
|
+
"edges": [
|
|
687
|
+
"e-human-bin",
|
|
688
|
+
"e-bin-cli",
|
|
689
|
+
"e-cli-install",
|
|
690
|
+
"e-install-store",
|
|
691
|
+
"e-install-instructions",
|
|
692
|
+
"e-install-config"
|
|
693
|
+
],
|
|
694
|
+
"steps": [
|
|
695
|
+
"Developer runs `agentpack install codex|claude|claude-desktop|cursor --write`.",
|
|
696
|
+
"`installIntegration()` builds the per-client file plan (dry-run unless --write).",
|
|
697
|
+
"Generated workflow instructions are written under `.agentpack/instructions/`.",
|
|
698
|
+
"Project-local clients get config files (.codex, .mcp.json, .cursor/mcp.json); Claude Desktop gets a merge snippet."
|
|
699
|
+
]
|
|
700
|
+
},
|
|
701
|
+
{
|
|
702
|
+
"id": "source-cache",
|
|
703
|
+
"label": "source cache",
|
|
704
|
+
"summary": "Record source conclusions by hash and detect staleness on the next session.",
|
|
705
|
+
"nodes": [
|
|
706
|
+
"agent",
|
|
707
|
+
"mcp-start",
|
|
708
|
+
"mcp-server",
|
|
709
|
+
"operations",
|
|
710
|
+
"hash",
|
|
711
|
+
"git",
|
|
712
|
+
"sources",
|
|
713
|
+
"events",
|
|
714
|
+
"resume-output"
|
|
715
|
+
],
|
|
716
|
+
"edges": [
|
|
717
|
+
"e-agent-mcp",
|
|
718
|
+
"e-mcp-server",
|
|
719
|
+
"e-mcp-operations",
|
|
720
|
+
"e-operations-hash",
|
|
721
|
+
"e-operations-git",
|
|
722
|
+
"e-operations-sources",
|
|
723
|
+
"e-operations-events"
|
|
724
|
+
],
|
|
725
|
+
"steps": [
|
|
726
|
+
"Agent inspects an important source file.",
|
|
727
|
+
"`record_source` (or `agentpack source add`) stores summary + snippet + path + sha256 via core/hash.ts.",
|
|
728
|
+
"`source_status` later compares recorded hashes against the working tree and git status.",
|
|
729
|
+
"Future resumes show unchanged sources as compact stubs and flag changed/missing files in full."
|
|
730
|
+
]
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"id": "checkpoint",
|
|
734
|
+
"label": "checkpoint",
|
|
735
|
+
"summary": "Persist meaningful progress into durable state and a recoverable snapshot.",
|
|
736
|
+
"nodes": [
|
|
737
|
+
"agent",
|
|
738
|
+
"mcp-start",
|
|
739
|
+
"mcp-server",
|
|
740
|
+
"checkpoints",
|
|
741
|
+
"store",
|
|
742
|
+
"state",
|
|
743
|
+
"events",
|
|
744
|
+
"checkpoint-store"
|
|
745
|
+
],
|
|
746
|
+
"edges": [
|
|
747
|
+
"e-agent-mcp",
|
|
748
|
+
"e-mcp-server",
|
|
749
|
+
"e-mcp-checkpoints",
|
|
750
|
+
"e-checkpoints-store",
|
|
751
|
+
"e-checkpoints-state",
|
|
752
|
+
"e-checkpoints-events"
|
|
753
|
+
],
|
|
754
|
+
"steps": [
|
|
755
|
+
"Agent reaches a coherent boundary and calls `checkpoint`.",
|
|
756
|
+
"`checkpoints.ts` writes a manifest + resume snapshot under the Agentpack write lock.",
|
|
757
|
+
"state.json is updated with status, next actions, and the current checkpoint id.",
|
|
758
|
+
"events.jsonl gets a `checkpoint` event for the timeline."
|
|
759
|
+
]
|
|
760
|
+
},
|
|
761
|
+
{
|
|
762
|
+
"id": "resume",
|
|
763
|
+
"label": "resume context",
|
|
764
|
+
"summary": "Pack current task state into budgeted markdown for the next agent.",
|
|
765
|
+
"nodes": [
|
|
766
|
+
"agent",
|
|
767
|
+
"mcp-start",
|
|
768
|
+
"mcp-server",
|
|
769
|
+
"resume",
|
|
770
|
+
"git",
|
|
771
|
+
"budget",
|
|
772
|
+
"redaction",
|
|
773
|
+
"state",
|
|
774
|
+
"sources",
|
|
775
|
+
"events",
|
|
776
|
+
"resume-output",
|
|
777
|
+
"handoff-export"
|
|
778
|
+
],
|
|
779
|
+
"edges": [
|
|
780
|
+
"e-agent-mcp",
|
|
781
|
+
"e-mcp-server",
|
|
782
|
+
"e-mcp-resume",
|
|
783
|
+
"e-resume-state",
|
|
784
|
+
"e-resume-sources",
|
|
785
|
+
"e-resume-events",
|
|
786
|
+
"e-resume-git",
|
|
787
|
+
"e-resume-budget",
|
|
788
|
+
"e-resume-redaction",
|
|
789
|
+
"e-resume-out",
|
|
790
|
+
"e-resume-export"
|
|
791
|
+
],
|
|
792
|
+
"steps": [
|
|
793
|
+
"Agent calls `load_context` or `resume` with a preset, budget, and optional query.",
|
|
794
|
+
"core/resume.ts combines state + git + source cache + decisions + evidence + timeline.",
|
|
795
|
+
"core/budget.ts keeps required sections and reports truncated/omitted ones.",
|
|
796
|
+
"core/redaction.ts strips root paths + configured secrets before output leaves the ledger.",
|
|
797
|
+
"Result is returned via MCP, or written to `.agentpack/exports/` as a markdown fallback."
|
|
798
|
+
]
|
|
799
|
+
},
|
|
800
|
+
{
|
|
801
|
+
"id": "doctor-ci",
|
|
802
|
+
"label": "doctor + CI",
|
|
803
|
+
"summary": "Catch broken setup, stale MCP roots, and release regressions.",
|
|
804
|
+
"nodes": [
|
|
805
|
+
"human",
|
|
806
|
+
"ci",
|
|
807
|
+
"agentpack-bin",
|
|
808
|
+
"cli",
|
|
809
|
+
"commands",
|
|
810
|
+
"doctor",
|
|
811
|
+
"doctor-output",
|
|
812
|
+
"tests",
|
|
813
|
+
"smoke",
|
|
814
|
+
"release",
|
|
815
|
+
"mcp-server"
|
|
816
|
+
],
|
|
817
|
+
"edges": [
|
|
818
|
+
"e-human-bin",
|
|
819
|
+
"e-ci-bin",
|
|
820
|
+
"e-bin-cli",
|
|
821
|
+
"e-cli-commands",
|
|
822
|
+
"e-commands-doctor",
|
|
823
|
+
"e-doctor-output",
|
|
824
|
+
"e-release-tests",
|
|
825
|
+
"e-release-smoke",
|
|
826
|
+
"e-tests-cli",
|
|
827
|
+
"e-tests-mcp",
|
|
828
|
+
"e-smoke-mcp"
|
|
829
|
+
],
|
|
830
|
+
"steps": [
|
|
831
|
+
"`agentpack doctor` reports pack health, ignore rules, launcher names, and stale roots.",
|
|
832
|
+
"Node tests cover CLI behavior, MCP tools, installs, source cache, redaction, budget packing.",
|
|
833
|
+
"`scripts/mcp-smoke.mjs` runs a JSON-RPC flow against the built server.",
|
|
834
|
+
"Release workflow publishes npm packages with provenance after build/test/smoke/pack checks."
|
|
835
|
+
]
|
|
836
|
+
}
|
|
837
|
+
]
|
|
838
|
+
}
|