@dendelion/paper-camp 0.35.1 → 0.37.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.
@@ -5,4 +5,24 @@ export declare function resolveDefaultBranch(root: string): Promise<string>;
5
5
  * a merge commit's own source-branch name, since those predate the `(IDEA-N)` convention. */
6
6
  export declare function resolveIdFromCommitMessage(message: string): string | null;
7
7
  export declare function resolveIdsWithMainActivity(root: string): Promise<Set<string>>;
8
+ export interface GitLogCommit {
9
+ hash: string;
10
+ subject: string;
11
+ prefix: string;
12
+ date: string;
13
+ tags: string[];
14
+ isUpstreamHead: boolean;
15
+ pushed: boolean;
16
+ ideaId: string | null;
17
+ }
18
+ export interface GitLogPage {
19
+ commits: GitLogCommit[];
20
+ upstream: string | null;
21
+ hasMore: boolean;
22
+ }
23
+ /** Exported for direct testing against `git log`'s %x1f/%x1e-separated output
24
+ * without needing a full repo fixture for every case. */
25
+ export declare function parseGitLogOutput(output: string, upstream: string | null, unpushed: Set<string>): GitLogCommit[];
26
+ export declare function resolveUpstream(root: string): Promise<string | null>;
27
+ export declare function readFirstParentLog(root: string, skip: number, pageSize?: number): Promise<GitLogPage>;
8
28
  //# sourceMappingURL=git-log.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"git-log.d.ts","sourceRoot":"","sources":["../../src/core/git-log.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,QAAsB,CAAC;AAIjD,wBAAgB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAUpE;AAED,wBAAsB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAGxE;AAED;6FAC6F;AAC7F,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAQzE;AAOD,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,MAAM,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CAAC,CAI1E;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,SAAK,GACZ,OAAO,CAAC,UAAU,CAAC,CAsBrB"}
