@dendelion/paper-camp 0.12.0 → 0.13.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 (65) hide show
  1. package/dist/app/assets/index-BMsByqaB.js +3 -0
  2. package/dist/app/assets/index-BMsByqaB.js.map +1 -0
  3. package/dist/app/assets/index-Bwc1cGPX.js +6 -0
  4. package/dist/app/assets/index-Bwc1cGPX.js.map +1 -0
  5. package/dist/app/assets/index-CQB12bDI.js +2 -0
  6. package/dist/app/assets/index-CQB12bDI.js.map +1 -0
  7. package/dist/app/assets/index-D-k_o5eq.js +2 -0
  8. package/dist/app/assets/index-D-k_o5eq.js.map +1 -0
  9. package/dist/app/assets/index-D6bamXbC.js +2 -0
  10. package/dist/app/assets/index-D6bamXbC.js.map +1 -0
  11. package/dist/app/assets/index-V3ou3lzT.js +4 -0
  12. package/dist/app/assets/index-V3ou3lzT.js.map +1 -0
  13. package/dist/app/assets/main-0sfOZaxl.js +207 -0
  14. package/dist/app/assets/main-0sfOZaxl.js.map +1 -0
  15. package/dist/app/assets/main-CZ1b3UwB.css +1 -0
  16. package/dist/app/assets/sidebar-section-DLMrMf9C.js +2 -0
  17. package/dist/app/assets/sidebar-section-DLMrMf9C.js.map +1 -0
  18. package/dist/app/assets/tokens-C9JyAXxm.js +2 -0
  19. package/dist/app/assets/tokens-C9JyAXxm.js.map +1 -0
  20. package/dist/app/index.html +2 -2
  21. package/dist/chunks/{scaffold.B_3sY6Rg.js → scaffold.CuJP4koY.js} +1832 -1914
  22. package/dist/chunks/scaffold.CuJP4koY.js.map +1 -0
  23. package/dist/cli/index.js +8845 -8571
  24. package/dist/cli/index.js.map +1 -1
  25. package/dist/core/git-pr/pr-lookup.d.ts.map +1 -1
  26. package/dist/core/git-pr/pr.d.ts.map +1 -1
  27. package/dist/core/index.js +74 -82
  28. package/dist/core/parse/parser.d.ts +2 -4
  29. package/dist/core/parse/parser.d.ts.map +1 -1
  30. package/dist/core/parse/schemas.d.ts +0 -20
  31. package/dist/core/parse/schemas.d.ts.map +1 -1
  32. package/dist/core/readers.d.ts.map +1 -1
  33. package/dist/core/roadmap.d.ts.map +1 -1
  34. package/dist/core/scaffold/templates.d.ts +1 -1
  35. package/dist/core/scaffold/templates.d.ts.map +1 -1
  36. package/dist/core/sections.d.ts +5 -1
  37. package/dist/core/sections.d.ts.map +1 -1
  38. package/dist/core/serialize/serializer.d.ts +4 -26
  39. package/dist/core/serialize/serializer.d.ts.map +1 -1
  40. package/dist/core/stats.d.ts +10 -0
  41. package/dist/core/stats.d.ts.map +1 -0
  42. package/dist/core/stats.test.d.ts +2 -0
  43. package/dist/core/stats.test.d.ts.map +1 -0
  44. package/dist/core/status/status.d.ts +1 -0
  45. package/dist/core/status/status.d.ts.map +1 -1
  46. package/dist/core/thread.d.ts +15 -0
  47. package/dist/core/thread.d.ts.map +1 -0
  48. package/dist/types/index.d.ts +92 -45
  49. package/dist/types/index.d.ts.map +1 -1
  50. package/dist/types/index.js.map +1 -1
  51. package/package.json +9 -4
  52. package/dist/app/assets/index-B6eOrr41.js +0 -4
  53. package/dist/app/assets/index-B6eOrr41.js.map +0 -1
  54. package/dist/app/assets/index-BajRXbXg.js +0 -2
  55. package/dist/app/assets/index-BajRXbXg.js.map +0 -1
  56. package/dist/app/assets/index-DAexv1XS.js +0 -3
  57. package/dist/app/assets/index-DAexv1XS.js.map +0 -1
  58. package/dist/app/assets/index-DFJlDY3W.js +0 -2
  59. package/dist/app/assets/index-DFJlDY3W.js.map +0 -1
  60. package/dist/app/assets/main-Bno8vU-0.js +0 -288
  61. package/dist/app/assets/main-Bno8vU-0.js.map +0 -1
  62. package/dist/app/assets/main-RP3LpwgH.css +0 -1
  63. package/dist/app/assets/sidebar-section-BrJbBK_b.js +0 -2
  64. package/dist/app/assets/sidebar-section-BrJbBK_b.js.map +0 -1
  65. package/dist/chunks/scaffold.B_3sY6Rg.js.map +0 -1
@@ -9,8 +9,6 @@ export declare const PLAN_KINDS: PlanKind[];
9
9
  export declare const AGENT_IDS: readonly ["claude-code", "opencode"];
10
10
  export type AgentId = (typeof AGENT_IDS)[number];
11
11
  export declare const AGENT_LABELS: Record<AgentId, string>;
