@dendelion/paper-camp 0.11.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/app/assets/index-BHrFKlRC.js +2 -0
- package/dist/app/assets/index-BHrFKlRC.js.map +1 -0
- package/dist/app/assets/index-BYaEopge.js +2 -0
- package/dist/app/assets/index-BYaEopge.js.map +1 -0
- package/dist/app/assets/index-CVlBKMF5.js +2 -0
- package/dist/app/assets/index-CVlBKMF5.js.map +1 -0
- package/dist/app/assets/index-DmvGoONp.js +6 -0
- package/dist/app/assets/index-DmvGoONp.js.map +1 -0
- package/dist/app/assets/index-DuSUXl7P.js +3 -0
- package/dist/app/assets/index-DuSUXl7P.js.map +1 -0
- package/dist/app/assets/index-Q6C6X2L9.js +4 -0
- package/dist/app/assets/index-Q6C6X2L9.js.map +1 -0
- package/dist/app/assets/main-CTwMgTvE.js +207 -0
- package/dist/app/assets/main-CTwMgTvE.js.map +1 -0
- package/dist/app/assets/main-CU7SFl1f.css +1 -0
- package/dist/app/assets/sidebar-section-C1uCSbsw.js +2 -0
- package/dist/app/assets/sidebar-section-C1uCSbsw.js.map +1 -0
- package/dist/app/assets/tokens-C9JyAXxm.js +2 -0
- package/dist/app/assets/tokens-C9JyAXxm.js.map +1 -0
- package/dist/app/index.html +2 -2
- package/dist/chunks/{roadmap.HCld8rN3.js → scaffold.CuJP4koY.js} +2050 -1876
- package/dist/chunks/scaffold.CuJP4koY.js.map +1 -0
- package/dist/cli/index.js +10112 -8165
- package/dist/cli/index.js.map +1 -1
- package/dist/core/git-pr/pr-lookup.d.ts.map +1 -1
- package/dist/core/git-pr/pr.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +81 -82
- package/dist/core/parse/parser.d.ts +2 -5
- package/dist/core/parse/parser.d.ts.map +1 -1
- package/dist/core/parse/schemas.d.ts +0 -19
- package/dist/core/parse/schemas.d.ts.map +1 -1
- package/dist/core/readers.d.ts.map +1 -1
- package/dist/core/roadmap.d.ts +5 -1
- package/dist/core/roadmap.d.ts.map +1 -1
- package/dist/core/run-order-file.d.ts +8 -0
- package/dist/core/run-order-file.d.ts.map +1 -0
- package/dist/core/run-order-file.test.d.ts +2 -0
- package/dist/core/run-order-file.test.d.ts.map +1 -0
- package/dist/core/run-order.d.ts +28 -9
- package/dist/core/run-order.d.ts.map +1 -1
- package/dist/core/scaffold/templates.d.ts +1 -1
- package/dist/core/scaffold/templates.d.ts.map +1 -1
- package/dist/core/sections.d.ts +7 -1
- package/dist/core/sections.d.ts.map +1 -1
- package/dist/core/serialize/serializer.d.ts +6 -24
- package/dist/core/serialize/serializer.d.ts.map +1 -1
- package/dist/core/stats.d.ts +10 -0
- package/dist/core/stats.d.ts.map +1 -0
- package/dist/core/stats.test.d.ts +2 -0
- package/dist/core/stats.test.d.ts.map +1 -0
- package/dist/core/status/status.d.ts +1 -0
- package/dist/core/status/status.d.ts.map +1 -1
- package/dist/core/thread.d.ts +15 -0
- package/dist/core/thread.d.ts.map +1 -0
- package/dist/core/trail.d.ts +7 -0
- package/dist/core/trail.d.ts.map +1 -0
- package/dist/core/trail.test.d.ts +2 -0
- package/dist/core/trail.test.d.ts.map +1 -0
- package/dist/types/index.d.ts +235 -29
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +12 -6
- package/dist/app/assets/index-CwotynaS.js +0 -2
- package/dist/app/assets/index-CwotynaS.js.map +0 -1
- package/dist/app/assets/index-DHHPg0hQ.js +0 -4
- package/dist/app/assets/index-DHHPg0hQ.js.map +0 -1
- package/dist/app/assets/index-DyLHu3dg.js +0 -2
- package/dist/app/assets/index-DyLHu3dg.js.map +0 -1
- package/dist/app/assets/index-DzMK8ayh.js +0 -3
- package/dist/app/assets/index-DzMK8ayh.js.map +0 -1
- package/dist/app/assets/main-B7k4s_9g.css +0 -1
- package/dist/app/assets/main-BNLbBO0E.js +0 -233
- package/dist/app/assets/main-BNLbBO0E.js.map +0 -1
- package/dist/app/assets/sidebar-section-DVSoUVEe.js +0 -2
- package/dist/app/assets/sidebar-section-DVSoUVEe.js.map +0 -1
- package/dist/chunks/roadmap.HCld8rN3.js.map +0 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"trail.test.d.ts","sourceRoot":"","sources":["../../src/core/trail.test.ts"],"names":[],"mappings":""}
|
package/dist/types/index.d.ts
CHANGED
|
@@ -9,14 +9,42 @@ 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;
|
|
17
15
|
description?: string;
|
|
18
16
|
source?: 'review';
|
|
19
17
|
}
|
|
18
|
+
/** A body section anchor is `body` for now — the whole prose block is the only
|
|
19
|
+
* body section a plan/entity has until later phases break it into sub-sections. */
|
|
20
|
+
export type MarginNoteAnchor = {
|
|
21
|
+
kind: 'phase';
|
|
22
|
+
index: number;
|
|
23
|
+
} | {
|
|
24
|
+
kind: 'body';
|
|
25
|
+
};
|
|
26
|
+
export type MarginNoteState = 'open' | 'resolved';
|
|
27
|
+
export type MarginNoteKind = 'note' | 'decision' | 'question';
|
|
28
|
+
export interface MarginNote {
|
|
29
|
+
anchor: MarginNoteAnchor;
|
|
30
|
+
prose: string;
|
|
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';
|
|
47
|
+
}
|
|
20
48
|
export interface RawEntry {
|
|
21
49
|
title: string;
|
|
22
50
|
fields: Record<string, string>;
|
|
@@ -24,6 +52,8 @@ export interface RawEntry {
|
|
|
24
52
|
phases: PhaseItem[];
|
|
25
53
|
log?: LogEntry[];
|
|
26
54
|
clarifications?: LogEntry[];
|
|
55
|
+
notes?: MarginNote[];
|
|
56
|
+
review?: LogEntry[];
|
|
27
57
|
}
|
|
28
58
|
export interface ParseWarning {
|
|
29
59
|
title: string;
|
|
@@ -57,6 +87,25 @@ export interface FixReviewResult {
|
|
|
57
87
|
why: string;
|
|
58
88
|
}[];
|
|
59
89
|
}
|
|
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;
|
|
94
|
+
text: string;
|
|
95
|
+
description?: string;
|
|
96
|
+
}
|
|
97
|
+
export interface FeedbackEdit {
|
|
98
|
+
phases?: FeedbackPhaseEdit[];
|
|
99
|
+
/** The complete replacement body, when the message corrects body prose. */
|
|
100
|
+
body?: string;
|
|
101
|
+
}
|
|
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;
|
|
108
|
+
}
|
|
60
109
|
/** Live-resolved PR info for an entity's branch — see `core/pr.ts`. */
|
|
61
110
|
export interface PrInfo {
|
|
62
111
|
number: number;
|
|
@@ -87,8 +136,18 @@ export interface PlanEntry {
|
|
|
87
136
|
order?: number;
|
|
88
137
|
body: string;
|
|
89
138
|
phases: PhaseItem[];
|
|
139
|
+
/** Post-build findings, same checkbox grammar as `phases` — see EntityEntry.fixes. */
|
|
140
|
+
fixes?: PhaseItem[];
|
|
90
141
|
log?: LogEntry[];
|
|
91
142
|
clarifications?: LogEntry[];
|
|
143
|
+
notes?: MarginNote[];
|
|
144
|
+
/** Prose written against the whole finished plan, distinct from the flat `log` — an
|
|
145
|
+
* agent later splits each entry into rework phases or a follow-up idea. */
|
|
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;
|
|
92
151
|
pr?: PrInfo;
|
|
93
152
|
}
|
|
94
153
|
export interface ArchivableIdea {
|
|
@@ -96,29 +155,35 @@ export interface ArchivableIdea {
|
|
|
96
155
|
title: string;
|
|
97
156
|
pr: PrInfo;
|
|
98
157
|
}
|
|
99
|
-
export
|
|
100
|
-
title: string;
|
|
101
|
-
date: string;
|
|
102
|
-
status: DecisionStatus;
|
|
103
|
-
supersededBy?: string;
|
|
104
|
-
body: string;
|
|
105
|
-
}
|
|
106
|
-
export interface OpenQuestionEntry {
|
|
107
|
-
title: string;
|
|
108
|
-
status: QuestionStatus;
|
|
109
|
-
raised: string;
|
|
110
|
-
resolvedBy?: string;
|
|
111
|
-
blocks?: string;
|
|
112
|
-
body: string;
|
|
113
|
-
}
|
|
114
|
-
export type ConsistencyIssueKind = 'dangling-resolved-by' | 'dangling-superseded-by' | 'blocked-plan-active';
|
|
158
|
+
export type ConsistencyIssueKind = 'orphan-subject';
|
|
115
159
|
export interface ConsistencyIssue {
|
|
116
160
|
kind: ConsistencyIssueKind;
|
|
117
|
-
section: '
|
|
161
|
+
section: 'plans';
|
|
118
162
|
title: string;
|
|
119
163
|
message: string;
|
|
120
164
|
planId?: string;
|
|
121
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
|
+
}
|
|
122
187
|
export type IdeaKind = 'idea' | 'note';
|
|
123
188
|
export type IdeaStatus = 'open' | 'done' | 'dropped';
|
|
124
189
|
export interface IdeaEntry {
|
|
@@ -160,15 +225,15 @@ export interface EntityEntry {
|
|
|
160
225
|
order?: number;
|
|
161
226
|
body: string;
|
|
162
227
|
phases: PhaseItem[];
|
|
163
|
-
|
|
164
|
-
|
|
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[];
|
|
165
234
|
/** Set by readEntities from which of the two scanned dirs the file came from, not the frontmatter. */
|
|
166
235
|
archived?: boolean;
|
|
167
236
|
}
|
|
168
|
-
export interface ProgressEntry {
|
|
169
|
-
date: string;
|
|
170
|
-
items: string[];
|
|
171
|
-
}
|
|
172
237
|
export interface SuggestionEntry {
|
|
173
238
|
date: string;
|
|
174
239
|
title: string;
|
|
@@ -178,6 +243,7 @@ export interface RoadmapItem {
|
|
|
178
243
|
name: string;
|
|
179
244
|
description: string;
|
|
180
245
|
candidates: string[];
|
|
246
|
+
linked: string[];
|
|
181
247
|
}
|
|
182
248
|
export interface RoadmapHorizon {
|
|
183
249
|
title: string;
|
|
@@ -186,6 +252,41 @@ export interface RoadmapHorizon {
|
|
|
186
252
|
export interface Roadmap {
|
|
187
253
|
goal: string;
|
|
188
254
|
horizons: RoadmapHorizon[];
|
|
255
|
+
standingConcerns: RoadmapItem[];
|
|
256
|
+
}
|
|
257
|
+
export interface RoadmapLink {
|
|
258
|
+
id: string;
|
|
259
|
+
status: PlanStatus;
|
|
260
|
+
taskRuns: number;
|
|
261
|
+
pr?: PrInfo;
|
|
262
|
+
released: boolean;
|
|
263
|
+
}
|
|
264
|
+
export interface RoadmapRollup {
|
|
265
|
+
total: number;
|
|
266
|
+
done: number;
|
|
267
|
+
}
|
|
268
|
+
export interface ResolvedRoadmapItem extends RoadmapItem {
|
|
269
|
+
links: RoadmapLink[];
|
|
270
|
+
rollup: RoadmapRollup;
|
|
271
|
+
}
|
|
272
|
+
export interface ResolvedRoadmapHorizon {
|
|
273
|
+
title: string;
|
|
274
|
+
items: ResolvedRoadmapItem[];
|
|
275
|
+
rollup: RoadmapRollup;
|
|
276
|
+
}
|
|
277
|
+
export interface ResolvedRoadmap {
|
|
278
|
+
goal: string;
|
|
279
|
+
horizons: ResolvedRoadmapHorizon[];
|
|
280
|
+
events: RoadmapEvent[];
|
|
281
|
+
}
|
|
282
|
+
export type RoadmapEventKind = 'created' | 'task-run';
|
|
283
|
+
export interface RoadmapEvent {
|
|
284
|
+
date: string;
|
|
285
|
+
kind: RoadmapEventKind;
|
|
286
|
+
entityId: string;
|
|
287
|
+
horizonTitle: string;
|
|
288
|
+
itemName: string;
|
|
289
|
+
label: string;
|
|
189
290
|
}
|
|
190
291
|
export interface EnvEntry {
|
|
191
292
|
key: string;
|
|
@@ -224,9 +325,8 @@ export interface PaperCampConfig {
|
|
|
224
325
|
};
|
|
225
326
|
port?: number;
|
|
226
327
|
defaultAgents?: DefaultAgentsMap;
|
|
227
|
-
/**
|
|
228
|
-
|
|
229
|
-
/** The managed subject list; an idea's `subject` not present here renders as "No subject". */
|
|
328
|
+
/** Derived from `ROADMAP.md` on every read (IDEA-95), never written to disk; an idea's
|
|
329
|
+
* `subject` not present here renders as "No subject". */
|
|
230
330
|
subjects?: string[];
|
|
231
331
|
/** Opts out of the first-run redirect to Settings > Setup while capabilities are incomplete. */
|
|
232
332
|
setupDismissed?: boolean;
|
|
@@ -244,6 +344,57 @@ export interface CapabilityResult {
|
|
|
244
344
|
status: CapabilityStatus;
|
|
245
345
|
detail: string;
|
|
246
346
|
}
|
|
347
|
+
export interface AgentAuthStatus {
|
|
348
|
+
loggedIn: boolean | null;
|
|
349
|
+
authMethod: string | null;
|
|
350
|
+
apiProvider: string | null;
|
|
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
|
+
}
|
|
358
|
+
export type ServiceId = 'git' | 'gh' | `agent:${AgentId}`;
|
|
359
|
+
/** What a Connections row offers once its service isn't `ok` — copy a command, follow a link, or read plain instructions. */
|
|
360
|
+
export type ConnectAction =
|
|
361
|
+
/** `runnable` marks a command with no placeholders and no interactive prompts — safe for the server to execute directly instead of just displaying it. */
|
|
362
|
+
{
|
|
363
|
+
kind: 'command';
|
|
364
|
+
command: string;
|
|
365
|
+
runnable?: boolean;
|
|
366
|
+
} | {
|
|
367
|
+
kind: 'link';
|
|
368
|
+
url: string;
|
|
369
|
+
label: string;
|
|
370
|
+
} | {
|
|
371
|
+
kind: 'text';
|
|
372
|
+
message: string;
|
|
373
|
+
};
|
|
374
|
+
export interface ConnectionResult {
|
|
375
|
+
id: ServiceId;
|
|
376
|
+
label: string;
|
|
377
|
+
unlocks: string;
|
|
378
|
+
status: CapabilityStatus;
|
|
379
|
+
detail: string;
|
|
380
|
+
authenticated: boolean | null;
|
|
381
|
+
connect: ConnectAction | null;
|
|
382
|
+
}
|
|
383
|
+
export interface MergePolicy {
|
|
384
|
+
allowSquashMerge: boolean;
|
|
385
|
+
allowMergeCommit: boolean;
|
|
386
|
+
allowRebaseMerge: boolean;
|
|
387
|
+
squashMergeCommitTitle: string;
|
|
388
|
+
squashMergeCommitMessage: string;
|
|
389
|
+
}
|
|
390
|
+
export type MergePolicyResult = {
|
|
391
|
+
status: 'ok';
|
|
392
|
+
repo: string;
|
|
393
|
+
policy: MergePolicy;
|
|
394
|
+
} | {
|
|
395
|
+
status: 'unavailable';
|
|
396
|
+
reason: string;
|
|
397
|
+
};
|
|
247
398
|
export interface GitStatusEntry {
|
|
248
399
|
path: string;
|
|
249
400
|
status: string;
|
|
@@ -254,11 +405,46 @@ export interface GitStatusResponse {
|
|
|
254
405
|
branch: string;
|
|
255
406
|
entries: GitStatusEntry[];
|
|
256
407
|
ahead: number;
|
|
408
|
+
behind: number;
|
|
409
|
+
diverged: boolean;
|
|
257
410
|
branchHygiene: BranchHygieneStatus;
|
|
258
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
|
+
}
|
|
259
422
|
export type BranchHygieneStatus = 'clean-on-main' | 'stale-merged' | 'stale-no-upstream' | 'dirty' | 'fine';
|
|
423
|
+
export interface GitLiveState {
|
|
424
|
+
branch: string;
|
|
425
|
+
ahead: number;
|
|
426
|
+
behind: number;
|
|
427
|
+
dirtyCount: number;
|
|
428
|
+
}
|
|
429
|
+
export interface GitSyncFailure {
|
|
430
|
+
ok: false;
|
|
431
|
+
stage: 'reconcile' | 'stash-pop' | 'conflicted';
|
|
432
|
+
message: string;
|
|
433
|
+
stashPending: boolean;
|
|
434
|
+
conflictedFiles?: string[];
|
|
435
|
+
conflictRef?: string;
|
|
436
|
+
conflictedContent?: {
|
|
437
|
+
path: string;
|
|
438
|
+
content: string;
|
|
439
|
+
}[];
|
|
440
|
+
recoveryPrompt: string;
|
|
441
|
+
conflictPrompt?: string;
|
|
442
|
+
}
|
|
443
|
+
export type GitSyncResult = {
|
|
444
|
+
ok: true;
|
|
445
|
+
} | GitSyncFailure;
|
|
260
446
|
export type AgentTaskStatus = 'starting' | 'running' | 'stopping' | 'done' | 'error';
|
|
261
|
-
export type TaskKind = 'phase' | 'audit' | 'batch-reconcile' | 'run-all' | 'draft' | 'extend' | 'suggest' | 'commit-suggest' | 'overlap-check' | 'prioritise' | 'sync' | 'reconcile' | 'fix-review';
|
|
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';
|
|
262
448
|
export interface TaskLogEntry {
|
|
263
449
|
id: string;
|
|
264
450
|
taskKind: TaskKind;
|
|
@@ -269,6 +455,23 @@ export interface TaskLogEntry {
|
|
|
269
455
|
endedAt: string;
|
|
270
456
|
outcome: 'done' | 'error';
|
|
271
457
|
}
|
|
458
|
+
export interface TrailHop<T> {
|
|
459
|
+
reached: boolean;
|
|
460
|
+
data?: T;
|
|
461
|
+
}
|
|
462
|
+
export interface ProvenanceTrail {
|
|
463
|
+
id: string;
|
|
464
|
+
idea: TrailHop<{
|
|
465
|
+
title: string;
|
|
466
|
+
status?: EntityStatus;
|
|
467
|
+
type?: EntityType;
|
|
468
|
+
}>;
|
|
469
|
+
phases: TrailHop<PhaseItem[]>;
|
|
470
|
+
taskRuns: TrailHop<TaskLogEntry[]>;
|
|
471
|
+
commits: TrailHop<string[]>;
|
|
472
|
+
pr: TrailHop<PrInfo>;
|
|
473
|
+
releaseLine: TrailHop<string>;
|
|
474
|
+
}
|
|
272
475
|
export interface AgentTaskState {
|
|
273
476
|
id: string;
|
|
274
477
|
status: AgentTaskStatus;
|
|
@@ -276,6 +479,8 @@ export interface AgentTaskState {
|
|
|
276
479
|
planTitle: string;
|
|
277
480
|
planId?: string;
|
|
278
481
|
phaseIndex?: number;
|
|
482
|
+
fixAttempt?: number;
|
|
483
|
+
fixAttemptCap?: number;
|
|
279
484
|
ideaId?: string;
|
|
280
485
|
agentId: AgentId;
|
|
281
486
|
lines: string[];
|
|
@@ -283,6 +488,7 @@ export interface AgentTaskState {
|
|
|
283
488
|
title: string;
|
|
284
489
|
message: string;
|
|
285
490
|
};
|
|
491
|
+
errorKind?: 'auth';
|
|
286
492
|
}
|
|
287
493
|
export interface OverlapVerdict {
|
|
288
494
|
verdict: 'existing' | 'extend' | 'new';
|
|
@@ -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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AAS,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"}
|
package/dist/types/index.js.map
CHANGED
|
@@ -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\nexport interface RawEntry {\n title: string;\n fields: Record<string, string>;\n body: string;\n phases: PhaseItem[];\n log?: LogEntry[];\n clarifications?: 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\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 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 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\nexport interface ConsistencyIssue {\n kind: ConsistencyIssueKind;\n section: 'decisions' | 'open-questions';\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 /** Set by readEntities from which of the two scanned dirs the file came from, not the frontmatter. */\n archived?: boolean;\n}\n\nexport interface ProgressEntry {\n date: string;\n items: string[];\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}\n\nexport interface RoadmapHorizon {\n title: string;\n items: RoadmapItem[];\n}\n\nexport interface Roadmap {\n goal: string;\n horizons: RoadmapHorizon[];\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 /** Off by default. When true, the PostToolUse hook logs new-file creations to progress.md. */\n autoLogNewFiles?: boolean;\n /** The managed subject list; an idea's `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 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 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\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 AgentTaskState {\n id: string;\n status: AgentTaskStatus;\n taskKind: TaskKind;\n planTitle: string;\n planId?: string;\n phaseIndex?: 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}\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,GAyOaC,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.
|
|
3
|
+
"version": "0.13.0",
|
|
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"
|
|
@@ -31,14 +34,15 @@
|
|
|
31
34
|
"dev:lib": "vite",
|
|
32
35
|
"cli": "bun src/cli/index.ts",
|
|
33
36
|
"check-types": "tsc --noEmit",
|
|
34
|
-
"lint": "biome check .
|
|
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",
|
|
40
43
|
"consistency": "knip --include files,dependencies && depcruise src --config .dependency-cruiser.cjs",
|
|
41
|
-
"prepare": "husky"
|
|
44
|
+
"prepare": "husky",
|
|
45
|
+
"comment-stats": "node scripts/comment-stats.mjs"
|
|
42
46
|
},
|
|
43
47
|
"keywords": [
|
|
44
48
|
"project-management",
|
|
@@ -59,11 +63,12 @@
|
|
|
59
63
|
"react-dom": "^18.0.0"
|
|
60
64
|
},
|
|
61
65
|
"dependencies": {
|
|
62
|
-
"@dendelion/paper-ui": "0.
|
|
66
|
+
"@dendelion/paper-ui": "^0.12.0",
|
|
63
67
|
"@modelcontextprotocol/sdk": "^1.29.0",
|
|
64
68
|
"@tanstack/react-router": "^1.58.3",
|
|
65
69
|
"commander": "^12.0.0",
|
|
66
70
|
"framer-motion": "^12.40.0",
|
|
71
|
+
"node-pty": "^1.1.0",
|
|
67
72
|
"react-markdown": "^10.1.0",
|
|
68
73
|
"yaml": "^2.9.0",
|
|
69
74
|
"zod": "^4.4.3",
|
|
@@ -77,6 +82,7 @@
|
|
|
77
82
|
"@types/react": "^18.3.11",
|
|
78
83
|
"@types/react-dom": "^18.3.0",
|
|
79
84
|
"@vitejs/plugin-react-swc": "^3.7.1",
|
|
85
|
+
"@vitest/coverage-v8": "2.1.9",
|
|
80
86
|
"autoprefixer": "^10.4.20",
|
|
81
87
|
"dependency-cruiser": "^18.0.0",
|
|
82
88
|
"husky": "^9.1.7",
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
import{u as a,a as m,j as e,s as d,Z as j,f as p,d as v,c as S,l as x,b as f,M as b,e as D,h as w,P as T,r as C,X as k,o as L}from"./main-BNLbBO0E.js";import{S as $}from"./sidebar-section-DVSoUVEe.js";const g=(t,r)=>t.toLowerCase().includes(r.toLowerCase()),Q=(t,r,c=120)=>{const l=t.toLowerCase().indexOf(r.toLowerCase());if(l===-1)return t.slice(0,c);const n=Math.max(0,l-40),i=Math.min(t.length,l+r.length+40);let h=t.slice(n,i);return n>0&&(h=`…${h}`),i<t.length&&(h=`${h}…`),h},z=({query:t})=>{const r=a(o=>o.repoDocs),c=a(o=>o.setActiveDocTitle),l=a(o=>o.setDocSearchQuery),n=m(),i=[];for(const o of r)(g(o.name,t)||g(o.content,t))&&i.push({title:o.name,snippet:Q(o.content,t)});const h=o=>{n({to:"/docs/$section",params:{section:"repo-docs"}}),c(o),l("")};return i.length===0?e.jsxs("p",{style:{opacity:.5},children:['No results found for "',t,'".']}):e.jsxs("div",{children:[e.jsxs("p",{className:"text-sm",style:{opacity:.5,marginBottom:d[3]},children:[i.length," result",i.length===1?"":"s",' for "',t,'"']}),e.jsx("div",{style:{display:"flex",flexDirection:"column",gap:d[1]},children:i.map(o=>e.jsx(j,{variant:"ghost",size:"small",fullWidth:!0,onClick:()=>h(o.title),style:{justifyContent:"flex-start",padding:`${d[2]} ${d[3]}`},children:e.jsxs("span",{style:{textAlign:"left"},children:[e.jsx("span",{style:{fontFamily:p.serif,fontWeight:600,fontSize:"0.95rem",display:"block",marginBottom:"0.2rem"},children:o.title}),e.jsx("span",{className:"text-sm",style:{opacity:.6},children:o.snippet})]})},o.title))})]})},A=()=>{const t=a(n=>n.repoDocs),r=a(n=>n.activeDocTitle),c=t.find(n=>n.name===r);if(!c)return null;const l=c.name.endsWith(".md");return e.jsxs("div",{children:[e.jsx("h2",{style:{...v,margin:`0 0 ${d[4]}`},children:c.name}),l?e.jsx("div",{style:{fontFamily:p.body,fontSize:f.base,lineHeight:x.relaxed,color:S.textProse},children:e.jsx(b,{children:c.content})}):e.jsx("pre",{style:{fontFamily:p.mono,fontSize:f.xs,background:"rgba(0,0,0,0.04)",borderRadius:6,padding:d[4],overflowX:"auto",lineHeight:x.normal,whiteSpace:"pre-wrap"},children:c.content})]})},F=()=>{const t=a(i=>i.docSearchQuery),r=a(i=>i.activeDocTitle),c=m(),l=D(),n=()=>c({to:"/docs"});return t.trim()?e.jsx("div",{children:e.jsx(z,{query:t})}):l==="repo-docs"&&r?e.jsxs("div",{children:[e.jsx("div",{style:{marginBottom:d[4]},children:e.jsx(w,{items:[{id:"docs",label:"Docs",onClick:n},{id:"repo-doc",label:r}]})}),e.jsx(A,{})]}):e.jsxs("div",{children:[e.jsx(T,{children:"Docs"}),e.jsx("p",{style:{opacity:.5},children:"Pick a doc from the sidebar — start with a repo doc if you're new here."})]})},R=t=>t.charAt(0).toUpperCase()+t.slice(1).toLowerCase(),u=({children:t})=>e.jsx("span",{className:"text-sm",style:{display:"block",padding:`${d[1]} ${d[3]}`,opacity:.35,fontStyle:"italic"},children:t}),M=()=>{const t=a(s=>s.repoDocs),r=a(s=>s.repoDocsLoading),c=a(s=>s.loadRepoDocs),l=a(s=>s.activeDocTitle),n=a(s=>s.setActiveDocTitle),i=a(s=>s.docSearchQuery),h=a(s=>s.setDocSearchQuery),o=D(),y=m();return C.useEffect(()=>{c()},[c]),e.jsxs(e.Fragment,{children:[e.jsx("div",{style:{marginBottom:d[4]},children:e.jsx(k,{size:"small","aria-label":"Search docs",placeholder:"Search docs…",value:i,onChange:s=>h(s.target.value)})}),e.jsx($,{label:"Repo Docs",children:r&&t.length===0?e.jsx(u,{children:"Loading…"}):t.length>0?t.map(s=>e.jsx(L,{size:"small",active:o==="repo-docs"&&l===s.name,onClick:()=>{y({to:"/docs/$section",params:{section:"repo-docs"}}),n(s.name)},children:R(s.name)},s.name)):e.jsx(u,{children:"No repo docs found"})})]})};export{F as DocsPage,M as DocsSidebar};
|
|
2
|
-
//# sourceMappingURL=index-CwotynaS.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index-CwotynaS.js","sources":["../../../src/app/features/docs/components/docs-search.tsx","../../../src/app/features/docs/components/repo-doc-detail.tsx","../../../src/app/features/docs/docs-page.tsx","../../../src/app/features/docs/components/docs-sidebar.tsx"],"sourcesContent":["import { useAppStore } from '@/app/stores/app-store';\nimport { fontFamily, space } from '@/app/styles/tokens';\nimport { Button } from '@dendelion/paper-ui';\nimport { useNavigate } from '@tanstack/react-router';\n\ninterface SearchMatch {\n title: string;\n snippet: string;\n}\n\ninterface DocsSearchProps {\n query: string;\n}\n\nconst searchIn = (text: string, query: string): boolean =>\n text.toLowerCase().includes(query.toLowerCase());\n\nconst snippet = (text: string, query: string, maxLen = 120): string => {\n const idx = text.toLowerCase().indexOf(query.toLowerCase());\n if (idx === -1) return text.slice(0, maxLen);\n const start = Math.max(0, idx - 40);\n const end = Math.min(text.length, idx + query.length + 40);\n let s = text.slice(start, end);\n if (start > 0) s = `…${s}`;\n if (end < text.length) s = `${s}…`;\n return s;\n};\n\nexport const DocsSearch = ({ query }: DocsSearchProps) => {\n const repoDocs = useAppStore((s) => s.repoDocs);\n const setActiveDocTitle = useAppStore((s) => s.setActiveDocTitle);\n const setDocSearchQuery = useAppStore((s) => s.setDocSearchQuery);\n const navigate = useNavigate();\n\n const results: SearchMatch[] = [];\n\n for (const f of repoDocs) {\n if (searchIn(f.name, query) || searchIn(f.content, query)) {\n results.push({\n title: f.name,\n snippet: snippet(f.content, query),\n });\n }\n }\n\n const handleSelect = (title: string) => {\n navigate({ to: '/docs/$section', params: { section: 'repo-docs' } });\n setActiveDocTitle(title);\n setDocSearchQuery('');\n };\n\n if (results.length === 0) {\n return <p style={{ opacity: 0.5 }}>No results found for \"{query}\".</p>;\n }\n\n return (\n <div>\n <p className=\"text-sm\" style={{ opacity: 0.5, marginBottom: space[3] }}>\n {results.length} result{results.length === 1 ? '' : 's'} for \"{query}\"\n </p>\n <div style={{ display: 'flex', flexDirection: 'column', gap: space[1] }}>\n {results.map((m) => (\n <Button\n key={m.title}\n variant=\"ghost\"\n size=\"small\"\n fullWidth\n onClick={() => handleSelect(m.title)}\n style={{ justifyContent: 'flex-start', padding: `${space[2]} ${space[3]}` }}\n >\n <span style={{ textAlign: 'left' }}>\n <span\n style={{\n fontFamily: fontFamily.serif,\n fontWeight: 600,\n fontSize: '0.95rem',\n display: 'block',\n marginBottom: '0.2rem',\n }}\n >\n {m.title}\n </span>\n <span className=\"text-sm\" style={{ opacity: 0.6 }}>\n {m.snippet}\n </span>\n </span>\n </Button>\n ))}\n </div>\n </div>\n );\n};\n","import { detailHeadingStyle } from '@/app/components/detail-heading-style';\nimport { Markdown } from '@/app/components/markdown';\nimport { useAppStore } from '@/app/stores/app-store';\nimport { color, fontFamily, fontSize, lineHeight, space } from '@/app/styles/tokens';\n\nexport const RepoDocDetail = () => {\n const repoDocs = useAppStore((s) => s.repoDocs);\n const activeDocTitle = useAppStore((s) => s.activeDocTitle);\n\n const file = repoDocs.find((f) => f.name === activeDocTitle);\n if (!file) return null;\n\n const isMarkdown = file.name.endsWith('.md');\n\n return (\n <div>\n <h2 style={{ ...detailHeadingStyle, margin: `0 0 ${space[4]}` }}>{file.name}</h2>\n\n {isMarkdown ? (\n <div\n style={{\n fontFamily: fontFamily.body,\n fontSize: fontSize.base,\n lineHeight: lineHeight.relaxed,\n color: color.textProse,\n }}\n >\n <Markdown>{file.content}</Markdown>\n </div>\n ) : (\n <pre\n style={{\n fontFamily: fontFamily.mono,\n fontSize: fontSize.xs,\n background: 'rgba(0,0,0,0.04)',\n borderRadius: 6,\n padding: space[4],\n overflowX: 'auto',\n lineHeight: lineHeight.normal,\n whiteSpace: 'pre-wrap',\n }}\n >\n {file.content}\n </pre>\n )}\n </div>\n );\n};\n","import { PageTitle } from '@/app/components/page-title';\nimport { useResolvedDocSection } from '@/app/hooks';\nimport { useAppStore } from '@/app/stores/app-store';\nimport { space } from '@/app/styles/tokens';\nimport { Breadcrumb } from '@dendelion/paper-ui';\nimport { useNavigate } from '@tanstack/react-router';\nimport { DocsSearch } from './components/docs-search';\nimport { RepoDocDetail } from './components/repo-doc-detail';\n\nexport const DocsPage = () => {\n const docSearchQuery = useAppStore((s) => s.docSearchQuery);\n const activeDocTitle = useAppStore((s) => s.activeDocTitle);\n const navigate = useNavigate();\n const activeDocSection = useResolvedDocSection();\n\n const handleBackToDocs = () => navigate({ to: '/docs' });\n\n if (docSearchQuery.trim()) {\n return (\n <div>\n <DocsSearch query={docSearchQuery} />\n </div>\n );\n }\n\n if (activeDocSection === 'repo-docs' && activeDocTitle) {\n return (\n <div>\n <div style={{ marginBottom: space[4] }}>\n <Breadcrumb\n items={[\n { id: 'docs', label: 'Docs', onClick: handleBackToDocs },\n { id: 'repo-doc', label: activeDocTitle },\n ]}\n />\n </div>\n <RepoDocDetail />\n </div>\n );\n }\n\n return (\n <div>\n <PageTitle>Docs</PageTitle>\n <p style={{ opacity: 0.5 }}>\n Pick a doc from the sidebar — start with a repo doc if you're new here.\n </p>\n </div>\n );\n};\n","import { useResolvedDocSection } from '@/app/hooks';\nimport { useAppStore } from '@/app/stores/app-store';\nimport { space } from '@/app/styles/tokens';\nimport { Input, ListItem } from '@dendelion/paper-ui';\nimport { useNavigate } from '@tanstack/react-router';\nimport { useEffect } from 'react';\nimport { SidebarSection } from '../../plans/components/sidebar-section';\n\nconst simplecaseLabel = (name: string) =>\n name.charAt(0).toUpperCase() + name.slice(1).toLowerCase();\n\nconst EmptyState = ({ children }: { children: React.ReactNode }) => (\n <span\n className=\"text-sm\"\n style={{\n display: 'block',\n padding: `${space[1]} ${space[3]}`,\n opacity: 0.35,\n fontStyle: 'italic',\n }}\n >\n {children}\n </span>\n);\n\nexport const DocsSidebar = () => {\n const repoDocs = useAppStore((s) => s.repoDocs);\n const repoDocsLoading = useAppStore((s) => s.repoDocsLoading);\n const loadRepoDocs = useAppStore((s) => s.loadRepoDocs);\n const activeDocTitle = useAppStore((s) => s.activeDocTitle);\n const setActiveDocTitle = useAppStore((s) => s.setActiveDocTitle);\n const docSearchQuery = useAppStore((s) => s.docSearchQuery);\n const setDocSearchQuery = useAppStore((s) => s.setDocSearchQuery);\n const activeDocSection = useResolvedDocSection();\n const navigate = useNavigate();\n\n useEffect(() => {\n loadRepoDocs();\n }, [loadRepoDocs]);\n\n return (\n <>\n <div style={{ marginBottom: space[4] }}>\n <Input\n size=\"small\"\n aria-label=\"Search docs\"\n placeholder=\"Search docs…\"\n value={docSearchQuery}\n onChange={(e) => setDocSearchQuery(e.target.value)}\n />\n </div>\n\n <SidebarSection label=\"Repo Docs\">\n {repoDocsLoading && repoDocs.length === 0 ? (\n <EmptyState>Loading…</EmptyState>\n ) : repoDocs.length > 0 ? (\n repoDocs.map((f) => (\n <ListItem\n key={f.name}\n size=\"small\"\n active={activeDocSection === 'repo-docs' && activeDocTitle === f.name}\n onClick={() => {\n navigate({ to: '/docs/$section', params: { section: 'repo-docs' } });\n setActiveDocTitle(f.name);\n }}\n >\n {simplecaseLabel(f.name)}\n </ListItem>\n ))\n ) : (\n <EmptyState>No repo docs found</EmptyState>\n )}\n </SidebarSection>\n </>\n );\n};\n"],"names":["searchIn","text","query","snippet","maxLen","idx","start","end","s","DocsSearch","repoDocs","useAppStore","setActiveDocTitle","setDocSearchQuery","navigate","useNavigate","results","f","handleSelect","title","jsxs","space","m","jsx","Button","fontFamily","RepoDocDetail","activeDocTitle","file","isMarkdown","detailHeadingStyle","fontSize","lineHeight","color","Markdown","DocsPage","docSearchQuery","activeDocSection","useResolvedDocSection","handleBackToDocs","Breadcrumb","PageTitle","simplecaseLabel","name","EmptyState","children","DocsSidebar","repoDocsLoading","loadRepoDocs","useEffect","Fragment","Input","e","SidebarSection","ListItem"],"mappings":"yMAcA,MAAMA,EAAW,CAACC,EAAcC,IAC9BD,EAAK,cAAc,SAASC,EAAM,aAAa,EAE3CC,EAAU,CA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