@@ -1,182 +1,186 @@
1
- import { A as s, C as t, a as r, D as i, b as n, c as o, d, M as c, P as l, e as m, f as S, S as P, g as h, h as T, i as E, j as g, k as C, l as I, m as p, n as _, o as N, p as R, q as A, r as f, s as y, t as b, u as v, v as u, w as F, x as D, y as L, z as O, B as M, E as k, F as H, G, H as w, I as j, J as U, K, L as B, N as x, O as q, Q as W, R as J, T as X, U as z, V as Q, W as V, X as Y, Y as Z, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ta, a2 as ra, a3 as ia, a4 as na, a5 as oa, a6 as da, a7 as ca, a8 as la, a9 as ma, aa as Sa, ab as Pa, ac as ha, ad as Ta, ae as Ea, af as ga, ag as Ca, ah as Ia, ai as pa, aj as _a, ak as Na, al as Ra, am as Aa, an as fa, ao as ya, ap as ba, aq as va, ar as ua, as as Fa, at as Da, au as La, av as Oa, aw as Ma, ax as ka, ay as Ha, az as Ga, aA as wa, aB as ja, aC as Ua, aD as Ka, aE as Ba, aF as xa, aG as qa, aH as Wa, aI as Ja, aJ as Xa, aK as za, aL as Qa, aM as Va, aN as Ya, aO as Za, aP as $a, aQ as ae, aR as ee, aS as se, aT as te, aU as re, aV as ie, aW as ne, aX as oe, aY as de, aZ as ce, a_ as le, a$ as me, b0 as Se, b1 as Pe, b2 as he, b3 as Te, b4 as Ee, b5 as ge, b6 as Ce, b7 as Ie, b8 as pe, b9 as _e, ba as Ne, bb as Re, bc as Ae, bd as fe, be as ye, bf as be } from "../chunks/phase-progress.6EDoT9B0.js";
2
- import { a as ue, c as Fe, d as De, b as Le, e as Oe, f as Me, g as ke, h as He, i as Ge, j as we, k as je, l as Ue, m as Ke, n as Be, o as xe, p as qe, q as We, r as Je, s as Xe, t as ze, u as Qe, v as Ve, w as Ye, x as Ze, y as $e } from "../chunks/daemon-state.BeDnhzBY.js";
3
- import { AGENT_IDS as es, AGENT_LABELS as ss, AGENT_OPTIONS as ts, DEFAULT_AGENTS as rs, DEFAULT_NIGHT_CONFIG as is, DEFAULT_NOTIFICATION_KINDS as ns, MACHINE_NIGHT_PATH as os, MACHINE_PROJECTS_PATH as ds, MACHINE_UPDATE_PATH as cs, NIGHT_CHECK_IDS as ls, NOTIFICATION_SETTING_KINDS as ms, PAIRING_TOKEN_HEADER as Ss, PLAN_KINDS as Ps, PLAN_STATUSES as hs, TOOLBAR_SEGMENT_IDS as Ts, agentConfigsEqual as Es, coerceAgentConfig as gs } from "../types/index.js";
1
+ import { A as s, C as t, a as r, D as i, b as o, c as n, d, M as c, P as m, e as l, f as S, S as P, g as h, h as T, i as E, j as C, k as g, l as I, m as p, n as R, o as _, p as N, q as b, r as y, s as A, t as f, u, v, w as F, x as D, y as L, z as O, B as M, E as k, F as H, G, H as w, I as j, J as U, K, L as B, N as x, O as q, Q as W, R as J, T as Q, U as X, V as z, W as V, X as Y, Y as Z, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ta, a2 as ra, a3 as ia, a4 as oa, a5 as na, a6 as da, a7 as ca, a8 as ma, a9 as la, aa as Sa, ab as Pa, ac as ha, ad as Ta, ae as Ea, af as Ca, ag as ga, ah as Ia, ai as pa, aj as Ra, ak as _a, al as Na, am as ba, an as ya, ao as Aa, ap as fa, aq as ua, ar as va, as as Fa, at as Da, au as La, av as Oa, aw as Ma, ax as ka, ay as Ha, az as Ga, aA as wa, aB as ja, aC as Ua, aD as Ka, aE as Ba, aF as xa, aG as qa, aH as Wa, aI as Ja, aJ as Qa, aK as Xa, aL as za, aM as Va, aN as Ya, aO as Za, aP as $a, aQ as ae, aR as ee, aS as se, aT as te, aU as re, aV as ie, aW as oe, aX as ne, aY as de, aZ as ce, a_ as me, a$ as le, b0 as Se, b1 as Pe, b2 as he, b3 as Te, b4 as Ee, b5 as Ce, b6 as ge, b7 as Ie, b8 as pe, b9 as Re, ba as _e, bb as Ne, bc as be, bd as ye, be as Ae, bf as fe, bg as ue, bh as ve, bi as Fe, bj as De } from "../chunks/phase-progress.C97wkNMK.js";
2
+ import { a as Oe, c as Me, d as ke, b as He, e as Ge, f as we, g as je, h as Ue, i as Ke, j as Be, k as xe, l as qe, m as We, n as Je, o as Qe, p as Xe, q as ze, r as Ve, s as Ye, t as Ze, u as $e, v as as, w as es, x as ss, y as ts } from "../chunks/daemon-state.BeDnhzBY.js";
3
+ import { AGENT_IDS as is, AGENT_LABELS as os, AGENT_OPTIONS as ns, DEFAULT_AGENTS as ds, DEFAULT_NIGHT_CONFIG as cs, DEFAULT_NOTIFICATION_KINDS as ms, MACHINE_NIGHT_PATH as ls, MACHINE_PROJECTS_PATH as Ss, MACHINE_UPDATE_PATH as Ps, NIGHT_CHECK_IDS as hs, NOTIFICATION_SETTING_KINDS as Ts, PAIRING_TOKEN_HEADER as Es, PLAN_KINDS as Cs, PLAN_STATUSES as gs, TOOLBAR_SEGMENT_IDS as Is, agentConfigsEqual as ps, coerceAgentConfig as Rs } from "../types/index.js";
4
4
  export {
5
- es as AGENT_IDS,
6
- ss as AGENT_LABELS,
7
- ts as AGENT_OPTIONS,
5
+ is as AGENT_IDS,
6
+ os as AGENT_LABELS,
7
+ ns as AGENT_OPTIONS,
8
8
  s as AlreadyInitializedError,
9
9
  t as COMMIT_SCOPES,
10
10
  r as COMMIT_SHA_RE,
11
- rs as DEFAULT_AGENTS,
12
- is as DEFAULT_NIGHT_CONFIG,
13
- ns as DEFAULT_NOTIFICATION_KINDS,
11
+ ds as DEFAULT_AGENTS,
12
+ cs as DEFAULT_NIGHT_CONFIG,
13
+ ms as DEFAULT_NOTIFICATION_KINDS,
14
14
  i as DOCTOR_CHECKS,
15
- n as DOCTOR_FIXERS,
16
- o as DOCTOR_RULES,
15
+ o as DOCTOR_FIXERS,
16
+ n as DOCTOR_RULES,
17
17
  d as DOCTOR_RULES_BY_ID,
18
- os as MACHINE_NIGHT_PATH,
19
- ds as MACHINE_PROJECTS_PATH,
20
- cs as MACHINE_UPDATE_PATH,
18
+ ls as MACHINE_NIGHT_PATH,
19
+ Ss as MACHINE_PROJECTS_PATH,
20
+ Ps as MACHINE_UPDATE_PATH,
21
21
  c as MAX_TITLE_LENGTH,
22
- ls as NIGHT_CHECK_IDS,
23
- ms as NOTIFICATION_SETTING_KINDS,
24
- Ss as PAIRING_TOKEN_HEADER,
25
- l as PAPER_CAMP_VERSION,
26
- m as PHASE_MAX_FRACTION,
22
+ hs as NIGHT_CHECK_IDS,
23
+ Ts as NOTIFICATION_SETTING_KINDS,
24
+ Es as PAIRING_TOKEN_HEADER,
25
+ m as PAPER_CAMP_VERSION,
26
+ l as PHASE_MAX_FRACTION,
27
27
  S as PHASE_STALL_MS,
28
- Ps as PLAN_KINDS,
29
- hs as PLAN_STATUSES,
28
+ Cs as PLAN_KINDS,
29
+ gs as PLAN_STATUSES,
30
30
  P as SKILL_MD_CONTENT,
31
31
  h as SUGGESTION_ENTRY_RE,
32
- Ts as TOOLBAR_SEGMENT_IDS,
33
- ue as addProject,
32
+ Is as TOOLBAR_SEGMENT_IDS,
33
+ Oe as addProject,
34
34
  T as addRoadmapCandidate,
35
35
  E as addRoadmapItem,
36
- g as advanceAnchor,
37
- C as agentConfigSchema,
38
- Es as agentConfigsEqual,
36
+ C as advanceAnchor,
37
+ g as agentConfigSchema,
38
+ ps as agentConfigsEqual,
39
39
  I as agentThreadMessage,
40
40
  p as applyEnvEntries,
41
- _ as archiveEntityFile,
42
- N as assignEntityId,
43
- R as assignPlanId,
44
- A as assignTicketId,
45
- f as branchName,
46
- y as buildClaudeSettingsJson,
47
- b as buildPermissionsAllow,
48
- v as buildSessionStartCommand,
49
- u as classifyAnchor,
50
- Fe as clearNightProject,
41
+ R as archiveEntityFile,
42
+ _ as assignEntityId,
43
+ N as assignPlanId,
44
+ b as assignTicketId,
45
+ y as branchName,
46
+ A as buildClaudeSettingsJson,
47
+ f as buildPermissionsAllow,
48
+ u as buildSessionStartCommand,
49
+ v as classifyAnchor,
50
+ Me as clearNightProject,
51
51
  F as clearPrCache,
52
- gs as coerceAgentConfig,
52
+ Rs as coerceAgentConfig,
53
53
  D as collectDoctorContext,
54
54
  L as collectParkedQuestions,
55
55
  O as computePlanContentHash,
56
56
  M as computePrTitle,
57
57
  k as createPrReview,
58
- De as daemonLogPath,
59
- Le as daemonStatePath,
58
+ ke as daemonLogPath,
59
+ He as daemonStatePath,
60
60
  H as dateString,
61
- Oe as defaultRegistryPath,
61
+ Ge as defaultRegistryPath,
62
62
  G as derivePrLabels,
63
- w as deriveRoadmapEvents,
64
- j as deriveSubjectVocabulary,
65
- U as describeFindings,
66
- K as deskCheckSchema,
67
- B as deskCiSchema,
68
- x as deskConfigSchema,
69
- q as deskServiceSchema,
70
- W as detectPackageManager,
71
- J as dispatchPrReview,
72
- X as ensureSubject,
73
- z as entitiesWithNewChangesRequested,
74
- Q as entityFrontmatterKnownKeys,
75
- V as entityFrontmatterSchema,
76
- Y as entityToIdea,
77
- Z as entityToPlan,
78
- Me as fetchMachineNightGate,
79
- ke as fetchMachineProjects,
80
- $ as fetchPrDiff,
81
- aa as fetchUnresolvedThreads,
82
- ea as findArchivableIdeas,
83
- sa as findConsistencyIssues,
84
- ta as findReleaseLineForId,
85
- ra as findingSeverity,
86
- He as formatDaemonLinks,
87
- Ge as formatDaemonStatusLine,
88
- ia as formatEntityFile,
89
- na as formatIdeaFile,
63
+ w as deriveSubjectVocabulary,
64
+ j as describeFindings,
65
+ U as deskCheckSchema,
66
+ K as deskCiSchema,
67
+ B as deskConfigSchema,
68
+ x as deskServiceSchema,
69
+ q as detectPackageManager,
70
+ W as dispatchPrReview,
71
+ J as ensureSubject,
72
+ Q as entitiesWithNewChangesRequested,
73
+ X as entityFrontmatterKnownKeys,
74
+ z as entityFrontmatterSchema,
75
+ V as entityToIdea,
76
+ Y as entityToPlan,
77
+ we as fetchMachineNightGate,
78
+ je as fetchMachineProjects,
79
+ Z as fetchPrDiff,
80
+ $ as fetchUnresolvedThreads,
81
+ aa as findArchivableIdeas,
82
+ ea as findConsistencyIssues,
83
+ sa as findReleaseLineForId,
84
+ ta as findingSeverity,
85
+ Ue as formatDaemonLinks,
86
+ Ke as formatDaemonStatusLine,
87
+ ra as formatEntityFile,
88
+ ia as formatIdeaFile,
90
89
  oa as formatPlanEntry,
91
- da as formatPlanFile,
92
- ca as formatReleaseNotesMarkdown,
93
- we as formatUpdateStatusLine,
94
- la as getPrMapFetchedAt,
90
+ na as formatPlanFile,
91
+ da as formatReleaseNotesMarkdown,
92
+ Be as formatUpdateStatusLine,
93
+ ca as getPrMapFetchedAt,
95
94
  ma as hasPaperCampDependency,
96
- Sa as ideaFrontmatterSchema,
97
- Pa as initProject,
95
+ la as ideaFrontmatterSchema,
96
+ Sa as initProject,
97
+ Pa as isClosedEntity,
98
98
  ha as isConventionalPrTitle,
99
99
  Ta as isPhaseStalled,
100
- je as isProcessAlive,
101
- Ue as isProjectMissing,
100
+ xe as isProcessAlive,
101
+ qe as isProjectMissing,
102
102
  Ea as linkRoadmapItem,
103
- Ke as listProjects,
104
- Be as loadRegistry,
105
- xe as machineConfigDir,
106
- ga as medianSegmentMs,
107
- Ca as mergeClaudeSettingsJson,
108
- Ia as nightConfigSchema,
109
- pa as nightCustomCheckSchema,
103
+ We as listProjects,
104
+ Je as loadRegistry,
105
+ Qe as machineConfigDir,
106
+ Ca as medianSegmentMs,
107
+ ga as mergeClaudeSettingsJson,
108
+ Ia as moveRoadmapItem,
109
+ pa as nightConfigSchema,
110
+ Ra as nightCustomCheckSchema,
110
111
  _a as nightWindowSchema,
111
112
  Na as notificationsConfigSchema,
112
- Ra as paperCampConfigSchema,
113
- Aa as parseEntityFile,
114
- fa as parseEnv,
115
- ya as parseFrontmatter,
116
- ba as parseIdeaFile,
113
+ ba as paperCampConfigSchema,
114
+ ya as parseEntityFile,
115
+ Aa as parseEnv,
116
+ fa as parseFrontmatter,
117
+ ua as parseIdeaFile,
117
118
  va as parseIdeas,
118
- ua as parseNotificationLog,
119
- Fa as parsePlanFile,
120
- Da as parsePlans,
121
- La as parseRawEntries,
122
- Oa as parseRoadmap,
123
- Ma as parseSuggestions,
124
- ka as peekCachedPrs,
125
- Ha as phaseFraction,
126
- Ga as planDoctorFixes,
127
- wa as planFieldsSchema,
128
- ja as planFrontmatterSchema,
129
- qe as probeMachineEndpoint,
130
- Ua as pushSubscribeBodySchema,
131
- Ka as pushUnsubscribeBodySchema,
132
- We as qrEligibleLink,
133
- Ba as readEntities,
134
- xa as readEntitiesWithDerivedStatus,
135
- qa as readFileMaybe,
136
- Wa as readNoteEntries,
137
- Ja as readParkedQuestions,
138
- Je as readRunningDaemonState,
119
+ Fa as parseNotificationLog,
120
+ Da as parsePlanFile,
121
+ La as parsePlans,
122
+ Oa as parseRawEntries,
123
+ Ma as parseRoadmap,
124
+ ka as parseSuggestions,
125
+ Ha as peekCachedPrs,
126
+ Ga as phaseFraction,
127
+ wa as planDoctorFixes,
128
+ ja as planFieldsSchema,
129
+ Ua as planFrontmatterSchema,
130
+ Xe as probeMachineEndpoint,
131
+ Ka as pushSubscribeBodySchema,
132
+ Ba as pushUnsubscribeBodySchema,
133
+ ze as qrEligibleLink,
134
+ xa as readEntities,
135
+ qa as readEntitiesWithDerivedStatus,
136
+ Wa as readFileMaybe,
137
+ Ja as readNoteEntries,
138
+ Qa as readParkedQuestions,
139
+ Ve as readRunningDaemonState,
139
140
  Xa as readTaskLog,
140
141
  za as readWorkEntries,
141
- Xe as removeDaemonState,
142
- ze as removeProject,
143
- Qa as removeRoadmapItem,
144
- Va as removeSuggestionLine,
145
- Ya as renderConsistencyComment,
146
- Za as renderPlanPhasesIntoBody,
147
- $a as replyToReviewThread,
148
- ae as reportFindings,
149
- ee as resolveEntityIdForCommit,
150
- se as resolveEntityTrail,
151
- te as resolveIdFromCommitMessage,
152
- re as resolveIdeasForRelease,
153
- ie as resolvePlanForPrRef,
154
- ne as resolvePrimaryScope,
155
- oe as resolvePrsByEntity,
156
- de as resolveReleaseNotes,
157
- ce as resolveReleaseRanges,
158
- le as resolveReviewThread,
159
- me as resolveRoadmap,
160
- Se as runDoctor,
161
- Pe as runDoctorChecks,
162
- Qe as saveRegistry,
163
- he as scaffoldClaudeCodeIntegration,
164
- Ve as scanForProjects,
165
- Te as scoutReviewFooter,
166
- Ee as serializeFrontmatter,
167
- Ye as setNightPause,
168
- Ze as setNightProject,
169
- ge as sortFindings,
170
- Ce as squashMergePr,
171
- Ie as storedNotificationSchema,
172
- pe as syncConsistencyCommentToPr,
173
- _e as syncPlanPhasesToPr,
174
- Ne as syncPrLabelsToPr,
175
- Re as syncPrReadinessToPr,
176
- Ae as syncPrTitleToPr,
177
- fe as todayDateString,
178
- ye as validatePrTitle,
179
- be as webPushSubscriptionSchema,
180
- $e as writeDaemonState
142
+ Ye as removeDaemonState,
143
+ Ze as removeProject,
144
+ Va as removeRoadmapItem,
145
+ Ya as removeSuggestionLine,
146
+ Za as renderConsistencyComment,
147
+ $a as renderPlanPhasesIntoBody,
148
+ ae as replyToReviewThread,
149
+ ee as reportFindings,
150
+ se as resolveClosedIdeaQuestions,
151
+ te as resolveEntityIdForCommit,
152
+ re as resolveEntityTrail,
153
+ ie as resolveIdFromCommitMessage,
154
+ oe as resolveIdeasForRelease,
155
+ ne as resolvePlanForPrRef,
156
+ de as resolvePrimaryScope,
157
+ ce as resolvePrsByEntity,
158
+ me as resolveReleaseNotes,
159
+ le as resolveReleaseRanges,
160
+ Se as resolveReviewThread,
161
+ Pe as resolveRoadmap,
162
+ he as runDoctor,
163
+ Te as runDoctorChecks,
164
+ $e as saveRegistry,
165
+ Ee as scaffoldClaudeCodeIntegration,
166
+ as as scanForProjects,
167
+ Ce as scoutReviewFooter,
168
+ ge as serializeFrontmatter,
169
+ es as setNightPause,
170
+ ss as setNightProject,
171
+ Ie as setRoadmapItemShipped,
172
+ pe as sortFindings,
173
+ Re as squashMergePr,
174
+ _e as storedNotificationSchema,
175
+ Ne as syncConsistencyCommentToPr,
176
+ be as syncPlanPhasesToPr,
177
+ ye as syncPrLabelsToPr,
178
+ Ae as syncPrReadinessToPr,
179
+ fe as syncPrTitleToPr,
180
+ ue as todayDateString,
181
+ ve as updateRoadmapItem,
182
+ Fe as validatePrTitle,
183
+ De as webPushSubscriptionSchema,
184
+ ts as writeDaemonState
181
185
  };