12
- export type DecisionStatus = 'decided' | 'superseded';
13
- export type QuestionStatus = 'open' | 'resolved';
14
12
  export interface PhaseItem {
15
13
  done: boolean;
16
14
  text: string;
@@ -26,10 +24,26 @@ export type MarginNoteAnchor = {
26
24
  kind: 'body';
27
25
  };
28
26
  export type MarginNoteState = 'open' | 'resolved';
27
+ export type MarginNoteKind = 'note' | 'decision' | 'question';
29
28
  export interface MarginNote {
30
29
  anchor: MarginNoteAnchor;
31
30
  prose: string;
32
31
  state: MarginNoteState;
32
+ kind?: MarginNoteKind;
33
+ }
34
+ /** What a thread message originally was, before log/review/notes/clarifications folded
35
+ * into one ordered thread on the entity — 'note'/'decision'/'question' carry `state`,
36
+ * the rest are plain historical records. */
37
+ export type ThreadMessageKind = 'log' | 'clarification' | 'review' | 'note' | 'decision' | 'question';
38
+ export interface ThreadMessage {
39
+ kind: ThreadMessageKind;
40
+ /** Absent for messages ported from the old Notes section, which never carried a date. */
41
+ date?: string;
42
+ text: string;
43
+ /** Only meaningful for note/decision/question kinds. */
44
+ state?: MarginNoteState;
45
+ /** Absent means 'user' — no thread message predates this field being agent-authored. */
46
+ from?: 'user' | 'agent';
33
47
  }
34
48
  export interface RawEntry {
35
49
  title: string;
@@ -73,29 +87,24 @@ export interface FixReviewResult {
73
87
  why: string;
74
88
  }[];
75
89
  }
76
- export interface ReviewSplitPhase {
90
+ export interface FeedbackPhaseEdit {
91
+ op: 'add' | 'reword';
92
+ /** 1-based position in the plan's current phase list; required for "reword", ignored for "add". */
93
+ index?: number;
77
94
  text: string;
78
95
  description?: string;
79
96
  }
80
- export interface ReviewSplitFollowUp {
81
- title: string;
82
- body: string;
83
- }
84
- /** One review point's proposed classification — rework still inside this plan's
85
- * existing scope, or a follow-up idea for work that would grow beyond it. */
86
- export interface ReviewSplitItem {
87
- point: string;
88
- kind: 'rework' | 'idea';
89
- phases?: ReviewSplitPhase[];
90
- followUp?: ReviewSplitFollowUp;
97
+ export interface FeedbackEdit {
98
+ phases?: FeedbackPhaseEdit[];
99
+ /** The complete replacement body, when the message corrects body prose. */
100
+ body?: string;
91
101
  }
92
- export interface ReviewSplitResult {
93
- items: ReviewSplitItem[];
94
- }
95
- /** What an approved split actually applied — shown as a confirmation so approving is never silent. */
96
- export interface ReviewSplitOutcome {
97
- phasesAdded: number;
98
- ideaTitles: string[];
102
+ export interface FeedbackReplyResult {
103
+ reply: string;
104
+ edit?: FeedbackEdit;
105
+ /** True when the user's message answers an open question the agent asked
106
+ * earlier in this thread — the route persists that message as a clarification. */
107
+ answersQuestion?: boolean;
99
108
  }
100
109
  /** Live-resolved PR info for an entity's branch — see `core/pr.ts`. */
101
110
  export interface PrInfo {
@@ -127,12 +136,18 @@ export interface PlanEntry {
127
136
  order?: number;
128
137
  body: string;
129
138
  phases: PhaseItem[];
139
+ /** Post-build findings, same checkbox grammar as `phases` — see EntityEntry.fixes. */
140
+ fixes?: PhaseItem[];
130
141
  log?: LogEntry[];
131
142
  clarifications?: LogEntry[];
132
143
  notes?: MarginNote[];
133
144
  /** Prose written against the whole finished plan, distinct from the flat `log` — an
134
145
  * agent later splits each entry into rework phases or a follow-up idea. */
135
146
  review?: LogEntry[];
147
+ /** The entity's single ordered feedback thread — see EntityEntry.thread. */
148
+ thread?: ThreadMessage[];
149
+ /** Set by readEntities from which dir the file came from — see EntityEntry.archived. */
150
+ archived?: boolean;
136
151
  pr?: PrInfo;
137
152
  }
138
153
  export interface ArchivableIdea {
@@ -140,30 +155,35 @@ export interface ArchivableIdea {
140
155
  title: string;
141
156
  pr: PrInfo;
142
157
  }
143
- export interface DecisionEntry {
144
- title: string;
145
- date: string;
146
- status: DecisionStatus;
147
- supersededBy?: string;
148
- tags?: string[];
149
- body: string;
150
- }
151
- export interface OpenQuestionEntry {
152
- title: string;
153
- status: QuestionStatus;
154
- raised: string;
155
- resolvedBy?: string;
156
- blocks?: string;
157
- body: string;
158
- }
159
- export type ConsistencyIssueKind = 'dangling-resolved-by' | 'dangling-superseded-by' | 'blocked-plan-active' | 'orphan-subject';
158
+ export type ConsistencyIssueKind = 'orphan-subject';
160
159
  export interface ConsistencyIssue {
161
160
  kind: ConsistencyIssueKind;
162
- section: 'decisions' | 'open-questions' | 'plans';
161
+ section: 'plans';
163
162
  title: string;
164
163
  message: string;
165
164
  planId?: string;
166
165
  }
166
+ export interface CommentStats {
167
+ commentLines: number;
168
+ sourceLines: number;
169
+ ratio: number;
170
+ }
171
+ export interface TasksPerWeek {
172
+ /** ISO week, e.g. "2026-W05". */
173
+ week: string;
174
+ count: number;
175
+ }
176
+ export interface ProjectStats {
177
+ generatedAt: string;
178
+ comments: CommentStats;
179
+ testLines: number;
180
+ /** Null when no coverage report has been emitted yet (run `pnpm test`). */
181
+ testCoveragePct: number | null;
182
+ entitiesByStatus: Partial<Record<EntityStatus, number>>;
183
+ openQuestions: number;
184
+ decisions: number;
185
+ tasksPerWeek: TasksPerWeek[];
186
+ }
167
187
  export type IdeaKind = 'idea' | 'note';
168
188
  export type IdeaStatus = 'open' | 'done' | 'dropped';
169
189
  export interface IdeaEntry {
@@ -205,10 +225,12 @@ export interface EntityEntry {
205
225
  order?: number;
206
226
  body: string;
207
227
  phases: PhaseItem[];
208
- log?: LogEntry[];
209
- clarifications?: LogEntry[];
210
- notes?: MarginNote[];
211
- review?: LogEntry[];
228
+ /** Post-build findings, same checkbox grammar as `phases` — appended below Phases
229
+ * rather than rewriting the plan's already-finished phase history. */
230
+ fixes?: PhaseItem[];
231
+ /** The entity's single ordered feedback thread — folds what used to be separate
232
+ * log/clarifications/notes/review sections. */
233
+ thread?: ThreadMessage[];
212
234
  /** Set by readEntities from which of the two scanned dirs the file came from, not the frontmatter. */
213
235
  archived?: boolean;
214
236
  }
@@ -327,6 +349,12 @@ export interface AgentAuthStatus {
327
349
  authMethod: string | null;
328
350
  apiProvider: string | null;
329
351
  }
352
+ export type LoginRelayPhase = 'starting' | 'awaiting-authorization' | 'success' | 'error' | 'cancelled';
353
+ export interface LoginRelayState {
354
+ phase: LoginRelayPhase;
355
+ authorizeUrl: string | null;
356
+ error?: string;
357
+ }
330
358
  export type ServiceId = 'git' | 'gh' | `agent:${AgentId}`;
331
359
  /** What a Connections row offers once its service isn't `ok` — copy a command, follow a link, or read plain instructions. */
332
360
  export type ConnectAction =
@@ -377,8 +405,20 @@ export interface GitStatusResponse {
377
405
  branch: string;
378
406
  entries: GitStatusEntry[];
379
407
  ahead: number;
408
+ behind: number;
409
+ diverged: boolean;
380
410
  branchHygiene: BranchHygieneStatus;
381
411
  }
412
+ export interface FileDiffEntry {
413
+ path: string;
414
+ renameSource?: string;
415
+ staged: boolean;
416
+ binary: boolean;
417
+ additions: number;
418
+ deletions: number;
419
+ contentKind: 'diff' | 'raw' | 'too-large';
420
+ patch: string;
421
+ }
382
422
  export type BranchHygieneStatus = 'clean-on-main' | 'stale-merged' | 'stale-no-upstream' | 'dirty' | 'fine';
383
423
  export interface GitLiveState {
384
424
  branch: string;
@@ -388,16 +428,23 @@ export interface GitLiveState {
388
428
  }
389
429
  export interface GitSyncFailure {
390
430
  ok: false;
391
- stage: 'reconcile' | 'stash-pop';
431
+ stage: 'reconcile' | 'stash-pop' | 'conflicted';
392
432
  message: string;
393
433
  stashPending: boolean;
434
+ conflictedFiles?: string[];
435
+ conflictRef?: string;
436
+ conflictedContent?: {
437
+ path: string;
438
+ content: string;
439
+ }[];
394
440
  recoveryPrompt: string;
441
+ conflictPrompt?: string;
395
442
  }
396
443
  export type GitSyncResult = {
397
444
  ok: true;
398
445
  } | GitSyncFailure;
399
446
  export type AgentTaskStatus = 'starting' | 'running' | 'stopping' | 'done' | 'error';
400
- export type TaskKind = 'phase' | 'audit' | 'batch-reconcile' | 'run-all' | 'draft' | 'extend' | 'suggest' | 'commit-suggest' | 'overlap-check' | 'prioritise' | 'sync' | 'reconcile' | 'rework' | 'fix-review' | 'review-split';
447
+ export type TaskKind = 'phase' | 'audit' | 'batch-reconcile' | 'run-all' | 'draft' | 'extend' | 'suggest' | 'commit-suggest' | 'overlap-check' | 'prioritise' | 'sync' | 'reconcile' | 'fix-review' | 'resolve-conflict' | 'feedback';
401
448
  export interface TaskLogEntry {
402
449
  id: string;
403
450
  taskKind: TaskKind;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,SAAS,GAAG,aAAa,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAC;AAE5F,eAAO,MAAM,aAAa,EAAE,UAAU,EAOrC,CAAC;AAEF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,MAAM,QAAQ,GAAG,MAAM,GAAG,KAAK,GAAG,OAAO,GAAG,MAAM,GAAG,UAAU,CAAC;AAEtE,eAAO,MAAM,UAAU,EAAE,QAAQ,EAAiD,CAAC;AAEnF,eAAO,MAAM,SAAS,sCAAuC,CAAC;AAE9D,MAAM,MAAM,OAAO,GAAG,CAAC,OAAO,SAAS,CAAC,CAAC,MAAM,CAAC,CAAC;AAEjD,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,OAAO,EAAE,MAAM,CAGhD,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,YAAY,CAAC;AAEtD,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,UAAU,CAAC;AAEjD,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,OAAO,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,QAAQ,CAAC;CACnB;AAED;mFACmF;AACnF,MAAM,MAAM,gBAAgB,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;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C,CAAC;IAC5B,EAAE,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACrB,WAAW,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;CAC/B;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,eAAe,CAAC;IACxB,QAAQ,EAAE,QAAQ,CAAC;IACnB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,EAAE,CAAC;IAEhB,eAAe,CAAC,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC;IACrD,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,UAAU,GAAG,QAAQ,GAAG,KAAK,CAAC;IACvC,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,oGAAoG;AACpG,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,kBAAkB;IACjC,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,SAAS,EAAE,CAAA;KAAE,CAAC;CAC/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sources":["../../src/types/index.ts"],"sourcesContent":["export type PlanStatus = 'idea' | 'planned' | 'in-progress' | 'review' | 'done' | 'dropped';\n\nexport const PLAN_STATUSES: PlanStatus[] = [\n 'idea',\n 'planned',\n 'in-progress',\n 'review',\n 'done',\n 'dropped',\n];\n\nexport interface LogEntry {\n date: string;\n text: string;\n}\n\nexport type PlanKind = 'feat' | 'fix' | 'chore' | 'docs' | 'refactor';\n\nexport const PLAN_KINDS: PlanKind[] = ['feat', 'fix', 'chore', 'docs', 'refactor'];\n\nexport const AGENT_IDS = ['claude-code', 'opencode'] as const;\n\nexport type AgentId = (typeof AGENT_IDS)[number];\n\nexport const AGENT_LABELS: Record<AgentId, string> = {\n 'claude-code': 'Claude Code',\n opencode: 'OpenCode',\n};\n\nexport type DecisionStatus = 'decided' | 'superseded';\n\nexport type QuestionStatus = 'open' | 'resolved';\n\nexport interface PhaseItem {\n done: boolean;\n text: string;\n description?: string;\n source?: 'review';\n}\n\n/** A body section anchor is `body` for now — the whole prose block is the only\n * body section a plan/entity has until later phases break it into sub-sections. */\nexport type MarginNoteAnchor = { kind: 'phase'; index: number } | { kind: 'body' };\n\nexport type MarginNoteState = 'open' | 'resolved';\n\nexport interface MarginNote {\n anchor: MarginNoteAnchor;\n prose: string;\n state: MarginNoteState;\n}\n\nexport interface RawEntry {\n title: string;\n fields: Record<string, string>;\n body: string;\n phases: PhaseItem[];\n log?: LogEntry[];\n clarifications?: LogEntry[];\n notes?: MarginNote[];\n review?: LogEntry[];\n}\n\nexport interface ParseWarning {\n title: string;\n message: string;\n}\n\nexport interface ParseResult<T> {\n entries: T[];\n warnings: ParseWarning[];\n}\n\n/** A PR's reviewable/mergeable state, as surfaced by `gh pr list`. */\nexport type PrState = 'draft' | 'open' | 'closed' | 'merged';\n\n/** GitHub's PR review decision, as surfaced by `gh pr list --json reviewDecision`. */\nexport type ReviewDecision = 'approved' | 'changes-requested' | 'review-required';\n\n// Per-comment detail; PrInfo.unresolvedThreadCount only counts these.\nexport interface ReviewThread {\n /** GraphQL node id — what `resolveReviewThread`/`replyToReviewThread` address. */\n id: string;\n /** File path the comment is anchored to; absent for a PR-level (not diff-anchored) comment. */\n path?: string;\n line?: number;\n author?: string;\n body: string;\n}\n\n// Parsed from the JSON object a fix-review agent's prompt requires as its final line.\nexport interface FixReviewResult {\n commit: { title: string; message: string };\n addressed: string[];\n skipped: { threadId: string; why: string }[];\n}\n\nexport interface ReviewSplitPhase {\n text: string;\n description?: string;\n}\n\nexport interface ReviewSplitFollowUp {\n title: string;\n body: string;\n}\n\n/** One review point's proposed classification — rework still inside this plan's\n * existing scope, or a follow-up idea for work that would grow beyond it. */\nexport interface ReviewSplitItem {\n point: string;\n kind: 'rework' | 'idea';\n phases?: ReviewSplitPhase[];\n followUp?: ReviewSplitFollowUp;\n}\n\n// Parsed from the JSON object a review-split agent's prompt requires as its final line.\nexport interface ReviewSplitResult {\n items: ReviewSplitItem[];\n}\n\n/** What an approved split actually applied — shown as a confirmation so approving is never silent. */\nexport interface ReviewSplitOutcome {\n phasesAdded: number;\n ideaTitles: string[];\n}\n\n/** Live-resolved PR info for an entity's branch — see `core/pr.ts`. */\nexport interface PrInfo {\n number: number;\n url: string;\n state: PrState;\n /** Undefined when no review has been requested/decided, or when unresolved (offline, closed/merged PR). */\n reviewDecision?: ReviewDecision;\n /** Count of unresolved review threads. Only fetched for open/draft PRs; undefined when not fetched or unresolved. */\n unresolvedThreadCount?: number;\n /** Whether a comment or review landed after the PR's last commit — a proxy for \"since the last agent pass\" (a pass ends with a push). Only fetched for open/draft PRs. */\n hasNewCommentsSincePush?: boolean;\n}\n\nexport interface PlanEntry {\n title: string;\n status: PlanStatus;\n kind?: PlanKind;\n id?: string;\n idea?: string;\n agent?: AgentId;\n created: string;\n updated?: string;\n audited?: string;\n auditedHash?: string;\n tags: string[];\n /** Absent renders under the virtual \"No subject\" group. */\n subject?: string;\n /** Absent means unordered — sorts after all ordered entries, by created date. */\n order?: number;\n body: string;\n phases: PhaseItem[];\n log?: LogEntry[];\n clarifications?: LogEntry[];\n notes?: MarginNote[];\n /** Prose written against the whole finished plan, distinct from the flat `log` — an\n * agent later splits each entry into rework phases or a follow-up idea. */\n review?: LogEntry[];\n pr?: PrInfo;\n}\n\nexport interface ArchivableIdea {\n id: string;\n title: string;\n pr: PrInfo;\n}\n\nexport interface DecisionEntry {\n title: string;\n date: string;\n status: DecisionStatus;\n supersededBy?: string;\n tags?: string[];\n body: string;\n}\n\nexport interface OpenQuestionEntry {\n title: string;\n status: QuestionStatus;\n raised: string;\n resolvedBy?: string;\n blocks?: string;\n body: string;\n}\n\nexport type ConsistencyIssueKind =\n | 'dangling-resolved-by'\n | 'dangling-superseded-by'\n | 'blocked-plan-active'\n | 'orphan-subject';\n\nexport interface ConsistencyIssue {\n kind: ConsistencyIssueKind;\n section: 'decisions' | 'open-questions' | 'plans';\n title: string;\n message: string;\n planId?: string;\n}\n\nexport type IdeaKind = 'idea' | 'note';\n\nexport type IdeaStatus = 'open' | 'done' | 'dropped';\n\nexport interface IdeaEntry {\n id: string | null;\n title: string;\n body: string;\n kind?: IdeaKind;\n status?: IdeaStatus;\n /** Absent renders under the virtual \"No subject\" group. */\n subject?: string;\n /** Absent means unordered — sorts after all ordered entries, by created date. */\n order?: number;\n /** Fallback sort key for unordered entries — see `order`. Absent on view-model-only IdeaEntry literals that never enter the worklist sort. */\n created?: string;\n log?: LogEntry[];\n}\n\n// Unified entity — one file per entity, plan as an optional Phases section.\n// Supersedes PlanEntry/IdeaEntry once the migration cutover lands.\n\n/** Work classification — same Conventional-Commits values as PlanKind; `kind` renamed to `type` in the unified schema. */\nexport type EntityType = PlanKind;\n\n/** Plan lifecycle plus the note-only `open`. Notes use open → done/dropped; everything else uses the PlanStatus track. */\nexport type EntityStatus = PlanStatus | 'open';\n\nexport interface EntityEntry {\n id: string;\n title: string;\n /** Absent until the entity is classified (usually when its plan is drafted). */\n type?: EntityType;\n /** \"note\" marks an entity that never grows phases. */\n kind?: 'note';\n /** Stored override, not the source of truth — see entityFrontmatterSchema. */\n status?: EntityStatus;\n agent?: AgentId;\n created: string;\n updated?: string;\n audited?: string;\n auditedHash?: string;\n tags: string[];\n /** Absent renders as the virtual \"No subject\" group. */\n subject?: string;\n /** Absent means unordered — sorts after all ordered entries, by created date. */\n order?: number;\n body: string;\n phases: PhaseItem[];\n log?: LogEntry[];\n clarifications?: LogEntry[];\n notes?: MarginNote[];\n review?: LogEntry[];\n /** Set by readEntities from which of the two scanned dirs the file came from, not the frontmatter. */\n archived?: boolean;\n}\n\n// No `id`/`status`: it only becomes a real idea if a human promotes it.\nexport interface SuggestionEntry {\n date: string;\n title: string;\n description: string;\n}\n\nexport interface RoadmapItem {\n name: string;\n description: string;\n candidates: string[];\n linked: string[];\n}\n\nexport interface RoadmapHorizon {\n title: string;\n items: RoadmapItem[];\n}\n\nexport interface Roadmap {\n goal: string;\n horizons: RoadmapHorizon[];\n standingConcerns: RoadmapItem[];\n}\n\nexport interface RoadmapLink {\n id: string;\n status: PlanStatus;\n taskRuns: number;\n pr?: PrInfo;\n released: boolean;\n}\n\nexport interface RoadmapRollup {\n total: number;\n done: number;\n}\n\nexport interface ResolvedRoadmapItem extends RoadmapItem {\n links: RoadmapLink[];\n rollup: RoadmapRollup;\n}\n\nexport interface ResolvedRoadmapHorizon {\n title: string;\n items: ResolvedRoadmapItem[];\n rollup: RoadmapRollup;\n}\n\nexport interface ResolvedRoadmap {\n goal: string;\n horizons: ResolvedRoadmapHorizon[];\n events: RoadmapEvent[];\n}\n\nexport type RoadmapEventKind = 'created' | 'task-run';\n\nexport interface RoadmapEvent {\n date: string;\n kind: RoadmapEventKind;\n entityId: string;\n horizonTitle: string;\n itemName: string;\n label: string;\n}\n\nexport interface EnvEntry {\n key: string;\n value: string;\n /** Set on GET responses when the value is withheld — secrets never reach the client. */\n isSet?: boolean;\n}\n\nexport interface AgentConfig {\n agent: AgentId;\n model?: string;\n effort?: string;\n}\n\n/** Model/effort passed to an adapter's buildArgs — the AgentConfig minus the agent id. */\nexport interface AgentRunOptions {\n model?: string;\n effort?: string;\n}\n\n/** Maps option names to a fixed value list (renders a Select) or null (free-text or hidden). */\nexport type AgentOptionsDescriptor = Record<string, string[] | null | undefined>;\n\nexport const AGENT_OPTIONS: Record<AgentId, AgentOptionsDescriptor> = {\n 'claude-code': {\n model: ['opus', 'sonnet', 'fable', 'haiku'],\n effort: ['low', 'medium', 'high', 'xhigh', 'max'],\n },\n opencode: {\n model: null,\n },\n};\n\nexport function coerceAgentConfig(v: unknown): AgentConfig {\n const toAgent = (a: unknown): AgentId =>\n AGENT_IDS.includes(a as AgentId) ? (a as AgentId) : 'claude-code';\n if (typeof v === 'string') return { agent: toAgent(v) };\n // A missing key must not throw — that would 500 the /api/config read this protects.\n const obj = (v ?? {}) as Record<string, unknown>;\n return {\n agent: toAgent(obj.agent),\n ...(typeof obj.model === 'string' && { model: obj.model }),\n ...(typeof obj.effort === 'string' && { effort: obj.effort }),\n };\n}\n\nexport interface DefaultAgentsMap {\n phase: AgentConfig;\n planDraft: AgentConfig;\n ideaExtend: AgentConfig;\n commitSuggest: AgentConfig;\n}\n\nexport const DEFAULT_AGENTS: DefaultAgentsMap = {\n phase: { agent: 'opencode' },\n planDraft: { agent: 'claude-code' },\n ideaExtend: { agent: 'claude-code' },\n commitSuggest: { agent: 'claude-code' },\n};\n\nexport interface PaperCampConfig {\n version: string;\n projectName: string;\n initializedAt: string;\n /** The unified-entity `idea` counter; the per-kind plan counters are legacy, present only in pre-migration configs. */\n nextId?: Partial<Record<PlanKind, number>> & { idea?: number };\n port?: number;\n defaultAgents?: DefaultAgentsMap;\n /** Derived from `ROADMAP.md` on every read (IDEA-95), never written to disk; an idea's\n * `subject` not present here renders as \"No subject\". */\n subjects?: string[];\n /** Opts out of the first-run redirect to Settings > Setup while capabilities are incomplete. */\n setupDismissed?: boolean;\n}\n\nexport type CheckStatus = 'stale' | 'running' | 'pass' | 'fail';\n\nexport interface CheckResult {\n status: CheckStatus;\n lastRun: string | null;\n output: string;\n}\n\nexport type CheckName = 'lint' | 'format' | 'test' | 'consistency';\n\nexport type CapabilityStatus = 'ok' | 'warn' | 'missing';\n\nexport interface CapabilityResult {\n id: string;\n status: CapabilityStatus;\n detail: string;\n}\n\nexport interface AgentAuthStatus {\n loggedIn: boolean | null;\n authMethod: string | null;\n apiProvider: string | null;\n}\n\nexport type ServiceId = 'git' | 'gh' | `agent:${AgentId}`;\n\n/** What a Connections row offers once its service isn't `ok` — copy a command, follow a link, or read plain instructions. */\nexport type ConnectAction =\n /** `runnable` marks a command with no placeholders and no interactive prompts — safe for the server to execute directly instead of just displaying it. */\n | { kind: 'command'; command: string; runnable?: boolean }\n | { kind: 'link'; url: string; label: string }\n | { kind: 'text'; message: string };\n\nexport interface ConnectionResult {\n id: ServiceId;\n label: string;\n unlocks: string;\n status: CapabilityStatus;\n detail: string;\n authenticated: boolean | null;\n connect: ConnectAction | null;\n}\n\nexport interface MergePolicy {\n allowSquashMerge: boolean;\n allowMergeCommit: boolean;\n allowRebaseMerge: boolean;\n squashMergeCommitTitle: string;\n squashMergeCommitMessage: string;\n}\n\nexport type MergePolicyResult =\n | { status: 'ok'; repo: string; policy: MergePolicy }\n | { status: 'unavailable'; reason: string };\n\nexport interface GitStatusEntry {\n path: string;\n status: string;\n staged: boolean;\n renameSource?: string;\n}\n\nexport interface GitStatusResponse {\n branch: string;\n entries: GitStatusEntry[];\n ahead: number;\n branchHygiene: BranchHygieneStatus;\n}\n\nexport type BranchHygieneStatus =\n | 'clean-on-main'\n | 'stale-merged'\n | 'stale-no-upstream'\n | 'dirty'\n | 'fine';\n\nexport interface GitLiveState {\n branch: string;\n ahead: number;\n behind: number;\n dirtyCount: number;\n}\n\nexport interface GitSyncFailure {\n ok: false;\n stage: 'reconcile' | 'stash-pop';\n message: string;\n stashPending: boolean;\n // Prompt for the agent recovery job (see git-sync-recovery.ts) — the deterministic\n // path's failure, the working-tree state, and the goal, packaged for a future\n // launch rather than thrown at the user.\n recoveryPrompt: string;\n}\n\nexport type GitSyncResult = { ok: true } | GitSyncFailure;\n\nexport type AgentTaskStatus = 'starting' | 'running' | 'stopping' | 'done' | 'error';\n\nexport type TaskKind =\n | 'phase'\n | 'audit'\n | 'batch-reconcile'\n | 'run-all'\n | 'draft'\n | 'extend'\n | 'suggest'\n | 'commit-suggest'\n | 'overlap-check'\n | 'prioritise'\n | 'sync'\n | 'reconcile'\n | 'rework'\n | 'fix-review'\n | 'review-split';\n\n// Persisted to papercamp/tasks.log (JSON Lines) — survives a dev-server restart,\n// unlike the in-memory task registry.\nexport interface TaskLogEntry {\n id: string;\n taskKind: TaskKind;\n planId?: string;\n planTitle: string;\n agentId: AgentId;\n startedAt: string;\n endedAt: string;\n outcome: 'done' | 'error';\n}\n\nexport interface TrailHop<T> {\n reached: boolean;\n data?: T;\n}\n\nexport interface ProvenanceTrail {\n id: string;\n idea: TrailHop<{ title: string; status?: EntityStatus; type?: EntityType }>;\n phases: TrailHop<PhaseItem[]>;\n taskRuns: TrailHop<TaskLogEntry[]>;\n commits: TrailHop<string[]>;\n pr: TrailHop<PrInfo>;\n releaseLine: TrailHop<string>;\n}\n\nexport interface AgentTaskState {\n id: string;\n status: AgentTaskStatus;\n taskKind: TaskKind;\n planTitle: string;\n planId?: string;\n phaseIndex?: number;\n fixAttempt?: number;\n fixAttemptCap?: number;\n ideaId?: string;\n agentId: AgentId;\n lines: string[];\n // fix-review only: prefills the commit form once the agent has reported.\n suggestedCommit?: { title: string; message: string };\n errorKind?: 'auth';\n}\n\nexport interface OverlapVerdict {\n verdict: 'existing' | 'extend' | 'new';\n targetId: string | null;\n reasoning: string;\n}\n\n/** `why` carries one line per entry in `order`, same index — the reason for that id's placement. */\nexport interface PrioritiseVerdict {\n order: string[];\n why: string;\n}\n\nexport interface ReconcileQueueItem {\n planId: string;\n title: string;\n before: { body: string; phases: PhaseItem[] };\n}\n"],"names":["PLAN_STATUSES","PLAN_KINDS","AGENT_IDS","AGENT_LABELS","AGENT_OPTIONS","coerceAgentConfig","v","toAgent","a","obj","DEFAULT_AGENTS"],"mappings":"AAEO,MAAMA,IAA8B;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GASaC,IAAyB,CAAC,QAAQ,OAAO,SAAS,QAAQ,UAAU,GAEpEC,IAAY,CAAC,eAAe,UAAU,GAItCC,IAAwC;AAAA,EACnD,eAAe;AAAA,EACf,UAAU;AACZ,GAmUaC,IAAyD;AAAA,EACpE,eAAe;AAAA,IACb,OAAO,CAAC,QAAQ,UAAU,SAAS,OAAO;AAAA,IAC1C,QAAQ,CAAC,OAAO,UAAU,QAAQ,SAAS,KAAK;AAAA,EAAA;AAAA,EAElD,UAAU;AAAA,IACR,OAAO;AAAA,EAAA;AAEX;AAEO,SAASC,EAAkBC,GAAyB;AACzD,QAAMC,IAAU,CAACC,MACfN,EAAU,SAASM,CAAY,IAAKA,IAAgB;AACtD,MAAI,OAAOF,KAAM,SAAU,QAAO,EAAE,OAAOC,EAAQD,CAAC,EAAA;AAEpD,QAAMG,IAAOH,KAAK,CAAA;AAClB,SAAO;AAAA,IACL,OAAOC,EAAQE,EAAI,KAAK;AAAA,IACxB,GAAI,OAAOA,EAAI,SAAU,YAAY,EAAE,OAAOA,EAAI,MAAA;AAAA,IAClD,GAAI,OAAOA,EAAI,UAAW,YAAY,EAAE,QAAQA,EAAI,OAAA;AAAA,EAAO;AAE/D;AASO,MAAMC,IAAmC;AAAA,EAC9C,OAAO,EAAE,OAAO,WAAA;AAAA,EAChB,WAAW,EAAE,OAAO,cAAA;AAAA,EACpB,YAAY,EAAE,OAAO,cAAA;AAAA,EACrB,eAAe,EAAE,OAAO,cAAA;AAC1B;"}
1
+ {"version":3,"file":"index.js","sources":["../../src/types/index.ts"],"sourcesContent":["export type PlanStatus = 'idea' | 'planned' | 'in-progress' | 'review' | 'done' | 'dropped';\n\nexport const PLAN_STATUSES: PlanStatus[] = [\n 'idea',\n 'planned',\n 'in-progress',\n 'review',\n 'done',\n 'dropped',\n];\n\nexport interface LogEntry {\n date: string;\n text: string;\n}\n\nexport type PlanKind = 'feat' | 'fix' | 'chore' | 'docs' | 'refactor';\n\nexport const PLAN_KINDS: PlanKind[] = ['feat', 'fix', 'chore', 'docs', 'refactor'];\n\nexport const AGENT_IDS = ['claude-code', 'opencode'] as const;\n\nexport type AgentId = (typeof AGENT_IDS)[number];\n\nexport const AGENT_LABELS: Record<AgentId, string> = {\n 'claude-code': 'Claude Code',\n opencode: 'OpenCode',\n};\n\nexport interface PhaseItem {\n done: boolean;\n text: string;\n description?: string;\n source?: 'review';\n}\n\n/** A body section anchor is `body` for now — the whole prose block is the only\n * body section a plan/entity has until later phases break it into sub-sections. */\nexport type MarginNoteAnchor = { kind: 'phase'; index: number } | { kind: 'body' };\n\nexport type MarginNoteState = 'open' | 'resolved';\n\nexport type MarginNoteKind = 'note' | 'decision' | 'question';\n\nexport interface MarginNote {\n anchor: MarginNoteAnchor;\n prose: string;\n state: MarginNoteState;\n kind?: MarginNoteKind;\n}\n\n/** What a thread message originally was, before log/review/notes/clarifications folded\n * into one ordered thread on the entity — 'note'/'decision'/'question' carry `state`,\n * the rest are plain historical records. */\nexport type ThreadMessageKind =\n | 'log'\n | 'clarification'\n | 'review'\n | 'note'\n | 'decision'\n | 'question';\n\nexport interface ThreadMessage {\n kind: ThreadMessageKind;\n /** Absent for messages ported from the old Notes section, which never carried a date. */\n date?: string;\n text: string;\n /** Only meaningful for note/decision/question kinds. */\n state?: MarginNoteState;\n /** Absent means 'user' — no thread message predates this field being agent-authored. */\n from?: 'user' | 'agent';\n}\n\nexport interface RawEntry {\n title: string;\n fields: Record<string, string>;\n body: string;\n phases: PhaseItem[];\n log?: LogEntry[];\n clarifications?: LogEntry[];\n notes?: MarginNote[];\n review?: LogEntry[];\n}\n\nexport interface ParseWarning {\n title: string;\n message: string;\n}\n\nexport interface ParseResult<T> {\n entries: T[];\n warnings: ParseWarning[];\n}\n\n/** A PR's reviewable/mergeable state, as surfaced by `gh pr list`. */\nexport type PrState = 'draft' | 'open' | 'closed' | 'merged';\n\n/** GitHub's PR review decision, as surfaced by `gh pr list --json reviewDecision`. */\nexport type ReviewDecision = 'approved' | 'changes-requested' | 'review-required';\n\n// Per-comment detail; PrInfo.unresolvedThreadCount only counts these.\nexport interface ReviewThread {\n /** GraphQL node id — what `resolveReviewThread`/`replyToReviewThread` address. */\n id: string;\n /** File path the comment is anchored to; absent for a PR-level (not diff-anchored) comment. */\n path?: string;\n line?: number;\n author?: string;\n body: string;\n}\n\n// Parsed from the JSON object a fix-review agent's prompt requires as its final line.\nexport interface FixReviewResult {\n commit: { title: string; message: string };\n addressed: string[];\n skipped: { threadId: string; why: string }[];\n}\n\nexport interface FeedbackPhaseEdit {\n op: 'add' | 'reword';\n /** 1-based position in the plan's current phase list; required for \"reword\", ignored for \"add\". */\n index?: number;\n text: string;\n description?: string;\n}\n\nexport interface FeedbackEdit {\n phases?: FeedbackPhaseEdit[];\n /** The complete replacement body, when the message corrects body prose. */\n body?: string;\n}\n\n// Parsed from the JSON object a feedback-reply agent's prompt requires as its\n// final line. The chat never creates ideas — a request is either a reply or an\n// edit on the current plan.\nexport interface FeedbackReplyResult {\n reply: string;\n edit?: FeedbackEdit;\n /** True when the user's message answers an open question the agent asked\n * earlier in this thread — the route persists that message as a clarification. */\n answersQuestion?: boolean;\n}\n\n/** Live-resolved PR info for an entity's branch — see `core/pr.ts`. */\nexport interface PrInfo {\n number: number;\n url: string;\n state: PrState;\n /** Undefined when no review has been requested/decided, or when unresolved (offline, closed/merged PR). */\n reviewDecision?: ReviewDecision;\n /** Count of unresolved review threads. Only fetched for open/draft PRs; undefined when not fetched or unresolved. */\n unresolvedThreadCount?: number;\n /** Whether a comment or review landed after the PR's last commit — a proxy for \"since the last agent pass\" (a pass ends with a push). Only fetched for open/draft PRs. */\n hasNewCommentsSincePush?: boolean;\n}\n\nexport interface PlanEntry {\n title: string;\n status: PlanStatus;\n kind?: PlanKind;\n id?: string;\n idea?: string;\n agent?: AgentId;\n created: string;\n updated?: string;\n audited?: string;\n auditedHash?: string;\n tags: string[];\n /** Absent renders under the virtual \"No subject\" group. */\n subject?: string;\n /** Absent means unordered — sorts after all ordered entries, by created date. */\n order?: number;\n body: string;\n phases: PhaseItem[];\n /** Post-build findings, same checkbox grammar as `phases` — see EntityEntry.fixes. */\n fixes?: PhaseItem[];\n log?: LogEntry[];\n clarifications?: LogEntry[];\n notes?: MarginNote[];\n /** Prose written against the whole finished plan, distinct from the flat `log` — an\n * agent later splits each entry into rework phases or a follow-up idea. */\n review?: LogEntry[];\n /** The entity's single ordered feedback thread — see EntityEntry.thread. */\n thread?: ThreadMessage[];\n /** Set by readEntities from which dir the file came from — see EntityEntry.archived. */\n archived?: boolean;\n pr?: PrInfo;\n}\n\nexport interface ArchivableIdea {\n id: string;\n title: string;\n pr: PrInfo;\n}\n\nexport type ConsistencyIssueKind = 'orphan-subject';\n\nexport interface ConsistencyIssue {\n kind: ConsistencyIssueKind;\n section: 'plans';\n title: string;\n message: string;\n planId?: string;\n}\n\nexport interface CommentStats {\n commentLines: number;\n sourceLines: number;\n ratio: number;\n}\n\nexport interface TasksPerWeek {\n /** ISO week, e.g. \"2026-W05\". */\n week: string;\n count: number;\n}\n\nexport interface ProjectStats {\n generatedAt: string;\n comments: CommentStats;\n testLines: number;\n /** Null when no coverage report has been emitted yet (run `pnpm test`). */\n testCoveragePct: number | null;\n entitiesByStatus: Partial<Record<EntityStatus, number>>;\n openQuestions: number;\n decisions: number;\n tasksPerWeek: TasksPerWeek[];\n}\n\nexport type IdeaKind = 'idea' | 'note';\n\nexport type IdeaStatus = 'open' | 'done' | 'dropped';\n\nexport interface IdeaEntry {\n id: string | null;\n title: string;\n body: string;\n kind?: IdeaKind;\n status?: IdeaStatus;\n /** Absent renders under the virtual \"No subject\" group. */\n subject?: string;\n /** Absent means unordered — sorts after all ordered entries, by created date. */\n order?: number;\n /** Fallback sort key for unordered entries — see `order`. Absent on view-model-only IdeaEntry literals that never enter the worklist sort. */\n created?: string;\n log?: LogEntry[];\n}\n\n// Unified entity — one file per entity, plan as an optional Phases section.\n// Supersedes PlanEntry/IdeaEntry once the migration cutover lands.\n\n/** Work classification — same Conventional-Commits values as PlanKind; `kind` renamed to `type` in the unified schema. */\nexport type EntityType = PlanKind;\n\n/** Plan lifecycle plus the note-only `open`. Notes use open → done/dropped; everything else uses the PlanStatus track. */\nexport type EntityStatus = PlanStatus | 'open';\n\nexport interface EntityEntry {\n id: string;\n title: string;\n /** Absent until the entity is classified (usually when its plan is drafted). */\n type?: EntityType;\n /** \"note\" marks an entity that never grows phases. */\n kind?: 'note';\n /** Stored override, not the source of truth — see entityFrontmatterSchema. */\n status?: EntityStatus;\n agent?: AgentId;\n created: string;\n updated?: string;\n audited?: string;\n auditedHash?: string;\n tags: string[];\n /** Absent renders as the virtual \"No subject\" group. */\n subject?: string;\n /** Absent means unordered — sorts after all ordered entries, by created date. */\n order?: number;\n body: string;\n phases: PhaseItem[];\n /** Post-build findings, same checkbox grammar as `phases` — appended below Phases\n * rather than rewriting the plan's already-finished phase history. */\n fixes?: PhaseItem[];\n /** The entity's single ordered feedback thread — folds what used to be separate\n * log/clarifications/notes/review sections. */\n thread?: ThreadMessage[];\n /** Set by readEntities from which of the two scanned dirs the file came from, not the frontmatter. */\n archived?: boolean;\n}\n\n// No `id`/`status`: it only becomes a real idea if a human promotes it.\nexport interface SuggestionEntry {\n date: string;\n title: string;\n description: string;\n}\n\nexport interface RoadmapItem {\n name: string;\n description: string;\n candidates: string[];\n linked: string[];\n}\n\nexport interface RoadmapHorizon {\n title: string;\n items: RoadmapItem[];\n}\n\nexport interface Roadmap {\n goal: string;\n horizons: RoadmapHorizon[];\n standingConcerns: RoadmapItem[];\n}\n\nexport interface RoadmapLink {\n id: string;\n status: PlanStatus;\n taskRuns: number;\n pr?: PrInfo;\n released: boolean;\n}\n\nexport interface RoadmapRollup {\n total: number;\n done: number;\n}\n\nexport interface ResolvedRoadmapItem extends RoadmapItem {\n links: RoadmapLink[];\n rollup: RoadmapRollup;\n}\n\nexport interface ResolvedRoadmapHorizon {\n title: string;\n items: ResolvedRoadmapItem[];\n rollup: RoadmapRollup;\n}\n\nexport interface ResolvedRoadmap {\n goal: string;\n horizons: ResolvedRoadmapHorizon[];\n events: RoadmapEvent[];\n}\n\nexport type RoadmapEventKind = 'created' | 'task-run';\n\nexport interface RoadmapEvent {\n date: string;\n kind: RoadmapEventKind;\n entityId: string;\n horizonTitle: string;\n itemName: string;\n label: string;\n}\n\nexport interface EnvEntry {\n key: string;\n value: string;\n /** Set on GET responses when the value is withheld — secrets never reach the client. */\n isSet?: boolean;\n}\n\nexport interface AgentConfig {\n agent: AgentId;\n model?: string;\n effort?: string;\n}\n\n/** Model/effort passed to an adapter's buildArgs — the AgentConfig minus the agent id. */\nexport interface AgentRunOptions {\n model?: string;\n effort?: string;\n}\n\n/** Maps option names to a fixed value list (renders a Select) or null (free-text or hidden). */\nexport type AgentOptionsDescriptor = Record<string, string[] | null | undefined>;\n\nexport const AGENT_OPTIONS: Record<AgentId, AgentOptionsDescriptor> = {\n 'claude-code': {\n model: ['opus', 'sonnet', 'fable', 'haiku'],\n effort: ['low', 'medium', 'high', 'xhigh', 'max'],\n },\n opencode: {\n model: null,\n },\n};\n\nexport function coerceAgentConfig(v: unknown): AgentConfig {\n const toAgent = (a: unknown): AgentId =>\n AGENT_IDS.includes(a as AgentId) ? (a as AgentId) : 'claude-code';\n if (typeof v === 'string') return { agent: toAgent(v) };\n // A missing key must not throw — that would 500 the /api/config read this protects.\n const obj = (v ?? {}) as Record<string, unknown>;\n return {\n agent: toAgent(obj.agent),\n ...(typeof obj.model === 'string' && { model: obj.model }),\n ...(typeof obj.effort === 'string' && { effort: obj.effort }),\n };\n}\n\nexport interface DefaultAgentsMap {\n phase: AgentConfig;\n planDraft: AgentConfig;\n ideaExtend: AgentConfig;\n commitSuggest: AgentConfig;\n}\n\nexport const DEFAULT_AGENTS: DefaultAgentsMap = {\n phase: { agent: 'opencode' },\n planDraft: { agent: 'claude-code' },\n ideaExtend: { agent: 'claude-code' },\n commitSuggest: { agent: 'claude-code' },\n};\n\nexport interface PaperCampConfig {\n version: string;\n projectName: string;\n initializedAt: string;\n /** The unified-entity `idea` counter; the per-kind plan counters are legacy, present only in pre-migration configs. */\n nextId?: Partial<Record<PlanKind, number>> & { idea?: number };\n port?: number;\n defaultAgents?: DefaultAgentsMap;\n /** Derived from `ROADMAP.md` on every read (IDEA-95), never written to disk; an idea's\n * `subject` not present here renders as \"No subject\". */\n subjects?: string[];\n /** Opts out of the first-run redirect to Settings > Setup while capabilities are incomplete. */\n setupDismissed?: boolean;\n}\n\nexport type CheckStatus = 'stale' | 'running' | 'pass' | 'fail';\n\nexport interface CheckResult {\n status: CheckStatus;\n lastRun: string | null;\n output: string;\n}\n\nexport type CheckName = 'lint' | 'format' | 'test' | 'consistency';\n\nexport type CapabilityStatus = 'ok' | 'warn' | 'missing';\n\nexport interface CapabilityResult {\n id: string;\n status: CapabilityStatus;\n detail: string;\n}\n\nexport interface AgentAuthStatus {\n loggedIn: boolean | null;\n authMethod: string | null;\n apiProvider: string | null;\n}\n\nexport type LoginRelayPhase =\n | 'starting'\n | 'awaiting-authorization'\n | 'success'\n | 'error'\n | 'cancelled';\n\nexport interface LoginRelayState {\n phase: LoginRelayPhase;\n authorizeUrl: string | null;\n error?: string;\n}\n\nexport type ServiceId = 'git' | 'gh' | `agent:${AgentId}`;\n\n/** What a Connections row offers once its service isn't `ok` — copy a command, follow a link, or read plain instructions. */\nexport type ConnectAction =\n /** `runnable` marks a command with no placeholders and no interactive prompts — safe for the server to execute directly instead of just displaying it. */\n | { kind: 'command'; command: string; runnable?: boolean }\n | { kind: 'link'; url: string; label: string }\n | { kind: 'text'; message: string };\n\nexport interface ConnectionResult {\n id: ServiceId;\n label: string;\n unlocks: string;\n status: CapabilityStatus;\n detail: string;\n authenticated: boolean | null;\n connect: ConnectAction | null;\n}\n\nexport interface MergePolicy {\n allowSquashMerge: boolean;\n allowMergeCommit: boolean;\n allowRebaseMerge: boolean;\n squashMergeCommitTitle: string;\n squashMergeCommitMessage: string;\n}\n\nexport type MergePolicyResult =\n | { status: 'ok'; repo: string; policy: MergePolicy }\n | { status: 'unavailable'; reason: string };\n\nexport interface GitStatusEntry {\n path: string;\n status: string;\n staged: boolean;\n renameSource?: string;\n}\n\nexport interface GitStatusResponse {\n branch: string;\n entries: GitStatusEntry[];\n ahead: number;\n behind: number;\n diverged: boolean;\n branchHygiene: BranchHygieneStatus;\n}\n\nexport interface FileDiffEntry {\n path: string;\n renameSource?: string;\n staged: boolean;\n binary: boolean;\n additions: number;\n deletions: number;\n // 'diff' is a unified patch (tracked files); 'raw' is untracked file content, not a\n // patch; 'too-large' means `patch` is empty and the file was skipped.\n contentKind: 'diff' | 'raw' | 'too-large';\n patch: string;\n}\n\nexport type BranchHygieneStatus =\n | 'clean-on-main'\n | 'stale-merged'\n | 'stale-no-upstream'\n | 'dirty'\n | 'fine';\n\nexport interface GitLiveState {\n branch: string;\n ahead: number;\n behind: number;\n dirtyCount: number;\n}\n\nexport interface GitSyncFailure {\n ok: false;\n stage: 'reconcile' | 'stash-pop' | 'conflicted';\n message: string;\n stashPending: boolean;\n // Only set when stage is 'conflicted': the files a rebase left with unresolved\n // markers, for a one-click \"ask the agent to resolve\" rather than a bare error.\n conflictedFiles?: string[];\n // Only set when stage is 'conflicted': the ref the rebase targeted, and each\n // conflicted file's last-seen content (with markers) before the rebase was\n // aborted for safety — the resolve-conflict agent's raw material.\n conflictRef?: string;\n conflictedContent?: { path: string; content: string }[];\n // Prompt for the agent recovery job (see git-sync-recovery.ts) — the deterministic\n // path's failure, the working-tree state, and the goal, packaged for a future\n // launch rather than thrown at the user.\n recoveryPrompt: string;\n // Only set when stage is 'conflicted': a prompt scoped to landing this one rebase\n // (see resolve-conflict-prompt.ts) — launched only on explicit \"ask the agent to\n // resolve\" confirmation from the sync-failed toast, never automatically.\n conflictPrompt?: string;\n}\n\nexport type GitSyncResult = { ok: true } | GitSyncFailure;\n\nexport type AgentTaskStatus = 'starting' | 'running' | 'stopping' | 'done' | 'error';\n\nexport type TaskKind =\n | 'phase'\n | 'audit'\n | 'batch-reconcile'\n | 'run-all'\n | 'draft'\n | 'extend'\n | 'suggest'\n | 'commit-suggest'\n | 'overlap-check'\n | 'prioritise'\n | 'sync'\n | 'reconcile'\n | 'fix-review'\n | 'resolve-conflict'\n | 'feedback';\n\n// Persisted to papercamp/tasks.log (JSON Lines) — survives a dev-server restart,\n// unlike the in-memory task registry.\nexport interface TaskLogEntry {\n id: string;\n taskKind: TaskKind;\n planId?: string;\n planTitle: string;\n agentId: AgentId;\n startedAt: string;\n endedAt: string;\n outcome: 'done' | 'error';\n}\n\nexport interface TrailHop<T> {\n reached: boolean;\n data?: T;\n}\n\nexport interface ProvenanceTrail {\n id: string;\n idea: TrailHop<{ title: string; status?: EntityStatus; type?: EntityType }>;\n phases: TrailHop<PhaseItem[]>;\n taskRuns: TrailHop<TaskLogEntry[]>;\n commits: TrailHop<string[]>;\n pr: TrailHop<PrInfo>;\n releaseLine: TrailHop<string>;\n}\n\nexport interface AgentTaskState {\n id: string;\n status: AgentTaskStatus;\n taskKind: TaskKind;\n planTitle: string;\n planId?: string;\n phaseIndex?: number;\n fixAttempt?: number;\n fixAttemptCap?: number;\n ideaId?: string;\n agentId: AgentId;\n lines: string[];\n // fix-review only: prefills the commit form once the agent has reported.\n suggestedCommit?: { title: string; message: string };\n errorKind?: 'auth';\n}\n\nexport interface OverlapVerdict {\n verdict: 'existing' | 'extend' | 'new';\n targetId: string | null;\n reasoning: string;\n}\n\n/** `why` carries one line per entry in `order`, same index — the reason for that id's placement. */\nexport interface PrioritiseVerdict {\n order: string[];\n why: string;\n}\n\nexport interface ReconcileQueueItem {\n planId: string;\n title: string;\n before: { body: string; phases: PhaseItem[] };\n}\n"],"names":["PLAN_STATUSES","PLAN_KINDS","AGENT_IDS","AGENT_LABELS","AGENT_OPTIONS","coerceAgentConfig","v","toAgent","a","obj","DEFAULT_AGENTS"],"mappings":"AAEO,MAAMA,IAA8B;AAAA,EACzC;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AACF,GASaC,IAAyB,CAAC,QAAQ,OAAO,SAAS,QAAQ,UAAU,GAEpEC,IAAY,CAAC,eAAe,UAAU,GAItCC,IAAwC;AAAA,EACnD,eAAe;AAAA,EACf,UAAU;AACZ,GA6VaC,IAAyD;AAAA,EACpE,eAAe;AAAA,IACb,OAAO,CAAC,QAAQ,UAAU,SAAS,OAAO;AAAA,IAC1C,QAAQ,CAAC,OAAO,UAAU,QAAQ,SAAS,KAAK;AAAA,EAAA;AAAA,EAElD,UAAU;AAAA,IACR,OAAO;AAAA,EAAA;AAEX;AAEO,SAASC,EAAkBC,GAAyB;AACzD,QAAMC,IAAU,CAACC,MACfN,EAAU,SAASM,CAAY,IAAKA,IAAgB;AACtD,MAAI,OAAOF,KAAM,SAAU,QAAO,EAAE,OAAOC,EAAQD,CAAC,EAAA;AAEpD,QAAMG,IAAOH,KAAK,CAAA;AAClB,SAAO;AAAA,IACL,OAAOC,EAAQE,EAAI,KAAK;AAAA,IACxB,GAAI,OAAOA,EAAI,SAAU,YAAY,EAAE,OAAOA,EAAI,MAAA;AAAA,IAClD,GAAI,OAAOA,EAAI,UAAW,YAAY,EAAE,QAAQA,EAAI,OAAA;AAAA,EAAO;AAE/D;AASO,MAAMC,IAAmC;AAAA,EAC9C,OAAO,EAAE,OAAO,WAAA;AAAA,EAChB,WAAW,EAAE,OAAO,cAAA;AAAA,EACpB,YAAY,EAAE,OAAO,cAAA;AAAA,EACrB,eAAe,EAAE,OAAO,cAAA;AAC1B;"}
package/package.json CHANGED
@@ -1,13 +1,16 @@
1
1
  {
2
2
  "name": "@dendelion/paper-camp",
3
- "version": "0.12.0",
3
+ "version": "0.13.1",
4
4
  "description": "Local-first, AI-native project management with retro aesthetics",
5
5
  "type": "module",
6
6
  "packageManager": "pnpm@10.12.1",
7
7
  "pnpm": {
8
8
  "overrides": {
9
9
  "fast-uri": ">=3.1.2"
10
- }
10
+ },
11
+ "onlyBuiltDependencies": [
12
+ "node-pty"
13
+ ]
11
14
  },
12
15
  "bin": {
13
16
  "paper-camp": "./dist/cli/index.js"
@@ -33,7 +36,7 @@
33
36
  "check-types": "tsc --noEmit",
34
37
  "lint": "biome check .",
35
38
  "lint:write": "biome check --write .",
36
- "test": "vitest run",
39
+ "test": "vitest run --coverage",
37
40
  "test:watch": "vitest",
38
41
  "knip": "knip",
39
42
  "depcruise": "depcruise src --config .dependency-cruiser.cjs",
@@ -60,11 +63,12 @@
60
63
  "react-dom": "^18.0.0"
61
64
  },
62
65
  "dependencies": {
63
- "@dendelion/paper-ui": "0.7.5",
66
+ "@dendelion/paper-ui": "^0.12.0",
64
67
  "@modelcontextprotocol/sdk": "^1.29.0",
65
68
  "@tanstack/react-router": "^1.58.3",
66
69
  "commander": "^12.0.0",
67
70
  "framer-motion": "^12.40.0",
71
+ "node-pty": "^1.1.0",
68
72
  "react-markdown": "^10.1.0",
69
73
  "yaml": "^2.9.0",
70
74
  "zod": "^4.4.3",
@@ -78,6 +82,7 @@
78
82
  "@types/react": "^18.3.11",
79
83
  "@types/react-dom": "^18.3.0",
80
84
  "@vitejs/plugin-react-swc": "^3.7.1",
85
+ "@vitest/coverage-v8": "2.1.9",
81
86
  "autoprefixer": "^10.4.20",
82
87
  "dependency-cruiser": "^18.0.0",
83
88
  "husky": "^9.1.7",
@@ -1,4 +0,0 @@
1
- import{u as R,x as O,r as c,g as B,j as e,J as _,s as i,Y as W,b,c as z,Z as S,H as V,I as q,a as G,F as H,K as I,P,f as N,M as L,p as $,O as w,S as v,L as K,X as E,N as U,q as J,Q as X,R as Y}from"./main-Bno8vU-0.js";import{T as ve}from"./main-Bno8vU-0.js";const k="__no-subject__",Z=({horizonTitle:t,item:a,candidateName:s,onClose:o,onPromoted:l})=>{const p=R(n=>n.promoteRoadmapItem),d=R(n=>n.launchIdeaExtend),{subjects:y,available:m}=O(),[f,h]=c.useState(k),[g,j]=c.useState(!1),[x,C]=c.useState(null),{toast:A}=B();c.useEffect(()=>{a&&(h(s?a.name:k),j(!1),C(null))},[a,s]);const D=async()=>{if(!(!a||!t)){j(!0),C(null);try{const n=await p(t,a,f===k?void 0:f,s??void 0),r=R.getState().ideaEntries.find(u=>u.id===n);if(r)try{await d(n,V(r,t))}catch(u){A({title:"Idea created, but the refine agent failed to launch",description:q(u.message),variant:"error"})}l(),o()}catch(n){C(n.message)}finally{j(!1)}}};return e.jsx(_,{open:a!==null,onClose:o,title:s??(a==null?void 0:a.name)??"",size:"small",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[4]},children:[!s&&e.jsx("p",{style:{margin:0,opacity:.8},children:a==null?void 0:a.description}),e.jsx("div",{children:e.jsx(W,{size:"small",value:f,onChange:h,disabled:g||!m,options:[{value:k,label:"No subject"},...!m&&f!==k?[{value:f,label:f}]:[],...y.map(n=>({value:n,label:n}))]})}),x&&e.jsx("p",{style:{margin:0,color:z.accentRoseDark,fontSize:b.sm},children:x}),e.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:i[2]},children:[e.jsx(S,{type:"button",variant:"ghost",onClick:o,disabled:g,children:"Cancel"}),e.jsx(S,{type:"button",variant:"primary",onClick:D,disabled:g,children:g?"Promoting…":"Promote to idea"})]})]})})},Q=t=>({shipped:t.filter(a=>a.status==="done").length,queued:t.filter(a=>a.status!=="done"&&a.status!=="dropped").length}),T={fontFamily:N.handwritten,fontSize:b.md,fontWeight:600,opacity:.7,lineHeight:1,padding:`${i[2]} ${i[1]} 0`},M={fontFamily:N.body,fontSize:b["2xs"],fontWeight:400,opacity:.5,padding:`0 ${i[1]}`},ee=({size:t=14})=>e.jsx("svg",{width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:e.jsx("polyline",{points:"9 18 15 12 9 6"})}),te=({name:t,onPromote:a})=>e.jsx($,{size:"small",texture:"kraft",className:"plan-row-card",children:e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:i[3]},children:[e.jsx("span",{style:{flex:1},children:t}),e.jsx(S,{type:"button",variant:"ghost",size:"small",onClick:a,children:"Promote to idea"})]})}),ae=({onAdd:t})=>{const[a,s]=c.useState(""),[o,l]=c.useState(!1),p=async()=>{if(a.trim()){l(!0);try{await t(a.trim()),s("")}finally{l(!1)}}};return e.jsxs("div",{style:{display:"flex",gap:i[2]},children:[e.jsx(E,{size:"small",value:a,onChange:d=>s(d.target.value),onKeyDown:d=>{d.key==="Enter"&&p()},placeholder:"Add candidate…",disabled:o,style:{flex:1}}),e.jsx(S,{type:"button",variant:"ghost",size:"small",onClick:p,disabled:o||!a.trim(),children:"Add"})]})},se=({onAdd:t})=>{const[a,s]=c.useState(!1),[o,l]=c.useState(""),[p,d]=c.useState(""),[y,m]=c.useState(!1),f=async()=>{if(o.trim()){m(!0);try{await t(o.trim(),p.trim()),l(""),d(""),s(!1)}finally{m(!1)}}};return a?e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[2]},children:[e.jsx(E,{size:"small",value:o,onChange:h=>l(h.target.value),placeholder:"Item name…",disabled:y,autoFocus:!0}),e.jsx(E,{size:"small",value:p,onChange:h=>d(h.target.value),onKeyDown:h=>{h.key==="Enter"&&f()},placeholder:"Description…",disabled:y}),e.jsxs("div",{style:{display:"flex",justifyContent:"flex-end",gap:i[2]},children:[e.jsx(S,{type:"button",variant:"ghost",size:"small",onClick:()=>s(!1),disabled:y,children:"Cancel"}),e.jsx(S,{type:"button",variant:"secondary",size:"small",onClick:f,disabled:y||!o.trim(),children:"Add"})]})]}):e.jsx(S,{type:"button",variant:"ghost",size:"small",onClick:()=>s(!0),children:"+ Add item"})},le=(t,a)=>`${t} ${a}${t===1?"":"s"}`,ne=({link:t})=>e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:i[1]},children:[e.jsx(J,{content:`${le(t.taskRuns,"task run")}${t.released?" · released":""}`,children:e.jsx(w,{size:"small",fillColor:v[t.status].fill,textColor:v[t.status].text,children:t.id})}),t.pr&&e.jsx(X,{pr:t.pr})]}),ie=({plan:t,onOpen:a})=>e.jsx($,{size:"small",texture:"kraft",className:"plan-row-card",children:e.jsxs("button",{type:"button",onClick:a,style:{display:"flex",alignItems:"center",gap:i[3],width:"100%",background:"none",border:"none",padding:0,cursor:"pointer",font:"inherit",color:"inherit",textAlign:"left"},children:[e.jsx("span",{style:{flex:1,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:t.title}),e.jsx(w,{size:"small",fillColor:v[t.status].fill,textColor:v[t.status].text,children:Y[t.status]})]})}),oe=({item:t,graduated:a,highlighted:s,onPromote:o,onPromoteCandidate:l,onAddCandidate:p,onViewGraduated:d,onOpenGraduated:y})=>{const[m,f]=c.useState(s),h=t.candidates.length>0,{shipped:g,queued:j}=Q(a);return e.jsxs("div",{className:s?"roadmap-item-highlighted":void 0,style:{display:"flex",flexDirection:"column",gap:i[1]},children:[e.jsx($,{size:"small",texture:"canvas",className:"plan-row-card",children:e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[1]},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:i[2]},children:[e.jsx("button",{type:"button","aria-expanded":m,"aria-label":m?"Collapse item":"Expand item",onClick:()=>f(x=>!x),style:{display:"inline-flex",alignItems:"center",background:"none",border:"none",cursor:"pointer",opacity:.5,padding:0,transform:m?"rotate(90deg)":void 0},children:e.jsx(ee,{})}),e.jsx("span",{style:{fontWeight:600,flex:1},children:t.name}),e.jsx(S,{type:"button",variant:"ghost",size:"small",onClick:o,children:"Promote to idea"})]}),e.jsx("span",{className:m?void 0:"roadmap-item-desc",style:{fontSize:b.sm,opacity:.7},children:t.description}),e.jsxs("div",{style:{display:"flex",alignItems:"center",gap:i[1]},children:[(j>0||g>0)&&e.jsxs("button",{type:"button",onClick:d,style:{display:"flex",alignItems:"center",gap:i[1],background:"none",border:"none",padding:0,cursor:"pointer"},children:[j>0&&e.jsxs(w,{size:"small",fillColor:v.planned.fill,textColor:v.planned.text,children:[j," in queue"]}),g>0&&e.jsxs(w,{size:"small",fillColor:v.done.fill,textColor:v.done.text,children:[g," shipped"]})]}),h&&e.jsxs(w,{size:"small",fillColor:"rgba(0, 0, 0, 0.06)",textColor:"rgba(0, 0, 0, 0.55)",children:[t.candidates.length," candidate",t.candidates.length===1?"":"s"]}),t.rollup.total>0&&e.jsxs(w,{size:"small",fillColor:v.planned.fill,textColor:v.planned.text,children:[t.rollup.done,"/",t.rollup.total," done"]})]}),t.links.length>0&&e.jsx("div",{style:{display:"flex",alignItems:"center",gap:i[1],flexWrap:"wrap"},children:t.links.map(x=>e.jsx(ne,{link:x},x.id))})]})}),m&&e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[1],paddingLeft:i[6]},children:[t.candidates.map(x=>e.jsx(te,{name:x,onPromote:()=>l(x)},x)),a.map(x=>e.jsx(ie,{plan:x,onOpen:()=>y(x.title)},x.title)),e.jsx(ae,{onAdd:p})]})]})},de=({goal:t})=>{const[a,s]=c.useState(!1),[o,...l]=t.split(/\n{2,}/),p=l.length>0;return e.jsxs("div",{style:{marginBottom:i[6],paddingBottom:i[4],borderBottom:"1px solid rgba(0, 0, 0, 0.08)"},children:[e.jsx("span",{style:{fontFamily:N.handwritten,fontSize:b.xs,fontWeight:600,opacity:.55},children:"The goal"}),e.jsxs("div",{style:{fontFamily:N.serif,fontSize:b.lg,lineHeight:1.4,marginTop:i[2]},children:[e.jsx("div",{className:a?void 0:"roadmap-goal-line-clamp",children:e.jsx(L,{children:o})}),a&&p&&e.jsx(L,{children:l.join(`
2
-
3
- `)})]}),p&&e.jsx("button",{type:"button",onClick:()=>s(d=>!d),style:{background:"none",border:"none",padding:0,marginTop:i[2],cursor:"pointer",fontSize:b["2xs"],opacity:.65,textDecoration:"underline"},children:a?"Show less":"Show more"})]})},re=[{id:"tree",label:"Tree"},{id:"map",label:"Map"},{id:"timeline",label:"Timeline"}],ce=({mode:t,onChange:a})=>e.jsx("nav",{"aria-label":"Roadmap view",style:{display:"flex",gap:i[1],marginBottom:i[4]},children:re.map(s=>e.jsx(S,{type:"button",variant:"ghost",size:"small",isActive:t===s.id,"aria-pressed":t===s.id,onClick:()=>a(s.id),children:s.label},s.id))}),F=({items:t,graduatedByItem:a})=>{const s=t.filter(l=>a(l).length>0).length,o=t.length-s;return e.jsxs("div",{style:M,children:[s," graduated · ",o," charted"]})},pe={created:z.accentSlate,"task-run":z.accentAmber},xe=({events:t,rangeStart:a,rangeEnd:s})=>{const o=s-a||1;return e.jsx("div",{className:"roadmap-timeline-track",children:t.map((l,p)=>e.jsx("button",{type:"button",className:"roadmap-timeline-dot",style:{left:`${(Date.parse(l.date)-a)/o*100}%`,background:pe[l.kind]},title:`${l.itemName} — ${l.label} (${l.date})`,"aria-label":`${l.itemName} — ${l.label} (${l.date})`},`${l.entityId}-${l.kind}-${p}`))})},me=({item:t})=>{const a=t.rollup.total>0?Math.round(t.rollup.done/t.rollup.total*100):0;return e.jsxs("div",{className:"roadmap-map-item",children:[e.jsx("div",{style:{fontWeight:600,fontSize:b.sm},children:t.name}),e.jsx("div",{className:"roadmap-map-progress-track",children:e.jsx("div",{className:"roadmap-map-progress-fill",style:{width:`${a}%`,background:t.rollup.total>0?z.accentGreen:"transparent"}})}),e.jsx("div",{style:{fontSize:b["2xs"],opacity:.5},children:t.rollup.total>0?`${t.rollup.done}/${t.rollup.total} done`:"not started"})]})},ue=({roadmap:t,graduatedByItem:a})=>e.jsx("div",{className:"roadmap-lanes",children:t.horizons.map(s=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[1]},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:i[2]},children:[e.jsx("div",{style:T,children:s.title}),e.jsx(F,{items:s.items,graduatedByItem:a})]}),e.jsx("div",{className:"roadmap-lane-items",children:s.items.map(o=>e.jsx("div",{className:"roadmap-lane-item",children:e.jsx(me,{item:o})},o.name))})]},s.title))}),he=({roadmap:t})=>{if(t.events.length===0)return e.jsx("p",{style:{opacity:.5},children:"No dated events yet."});const a=t.events.map(l=>Date.parse(l.date)),s=Math.min(...a),o=Math.max(...a);return e.jsxs("div",{className:"roadmap-lanes",children:[t.horizons.map(l=>{const p=t.events.filter(d=>d.horizonTitle===l.title);return e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[1]},children:[e.jsx("div",{style:T,children:l.title}),p.length===0?e.jsx("div",{style:{...M,opacity:.4},children:"No events yet"}):e.jsx(xe,{events:p,rangeStart:s,rangeEnd:o})]},l.title)}),e.jsxs("div",{style:{display:"flex",justifyContent:"space-between",fontSize:b["2xs"],opacity:.5},children:[e.jsx("span",{children:new Date(s).toLocaleDateString()}),e.jsx("span",{children:new Date(o).toLocaleDateString()})]})]})},ye=()=>{const[t,a]=c.useState(null),[s,o]=c.useState(!0),[l,p]=c.useState(!1),[d,y]=c.useState(null),[m,f]=c.useState("tree"),h=R(n=>n.plans),g=G(),{item:j}=H({from:"/roadmap"}),x=c.useRef(null);if(c.useEffect(()=>{I().then(a).catch(()=>p(!0)).finally(()=>o(!1))},[]),c.useEffect(()=>{var r;if(!j||s)return;const n=(r=x.current)==null?void 0:r.querySelector(".roadmap-item-highlighted");n==null||n.scrollIntoView({behavior:"smooth",block:"center"})},[j,s]),s)return e.jsxs("div",{children:[e.jsx(P,{children:"Roadmap"}),e.jsx("p",{style:{opacity:.5},children:"Loading…"})]});if(l)return e.jsxs("div",{children:[e.jsx(P,{children:"Roadmap"}),e.jsx("p",{style:{opacity:.5},children:"Couldn't load the roadmap — the server may need a restart to pick up new routes."})]});if(!t||t.horizons.length===0)return e.jsxs("div",{children:[e.jsx(P,{children:"Roadmap"}),e.jsx("p",{style:{opacity:.5},children:"No `ROADMAP.md` found at the project root."})]});const C=n=>(h==null?void 0:h.entries.filter(r=>r.subject===n.name))??[],A=async(n,r,u)=>{await U(n,r,u),a(await I())},D=async(n,r,u)=>{await K(n,r,u),a(await I())};return e.jsxs("div",{ref:x,children:[e.jsx(de,{goal:t.goal}),e.jsx(ce,{mode:m,onChange:f}),m==="tree"&&e.jsx("div",{className:"roadmap-lanes",children:t.horizons.map(n=>e.jsxs("div",{style:{display:"flex",flexDirection:"column",gap:i[1]},children:[e.jsxs("div",{style:{display:"flex",alignItems:"baseline",gap:i[2]},children:[e.jsx("div",{style:T,children:n.title}),e.jsx(F,{items:n.items,graduatedByItem:C})]}),e.jsxs("div",{className:"roadmap-lane-items",children:[n.items.map(r=>e.jsx("div",{className:"roadmap-lane-item",children:e.jsx(oe,{item:r,graduated:C(r),highlighted:r.name===j,onPromote:()=>y({horizonTitle:n.title,item:r}),onPromoteCandidate:u=>y({horizonTitle:n.title,item:r,candidateName:u}),onAddCandidate:u=>D(n.title,r.name,u),onViewGraduated:()=>g({to:"/",search:{subject:r.name}}),onOpenGraduated:u=>g({to:"/plans/$planId",params:{planId:encodeURIComponent(u)}})})},r.name)),e.jsx("div",{className:"roadmap-lane-item",children:e.jsx(se,{onAdd:(r,u)=>A(n.title,r,u)})})]})]},n.title))}),m==="map"&&e.jsx(ue,{roadmap:t,graduatedByItem:C}),m==="timeline"&&e.jsx(he,{roadmap:t}),e.jsx(Z,{horizonTitle:(d==null?void 0:d.horizonTitle)??null,item:(d==null?void 0:d.item)??null,candidateName:d==null?void 0:d.candidateName,onClose:()=>y(null),onPromoted:()=>I().then(a)})]})};export{ye as RoadmapPage,ve as useRoadmapItemNames};
4
- //# sourceMappingURL=index-B6eOrr41.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-B6eOrr41.js","sources":["../../../src/app/features/roadmap/promote-roadmap-item-modal.tsx","../../../src/app/features/roadmap/roadmap-page.tsx"],"sourcesContent":["import { buildRoadmapPromotePrompt } from '@/app/features/plans/prompts';\nimport { useSubjectVocabulary } from '@/app/hooks/use-subject-vocabulary';\nimport { useAppStore } from '@/app/stores/app-store';\nimport { color, fontSize, space } from '@/app/styles/tokens';\nimport { oneLineErrorSummary } from '@/app/utils/error-summary';\nimport type { RoadmapItem } from '@/types/index';\nimport { Button, Modal, Select, useToast } from '@dendelion/paper-ui';\nimport { useEffect, useState } from 'react';\n\nconst NO_SUBJECT = '__no-subject__';\n\ninterface PromoteRoadmapItemModalProps {\n horizonTitle: string | null;\n item: RoadmapItem | null;\n candidateName?: string | null;\n onClose: () => void;\n onPromoted: () => void;\n}\n\nexport const PromoteRoadmapItemModal = ({\n horizonTitle,\n item,\n candidateName,\n onClose,\n onPromoted,\n}: PromoteRoadmapItemModalProps) => {\n const promoteRoadmapItem = useAppStore((s) => s.promoteRoadmapItem);\n const launchIdeaExtend = useAppStore((s) => s.launchIdeaExtend);\n const { subjects, available: subjectsAvailable } = useSubjectVocabulary();\n const [subject, setSubject] = useState(NO_SUBJECT);\n const [loading, setLoading] = useState(false);\n const [error, setError] = useState<string | null>(null);\n const { toast } = useToast();\n\n useEffect(() => {\n if (item) {\n // A candidate defaults to its parent item's name — the \"big bet becomes a\n // Subject\" rule — but the picker still lets the user override it.\n setSubject(candidateName ? item.name : NO_SUBJECT);\n setLoading(false);\n setError(null);\n }\n }, [item, candidateName]);\n\n const handlePromote = async () => {\n if (!item || !horizonTitle) return;\n setLoading(true);\n setError(null);\n try {\n const id = await promoteRoadmapItem(\n horizonTitle,\n item,\n subject === NO_SUBJECT ? undefined : subject,\n candidateName ?? undefined,\n );\n const idea = useAppStore.getState().ideaEntries.find((e) => e.id === id);\n if (idea) {\n try {\n await launchIdeaExtend(id, buildRoadmapPromotePrompt(idea, horizonTitle));\n } catch (err) {\n // The idea was created either way — a failed refine launch just means\n // no background research ran, not that the promotion itself failed.\n toast({\n title: 'Idea created, but the refine agent failed to launch',\n description: oneLineErrorSummary((err as Error).message),\n variant: 'error',\n });\n }\n }\n onPromoted();\n onClose();\n } catch (err) {\n setError((err as Error).message);\n } finally {\n setLoading(false);\n }\n };\n\n return (\n <Modal\n open={item !== null}\n onClose={onClose}\n title={candidateName ?? item?.name ?? ''}\n size=\"small\"\n >\n <div style={{ display: 'flex', flexDirection: 'column', gap: space[4] }}>\n {!candidateName && <p style={{ margin: 0, opacity: 0.8 }}>{item?.description}</p>}\n <div>\n <Select\n size=\"small\"\n value={subject}\n onChange={setSubject}\n disabled={loading || !subjectsAvailable}\n options={[\n { value: NO_SUBJECT, label: 'No subject' },\n ...(!subjectsAvailable && subject !== NO_SUBJECT\n ? [{ value: subject, label: subject }]\n : []),\n ...subjects.map((s) => ({ value: s, label: s })),\n ]}\n />\n </div>\n {error && (\n <p style={{ margin: 0, color: color.accentRoseDark, fontSize: fontSize.sm }}>{error}</p>\n )}\n <div style={{ display: 'flex', justifyContent: 'flex-end', gap: space[2] }}>\n <Button type=\"button\" variant=\"ghost\" onClick={onClose} disabled={loading}>\n Cancel\n </Button>\n <Button type=\"button\" variant=\"primary\" onClick={handlePromote} disabled={loading}>\n {loading ? 'Promoting…' : 'Promote to idea'}\n </Button>\n </div>\n </div>\n </Modal>\n );\n};\n","import { Markdown } from '@/app/components/markdown';\nimport { PageTitle } from '@/app/components/page-title';\nimport { PrBadge } from '@/app/features/plans/components/pr-badge';\nimport { STATUS_LABEL, STATUS_STAMP } from '@/app/features/plans/constants';\nimport { addRoadmapCandidate, addRoadmapItem, fetchRoadmap } from '@/app/services/content/docs-api';\nimport { useAppStore } from '@/app/stores/app-store';\nimport { color, fontFamily, fontSize, space } from '@/app/styles/tokens';\nimport type {\n PlanEntry,\n ResolvedRoadmap,\n ResolvedRoadmapItem,\n RoadmapEvent,\n RoadmapEventKind,\n RoadmapLink,\n} from '@/types/index';\nimport { Button, Card, Input, Stamp, Tooltip } from '@dendelion/paper-ui';\nimport { useNavigate, useSearch } from '@tanstack/react-router';\nimport { useEffect, useRef, useState } from 'react';\nimport { PromoteRoadmapItemModal } from './promote-roadmap-item-modal';\n\nconst graduationCounts = (graduated: PlanEntry[]) => ({\n shipped: graduated.filter((p) => p.status === 'done').length,\n queued: graduated.filter((p) => p.status !== 'done' && p.status !== 'dropped').length,\n});\n\nconst horizonHeaderStyle: React.CSSProperties = {\n fontFamily: fontFamily.handwritten,\n fontSize: fontSize.md,\n fontWeight: 600,\n opacity: 0.7,\n lineHeight: 1,\n padding: `${space[2]} ${space[1]} 0`,\n};\n\nconst horizonPulseStyle: React.CSSProperties = {\n fontFamily: fontFamily.body,\n fontSize: fontSize['2xs'],\n fontWeight: 400,\n opacity: 0.5,\n padding: `0 ${space[1]}`,\n};\n\nconst ChevronRightIcon = ({ size = 14 }: { size?: number }) => (\n <svg\n width={size}\n height={size}\n viewBox=\"0 0 24 24\"\n fill=\"none\"\n stroke=\"currentColor\"\n strokeWidth=\"2\"\n strokeLinecap=\"round\"\n strokeLinejoin=\"round\"\n aria-hidden=\"true\"\n >\n <polyline points=\"9 18 15 12 9 6\" />\n </svg>\n);\n\nconst CandidateRow = ({\n name,\n onPromote,\n}: {\n name: string;\n onPromote: () => void;\n}) => (\n <Card size=\"small\" texture=\"kraft\" className=\"plan-row-card\">\n <div style={{ display: 'flex', alignItems: 'center', gap: space[3] }}>\n <span style={{ flex: 1 }}>{name}</span>\n <Button type=\"button\" variant=\"ghost\" size=\"small\" onClick={onPromote}>\n Promote to idea\n </Button>\n </div>\n </Card>\n);\n\nconst AddCandidateForm = ({ onAdd }: { onAdd: (name: string) => Promise<void> }) => {\n const [name, setName] = useState('');\n const [saving, setSaving] = useState(false);\n\n const handleAdd = async () => {\n if (!name.trim()) return;\n setSaving(true);\n try {\n await onAdd(name.trim());\n setName('');\n } finally {\n setSaving(false);\n }\n };\n\n return (\n <div style={{ display: 'flex', gap: space[2] }}>\n <Input\n size=\"small\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') handleAdd();\n }}\n placeholder=\"Add candidate…\"\n disabled={saving}\n style={{ flex: 1 }}\n />\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"small\"\n onClick={handleAdd}\n disabled={saving || !name.trim()}\n >\n Add\n </Button>\n </div>\n );\n};\n\nconst AddItemForm = ({\n onAdd,\n}: {\n onAdd: (name: string, description: string) => Promise<void>;\n}) => {\n const [open, setOpen] = useState(false);\n const [name, setName] = useState('');\n const [description, setDescription] = useState('');\n const [saving, setSaving] = useState(false);\n\n const handleAdd = async () => {\n if (!name.trim()) return;\n setSaving(true);\n try {\n await onAdd(name.trim(), description.trim());\n setName('');\n setDescription('');\n setOpen(false);\n } finally {\n setSaving(false);\n }\n };\n\n if (!open) {\n return (\n <Button type=\"button\" variant=\"ghost\" size=\"small\" onClick={() => setOpen(true)}>\n + Add item\n </Button>\n );\n }\n\n return (\n <div style={{ display: 'flex', flexDirection: 'column', gap: space[2] }}>\n <Input\n size=\"small\"\n value={name}\n onChange={(e) => setName(e.target.value)}\n placeholder=\"Item name…\"\n disabled={saving}\n autoFocus\n />\n <Input\n size=\"small\"\n value={description}\n onChange={(e) => setDescription(e.target.value)}\n onKeyDown={(e) => {\n if (e.key === 'Enter') handleAdd();\n }}\n placeholder=\"Description…\"\n disabled={saving}\n />\n <div style={{ display: 'flex', justifyContent: 'flex-end', gap: space[2] }}>\n <Button\n type=\"button\"\n variant=\"ghost\"\n size=\"small\"\n onClick={() => setOpen(false)}\n disabled={saving}\n >\n Cancel\n </Button>\n <Button\n type=\"button\"\n variant=\"secondary\"\n size=\"small\"\n onClick={handleAdd}\n disabled={saving || !name.trim()}\n >\n Add\n </Button>\n </div>\n </div>\n );\n};\n\nconst plural = (count: number, noun: string) => `${count} ${noun}${count === 1 ? '' : 's'}`;\n\nconst RoadmapLinkTrail = ({ link }: { link: RoadmapLink }) => (\n <div style={{ display: 'flex', alignItems: 'center', gap: space[1] }}>\n <Tooltip content={`${plural(link.taskRuns, 'task run')}${link.released ? ' · released' : ''}`}>\n <Stamp\n size=\"small\"\n fillColor={STATUS_STAMP[link.status].fill}\n textColor={STATUS_STAMP[link.status].text}\n >\n {link.id}\n </Stamp>\n </Tooltip>\n {link.pr && <PrBadge pr={link.pr} />}\n </div>\n);\n\nconst GraduatedRow = ({ plan, onOpen }: { plan: PlanEntry; onOpen: () => void }) => (\n <Card size=\"small\" texture=\"kraft\" className=\"plan-row-card\">\n <button\n type=\"button\"\n onClick={onOpen}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: space[3],\n width: '100%',\n background: 'none',\n border: 'none',\n padding: 0,\n cursor: 'pointer',\n font: 'inherit',\n color: 'inherit',\n textAlign: 'left',\n }}\n >\n <span style={{ flex: 1, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap' }}>\n {plan.title}\n </span>\n <Stamp\n size=\"small\"\n fillColor={STATUS_STAMP[plan.status].fill}\n textColor={STATUS_STAMP[plan.status].text}\n >\n {STATUS_LABEL[plan.status]}\n </Stamp>\n </button>\n </Card>\n);\n\nconst RoadmapItemRow = ({\n item,\n graduated,\n highlighted,\n onPromote,\n onPromoteCandidate,\n onAddCandidate,\n onViewGraduated,\n onOpenGraduated,\n}: {\n item: ResolvedRoadmapItem;\n graduated: PlanEntry[];\n highlighted: boolean;\n onPromote: () => void;\n onPromoteCandidate: (candidateName: string) => void;\n onAddCandidate: (name: string) => Promise<void>;\n onViewGraduated: () => void;\n onOpenGraduated: (title: string) => void;\n}) => {\n const [expanded, setExpanded] = useState(highlighted);\n const hasCandidates = item.candidates.length > 0;\n const { shipped, queued } = graduationCounts(graduated);\n\n return (\n <div\n className={highlighted ? 'roadmap-item-highlighted' : undefined}\n style={{ display: 'flex', flexDirection: 'column', gap: space[1] }}\n >\n <Card size=\"small\" texture=\"canvas\" className=\"plan-row-card\">\n <div style={{ display: 'flex', flexDirection: 'column', gap: space[1] }}>\n <div style={{ display: 'flex', alignItems: 'center', gap: space[2] }}>\n {/* Raw <button>: icon-only toggle, paper-ui Button doesn't offer this compact chrome. */}\n <button\n type=\"button\"\n aria-expanded={expanded}\n aria-label={expanded ? 'Collapse item' : 'Expand item'}\n onClick={() => setExpanded((v) => !v)}\n style={{\n display: 'inline-flex',\n alignItems: 'center',\n background: 'none',\n border: 'none',\n cursor: 'pointer',\n opacity: 0.5,\n padding: 0,\n transform: expanded ? 'rotate(90deg)' : undefined,\n }}\n >\n <ChevronRightIcon />\n </button>\n <span style={{ fontWeight: 600, flex: 1 }}>{item.name}</span>\n <Button type=\"button\" variant=\"ghost\" size=\"small\" onClick={onPromote}>\n Promote to idea\n </Button>\n </div>\n <span\n className={expanded ? undefined : 'roadmap-item-desc'}\n style={{ fontSize: fontSize.sm, opacity: 0.7 }}\n >\n {item.description}\n </span>\n <div style={{ display: 'flex', alignItems: 'center', gap: space[1] }}>\n {(queued > 0 || shipped > 0) && (\n <button\n type=\"button\"\n onClick={onViewGraduated}\n style={{\n display: 'flex',\n alignItems: 'center',\n gap: space[1],\n background: 'none',\n border: 'none',\n padding: 0,\n cursor: 'pointer',\n }}\n >\n {queued > 0 && (\n <Stamp\n size=\"small\"\n fillColor={STATUS_STAMP.planned.fill}\n textColor={STATUS_STAMP.planned.text}\n >\n {queued} in queue\n </Stamp>\n )}\n {shipped > 0 && (\n <Stamp\n size=\"small\"\n fillColor={STATUS_STAMP.done.fill}\n textColor={STATUS_STAMP.done.text}\n >\n {shipped} shipped\n </Stamp>\n )}\n </button>\n )}\n {hasCandidates && (\n <Stamp size=\"small\" fillColor=\"rgba(0, 0, 0, 0.06)\" textColor=\"rgba(0, 0, 0, 0.55)\">\n {item.candidates.length} candidate{item.candidates.length === 1 ? '' : 's'}\n </Stamp>\n )}\n {item.rollup.total > 0 && (\n <Stamp\n size=\"small\"\n fillColor={STATUS_STAMP.planned.fill}\n textColor={STATUS_STAMP.planned.text}\n >\n {item.rollup.done}/{item.rollup.total} done\n </Stamp>\n )}\n </div>\n {item.links.length > 0 && (\n <div style={{ display: 'flex', alignItems: 'center', gap: space[1], flexWrap: 'wrap' }}>\n {item.links.map((link) => (\n <RoadmapLinkTrail key={link.id} link={link} />\n ))}\n </div>\n )}\n </div>\n </Card>\n {expanded && (\n <div\n style={{\n display: 'flex',\n flexDirection: 'column',\n gap: space[1],\n paddingLeft: space[6],\n }}\n >\n {item.candidates.map((candidateName) => (\n <CandidateRow\n key={candidateName}\n name={candidateName}\n onPromote={() => onPromoteCandidate(candidateName)}\n />\n ))}\n {graduated.map((plan) => (\n <GraduatedRow key={plan.title} plan={plan} onOpen={() => onOpenGraduated(plan.title)} />\n ))}\n <AddCandidateForm onAdd={onAddCandidate} />\n </div>\n )}\n </div>\n );\n};\n\nconst GoalBanner = ({ goal }: { goal: string }) => {\n const [expanded, setExpanded] = useState(false);\n const [firstParagraph, ...restParagraphs] = goal.split(/\\n{2,}/);\n const hasMore = restParagraphs.length > 0;\n\n return (\n <div\n style={{\n marginBottom: space[6],\n paddingBottom: space[4],\n borderBottom: '1px solid rgba(0, 0, 0, 0.08)',\n }}\n >\n <span\n style={{\n fontFamily: fontFamily.handwritten,\n fontSize: fontSize.xs,\n fontWeight: 600,\n opacity: 0.55,\n }}\n >\n The goal\n </span>\n <div\n style={{\n fontFamily: fontFamily.serif,\n fontSize: fontSize.lg,\n lineHeight: 1.4,\n marginTop: space[2],\n }}\n >\n <div className={expanded ? undefined : 'roadmap-goal-line-clamp'}>\n <Markdown>{firstParagraph}</Markdown>\n </div>\n {expanded && hasMore && <Markdown>{restParagraphs.join('\\n\\n')}</Markdown>}\n </div>\n {hasMore && (\n <button\n type=\"button\"\n onClick={() => setExpanded((v) => !v)}\n style={{\n background: 'none',\n border: 'none',\n padding: 0,\n marginTop: space[2],\n cursor: 'pointer',\n fontSize: fontSize['2xs'],\n opacity: 0.65,\n textDecoration: 'underline',\n }}\n >\n {expanded ? 'Show less' : 'Show more'}\n </button>\n )}\n </div>\n );\n};\n\ntype RoadmapViewMode = 'tree' | 'map' | 'timeline';\n\nconst VIEW_MODES: { id: RoadmapViewMode; label: string }[] = [\n { id: 'tree', label: 'Tree' },\n { id: 'map', label: 'Map' },\n { id: 'timeline', label: 'Timeline' },\n];\n\nconst RoadmapViewModeSwitch = ({\n mode,\n onChange,\n}: {\n mode: RoadmapViewMode;\n onChange: (mode: RoadmapViewMode) => void;\n}) => (\n <nav aria-label=\"Roadmap view\" style={{ display: 'flex', gap: space[1], marginBottom: space[4] }}>\n {VIEW_MODES.map((viewMode) => (\n <Button\n key={viewMode.id}\n type=\"button\"\n variant=\"ghost\"\n size=\"small\"\n isActive={mode === viewMode.id}\n aria-pressed={mode === viewMode.id}\n onClick={() => onChange(viewMode.id)}\n >\n {viewMode.label}\n </Button>\n ))}\n </nav>\n);\n\nconst HorizonPulse = ({\n items,\n graduatedByItem,\n}: {\n items: ResolvedRoadmapItem[];\n graduatedByItem: (item: ResolvedRoadmapItem) => PlanEntry[];\n}) => {\n const graduated = items.filter((item) => graduatedByItem(item).length > 0).length;\n const charted = items.length - graduated;\n return (\n <div style={horizonPulseStyle}>\n {graduated} graduated · {charted} charted\n </div>\n );\n};\n\nconst EVENT_KIND_COLOR: Record<RoadmapEventKind, string> = {\n created: color.accentSlate,\n 'task-run': color.accentAmber,\n};\n\nconst RoadmapTimelineTrack = ({\n events,\n rangeStart,\n rangeEnd,\n}: {\n events: RoadmapEvent[];\n rangeStart: number;\n rangeEnd: number;\n}) => {\n const span = rangeEnd - rangeStart || 1;\n return (\n <div className=\"roadmap-timeline-track\">\n {events.map((event, i) => (\n <button\n type=\"button\"\n key={`${event.entityId}-${event.kind}-${i}`}\n className=\"roadmap-timeline-dot\"\n style={{\n left: `${((Date.parse(event.date) - rangeStart) / span) * 100}%`,\n background: EVENT_KIND_COLOR[event.kind],\n }}\n title={`${event.itemName} — ${event.label} (${event.date})`}\n aria-label={`${event.itemName} — ${event.label} (${event.date})`}\n />\n ))}\n </div>\n );\n};\n\nconst RoadmapMapItem = ({ item }: { item: ResolvedRoadmapItem }) => {\n const percent =\n item.rollup.total > 0 ? Math.round((item.rollup.done / item.rollup.total) * 100) : 0;\n return (\n <div className=\"roadmap-map-item\">\n <div style={{ fontWeight: 600, fontSize: fontSize.sm }}>{item.name}</div>\n <div className=\"roadmap-map-progress-track\">\n <div\n className=\"roadmap-map-progress-fill\"\n style={{\n width: `${percent}%`,\n background: item.rollup.total > 0 ? color.accentGreen : 'transparent',\n }}\n />\n </div>\n <div style={{ fontSize: fontSize['2xs'], opacity: 0.5 }}>\n {item.rollup.total > 0 ? `${item.rollup.done}/${item.rollup.total} done` : 'not started'}\n </div>\n </div>\n );\n};\n\nconst RoadmapMap = ({\n roadmap,\n graduatedByItem,\n}: {\n roadmap: ResolvedRoadmap;\n graduatedByItem: (item: ResolvedRoadmapItem) => PlanEntry[];\n}) => (\n <div className=\"roadmap-lanes\">\n {roadmap.horizons.map((horizon) => (\n <div key={horizon.title} style={{ display: 'flex', flexDirection: 'column', gap: space[1] }}>\n <div style={{ display: 'flex', alignItems: 'baseline', gap: space[2] }}>\n <div style={horizonHeaderStyle}>{horizon.title}</div>\n <HorizonPulse items={horizon.items} graduatedByItem={graduatedByItem} />\n </div>\n <div className=\"roadmap-lane-items\">\n {horizon.items.map((item) => (\n <div key={item.name} className=\"roadmap-lane-item\">\n <RoadmapMapItem item={item} />\n </div>\n ))}\n </div>\n </div>\n ))}\n </div>\n);\n\nconst RoadmapTimeline = ({ roadmap }: { roadmap: ResolvedRoadmap }) => {\n if (roadmap.events.length === 0) {\n return <p style={{ opacity: 0.5 }}>No dated events yet.</p>;\n }\n\n const dates = roadmap.events.map((event) => Date.parse(event.date));\n const rangeStart = Math.min(...dates);\n const rangeEnd = Math.max(...dates);\n\n return (\n <div className=\"roadmap-lanes\">\n {roadmap.horizons.map((horizon) => {\n const events = roadmap.events.filter((event) => event.horizonTitle === horizon.title);\n return (\n <div\n key={horizon.title}\n style={{ display: 'flex', flexDirection: 'column', gap: space[1] }}\n >\n <div style={horizonHeaderStyle}>{horizon.title}</div>\n {events.length === 0 ? (\n <div style={{ ...horizonPulseStyle, opacity: 0.4 }}>No events yet</div>\n ) : (\n <RoadmapTimelineTrack events={events} rangeStart={rangeStart} rangeEnd={rangeEnd} />\n )}\n </div>\n );\n })}\n <div\n style={{\n display: 'flex',\n justifyContent: 'space-between',\n fontSize: fontSize['2xs'],\n opacity: 0.5,\n }}\n >\n <span>{new Date(rangeStart).toLocaleDateString()}</span>\n <span>{new Date(rangeEnd).toLocaleDateString()}</span>\n </div>\n </div>\n );\n};\n\nexport const RoadmapPage = () => {\n const [roadmap, setRoadmap] = useState<ResolvedRoadmap | null>(null);\n const [loading, setLoading] = useState(true);\n const [loadFailed, setLoadFailed] = useState(false);\n const [promoting, setPromoting] = useState<{\n horizonTitle: string;\n item: ResolvedRoadmapItem;\n candidateName?: string;\n } | null>(null);\n const [viewMode, setViewMode] = useState<RoadmapViewMode>('tree');\n const plans = useAppStore((s) => s.plans);\n const navigate = useNavigate();\n const { item: highlightedItem } = useSearch({ from: '/roadmap' });\n const containerRef = useRef<HTMLDivElement>(null);\n\n useEffect(() => {\n fetchRoadmap()\n .then(setRoadmap)\n .catch(() => setLoadFailed(true))\n .finally(() => setLoading(false));\n }, []);\n\n useEffect(() => {\n if (!highlightedItem || loading) return;\n const row = containerRef.current?.querySelector('.roadmap-item-highlighted');\n row?.scrollIntoView({ behavior: 'smooth', block: 'center' });\n }, [highlightedItem, loading]);\n\n if (loading) {\n return (\n <div>\n <PageTitle>Roadmap</PageTitle>\n <p style={{ opacity: 0.5 }}>Loading…</p>\n </div>\n );\n }\n\n if (loadFailed) {\n return (\n <div>\n <PageTitle>Roadmap</PageTitle>\n <p style={{ opacity: 0.5 }}>\n Couldn't load the roadmap — the server may need a restart to pick up new routes.\n </p>\n </div>\n );\n }\n\n if (!roadmap || roadmap.horizons.length === 0) {\n return (\n <div>\n <PageTitle>Roadmap</PageTitle>\n <p style={{ opacity: 0.5 }}>No `ROADMAP.md` found at the project root.</p>\n </div>\n );\n }\n\n const graduatedByItem = (item: ResolvedRoadmapItem) =>\n plans?.entries.filter((p) => p.subject === item.name) ?? [];\n\n const handleAddItem = async (horizonTitle: string, name: string, description: string) => {\n await addRoadmapItem(horizonTitle, name, description);\n setRoadmap(await fetchRoadmap());\n };\n\n const handleAddCandidate = async (horizonTitle: string, itemName: string, name: string) => {\n await addRoadmapCandidate(horizonTitle, itemName, name);\n setRoadmap(await fetchRoadmap());\n };\n\n return (\n <div ref={containerRef}>\n <GoalBanner goal={roadmap.goal} />\n <RoadmapViewModeSwitch mode={viewMode} onChange={setViewMode} />\n {viewMode === 'tree' && (\n <div className=\"roadmap-lanes\">\n {roadmap.horizons.map((horizon) => (\n <div\n key={horizon.title}\n style={{ display: 'flex', flexDirection: 'column', gap: space[1] }}\n >\n <div style={{ display: 'flex', alignItems: 'baseline', gap: space[2] }}>\n <div style={horizonHeaderStyle}>{horizon.title}</div>\n <HorizonPulse items={horizon.items} graduatedByItem={graduatedByItem} />\n </div>\n <div className=\"roadmap-lane-items\">\n {horizon.items.map((item) => (\n <div key={item.name} className=\"roadmap-lane-item\">\n <RoadmapItemRow\n item={item}\n graduated={graduatedByItem(item)}\n highlighted={item.name === highlightedItem}\n onPromote={() => setPromoting({ horizonTitle: horizon.title, item })}\n onPromoteCandidate={(candidateName) =>\n setPromoting({ horizonTitle: horizon.title, item, candidateName })\n }\n onAddCandidate={(name) => handleAddCandidate(horizon.title, item.name, name)}\n onViewGraduated={() => navigate({ to: '/', search: { subject: item.name } })}\n onOpenGraduated={(title) =>\n navigate({\n to: '/plans/$planId',\n params: { planId: encodeURIComponent(title) },\n })\n }\n />\n </div>\n ))}\n <div className=\"roadmap-lane-item\">\n <AddItemForm\n onAdd={(name, description) => handleAddItem(horizon.title, name, description)}\n />\n </div>\n </div>\n </div>\n ))}\n </div>\n )}\n {viewMode === 'map' && <RoadmapMap roadmap={roadmap} graduatedByItem={graduatedByItem} />}\n {viewMode === 'timeline' && <RoadmapTimeline roadmap={roadmap} />}\n <PromoteRoadmapItemModal\n horizonTitle={promoting?.horizonTitle ?? null}\n item={promoting?.item ?? null}\n candidateName={promoting?.candidateName}\n onClose={() => setPromoting(null)}\n onPromoted={() => fetchRoadmap().then(setRoadmap)}\n />\n </div>\n );\n};\n"],"names":["NO_SUBJECT","PromoteRoadmapItemModal","horizonTitle","item","candidateName","onClose","onPromoted","promoteRoadmapItem","useAppStore","s","launchIdeaExtend","subjects","subjectsAvailable","useSubjectVocabulary","subject","setSubject","useState","loading","setLoading","error","setError","toast","useToast","useEffect","handlePromote","id","idea","e","buildRoadmapPromotePrompt","err","oneLineErrorSummary","jsx","Modal","jsxs","space","Select","color","fontSize","Button","graduationCounts","graduated","p","horizonHeaderStyle","fontFamily","horizonPulseStyle","ChevronRightIcon","size","CandidateRow","name","onPromote","Card","AddCandidateForm","onAdd","setName","saving","setSaving","handleAdd","Input","AddItemForm","open","setOpen","description","setDescription","plural","count","noun","RoadmapLinkTrail","link","Tooltip","Stamp","STATUS_STAMP","PrBadge","GraduatedRow","plan","onOpen","STATUS_LABEL","RoadmapItemRow","highlighted","onPromoteCandidate","onAddCandidate","onViewGraduated","onOpenGraduated","expanded","setExpanded","hasCandidates","shipped","queued","v","GoalBanner","goal","firstParagraph","restParagraphs","hasMore","Markdown","VIEW_MODES","RoadmapViewModeSwitch","mode","onChange","viewMode","HorizonPulse","items","graduatedByItem","charted","EVENT_KIND_COLOR","RoadmapTimelineTrack","events","rangeStart","rangeEnd","span","event","i","RoadmapMapItem","percent","RoadmapMap","roadmap","horizon","RoadmapTimeline","dates","RoadmapPage","setRoadmap","loadFailed","setLoadFailed","promoting","setPromoting","setViewMode","plans","navigate","useNavigate","highlightedItem","useSearch","containerRef","useRef","fetchRoadmap","row","_a","PageTitle","handleAddItem","addRoadmapItem","handleAddCandidate","itemName","addRoadmapCandidate","title"],"mappings":"kQASA,MAAMA,EAAa,iBAUNC,EAA0B,CAAC,CACtC,aAAAC,EACA,KAAAC,EACA,cAAAC,EACA,QAAAC,EACA,WAAAC,CACF,IAAoC,CAClC,MAAMC,EAAqBC,EAAaC,GAAMA,EAAE,kBAAkB,EAC5DC,EAAmBF,EAAaC,GAAMA,EAAE,gBAAgB,EACxD,CAAE,SAAAE,EAAU,UAAWC,CAAA,EAAsBC,EAAA,EAC7C,CAACC,EAASC,CAAU,EAAIC,EAAAA,SAAShB,CAAU,EAC3C,CAACiB,EAASC,CAAU,EAAIF,EAAA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