182
186
  //# sourceMappingURL=index.js.map
@@ -1,6 +1,11 @@
1
- import { EntityEntry, ParkedQuestion } from '../types/index';
1
+ import { EntityEntry, ParkedQuestion, ThreadMessage } from '../types/index';
2
+ export declare const isClosedEntity: (entity: Pick<EntityEntry, "status" | "archived">) => boolean;
2
3
  /** Every open `question` thread message across the given entities, oldest-first —
3
4
  * the pull-based inbox of parked agent decisions (IDEA-118). */
4
5
  export declare function collectParkedQuestions(entities: EntityEntry[]): ParkedQuestion[];
5
6
  export declare function readParkedQuestions(ideasDir: string): Promise<ParkedQuestion[]>;
7
+ /** Chat mirrors a parked question with its idea as a `[[ID]]` prefix, parsed into
8
+ * `entityId`; once that idea closes, the mirror reads as resolved rather than
9
+ * counting as unanswered forever. */
10
+ export declare function resolveClosedIdeaQuestions(thread: ThreadMessage[], entities: EntityEntry[]): ThreadMessage[];
6
11
  //# sourceMappingURL=parked-questions.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"parked-questions.d.ts","sourceRoot":"","sources":["../../src/core/parked-questions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAUlE;gEACgE;AAChE,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,cAAc,EAAE,CAchF;AAED,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAGrF"}
1
+ {"version":3,"file":"parked-questions.d.ts","sourceRoot":"","sources":["../../src/core/parked-questions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,cAAc,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAWjF,eAAO,MAAM,cAAc,GAAI,QAAQ,IAAI,CAAC,WAAW,EAAE,QAAQ,GAAG,UAAU,CAAC,KAAG,OACG,CAAC;AAEtF;gEACgE;AAChE,wBAAgB,sBAAsB,CAAC,QAAQ,EAAE,WAAW,EAAE,GAAG,cAAc,EAAE,CAehF;AAED,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAGrF;AAED;;qCAEqC;AACrC,wBAAgB,0BAA0B,CACxC,MAAM,EAAE,aAAa,EAAE,EACvB,QAAQ,EAAE,WAAW,EAAE,GACtB,aAAa,EAAE,CAQjB"}
@@ -1,4 +1,4 @@
1
- import { PlanEntry, ResolvedRoadmap, Roadmap, RoadmapEvent, TaskLogEntry } from '../types/index';
1
+ import { PlanEntry, ResolvedRoadmap, Roadmap } from '../types/index';
2
2
  /**
3
3
  * Only `## The goal`, `## Horizon N — …`, and `## Standing concerns` headings are
4
4
  * inspected; other prose (intro, "How this file works") is skipped.
@@ -9,6 +9,26 @@ export declare function parseRoadmap(markdown: string): Roadmap;
9
9
  * `candidateName` is given — just that one candidate bullet, leaving the item in place.
10
10
  */
11
11
  export declare function removeRoadmapItem(markdown: string, horizonTitle: string, itemName: string, candidateName?: string): string;
12
+ /**
13
+ * Rewrites an item's head bullet (name and/or description), leaving its candidates,
14
+ * links and shipped marker untouched. A new description replaces any wrapped
15
+ * continuation lines, collapsing it onto the head line like addRoadmapItem does.
16
+ */
17
+ export declare function updateRoadmapItem(markdown: string, horizonTitle: string, itemName: string, updates: {
18
+ name?: string;
19
+ description?: string;
20
+ }): string;
21
+ /**
22
+ * Moves an item's whole block — head, continuations, candidates, links and shipped
23
+ * marker — to the end of another horizon's item list. No-op if either horizon or the
24
+ * item doesn't exist, or the destination is the item's current horizon.
25
+ */
26
+ export declare function moveRoadmapItem(markdown: string, horizonTitle: string, itemName: string, toHorizonTitle: string): string;
27
+ /**
28
+ * Sets or clears an item's `✓ shipped <date>` marker, replacing any existing one.
29
+ * `shippedOn` undefined reopens the item by removing the marker.
30
+ */
31
+ export declare function setRoadmapItemShipped(markdown: string, horizonTitle: string, itemName: string, shippedOn: string | undefined): string;
12
32
  /**
13
33
  * Appends a new item bullet (`- **name** — description`) at the end of a horizon's
14
34
  * item list, in the shape parseItems expects. No-op if the horizon doesn't exist.
@@ -21,11 +41,5 @@ export declare function linkRoadmapItem(markdown: string, horizonTitle: string,
21
41
  * standing concerns last. The one ordered read every subject picker/grouping should use.
22
42
  */
23
43
  export declare function deriveSubjectVocabulary(roadmap: Roadmap): string[];
24
- export declare function resolveRoadmap(roadmap: Roadmap, entities: PlanEntry[], taskLog?: TaskLogEntry[], changelog?: string): ResolvedRoadmap;
25
- /**
26
- * One chronological model over two append-only sources, keyed back to the roadmap item
27
- * via its `linked` entity ids. `updated` is deliberately excluded (see IDEA-92's Timeline
28
- * phase) since a last-touched timestamp can't stand in for history.
29
- */
30
- export declare function deriveRoadmapEvents(roadmap: Roadmap, entities: PlanEntry[], taskLog: TaskLogEntry[]): RoadmapEvent[];
44
+ export declare function resolveRoadmap(roadmap: Roadmap, entities: PlanEntry[], changelog?: string): ResolvedRoadmap;
31
45
  //# sourceMappingURL=roadmap.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"roadmap.d.ts","sourceRoot":"","sources":["../../src/core/roadmap.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,SAAS,EACT,eAAe,EACf,OAAO,EACP,YAAY,EAEZ,YAAY,EACb,MAAM,gBAAgB,CAAC;AA+CxB;;;GAGG;AACH,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAoCtD;AAyCD;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,aAAa,CA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