@dendelion/paper-camp 0.10.0 → 0.12.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.
Files changed (64) hide show
  1. package/dist/app/assets/index-B6eOrr41.js +4 -0
  2. package/dist/app/assets/index-B6eOrr41.js.map +1 -0
  3. package/dist/app/assets/index-BajRXbXg.js +2 -0
  4. package/dist/app/assets/index-BajRXbXg.js.map +1 -0
  5. package/dist/app/assets/index-DAexv1XS.js +3 -0
  6. package/dist/app/assets/index-DAexv1XS.js.map +1 -0
  7. package/dist/app/assets/index-DFJlDY3W.js +2 -0
  8. package/dist/app/assets/index-DFJlDY3W.js.map +1 -0
  9. package/dist/app/assets/main-Bno8vU-0.js +288 -0
  10. package/dist/app/assets/main-Bno8vU-0.js.map +1 -0
  11. package/dist/app/assets/{main-BJGNGUiz.css → main-RP3LpwgH.css} +1 -1
  12. package/dist/app/assets/{sidebar-section-Ch50IaLb.js → sidebar-section-BrJbBK_b.js} +2 -2
  13. package/dist/app/assets/{sidebar-section-Ch50IaLb.js.map → sidebar-section-BrJbBK_b.js.map} +1 -1
  14. package/dist/app/index.html +2 -2
  15. package/dist/chunks/{roadmap.C0AQ6pUX.js → scaffold.B_3sY6Rg.js} +1935 -1588
  16. package/dist/chunks/scaffold.B_3sY6Rg.js.map +1 -0
  17. package/dist/cli/index.js +8604 -7494
  18. package/dist/cli/index.js.map +1 -1
  19. package/dist/core/git-pr/pr.d.ts +12 -1
  20. package/dist/core/git-pr/pr.d.ts.map +1 -1
  21. package/dist/core/git-pr/scopes.d.ts +3 -0
  22. package/dist/core/git-pr/scopes.d.ts.map +1 -1
  23. package/dist/core/index.d.ts +1 -0
  24. package/dist/core/index.d.ts.map +1 -1
  25. package/dist/core/index.js +94 -80
  26. package/dist/core/parse/parser.d.ts +2 -3
  27. package/dist/core/parse/parser.d.ts.map +1 -1
  28. package/dist/core/parse/schemas.d.ts +1 -0
  29. package/dist/core/parse/schemas.d.ts.map +1 -1
  30. package/dist/core/readers.d.ts.map +1 -1
  31. package/dist/core/roadmap.d.ts +7 -1
  32. package/dist/core/roadmap.d.ts.map +1 -1
  33. package/dist/core/run-order-file.d.ts +8 -0
  34. package/dist/core/run-order-file.d.ts.map +1 -0
  35. package/dist/core/run-order-file.test.d.ts +2 -0
  36. package/dist/core/run-order-file.test.d.ts.map +1 -0
  37. package/dist/core/run-order.d.ts +28 -9
  38. package/dist/core/run-order.d.ts.map +1 -1
  39. package/dist/core/scaffold/scaffold.d.ts.map +1 -1
  40. package/dist/core/scaffold/templates.d.ts +1 -1
  41. package/dist/core/scaffold/templates.d.ts.map +1 -1
  42. package/dist/core/sections.d.ts +3 -1
  43. package/dist/core/sections.d.ts.map +1 -1
  44. package/dist/core/serialize/serializer.d.ts +7 -3
  45. package/dist/core/serialize/serializer.d.ts.map +1 -1
  46. package/dist/core/trail.d.ts +7 -0
  47. package/dist/core/trail.d.ts.map +1 -0
  48. package/dist/core/trail.test.d.ts +2 -0
  49. package/dist/core/trail.test.d.ts.map +1 -0
  50. package/dist/types/index.d.ts +174 -10
  51. package/dist/types/index.d.ts.map +1 -1
  52. package/dist/types/index.js.map +1 -1
  53. package/package.json +4 -3
  54. package/dist/app/assets/index-BnXxehKU.js +0 -2
  55. package/dist/app/assets/index-BnXxehKU.js.map +0 -1
  56. package/dist/app/assets/index-C2kYil0S.js +0 -3
  57. package/dist/app/assets/index-C2kYil0S.js.map +0 -1
  58. package/dist/app/assets/index-CRRHTP77.js +0 -2
  59. package/dist/app/assets/index-CRRHTP77.js.map +0 -1
  60. package/dist/app/assets/index-DrNAzLuW.js +0 -2
  61. package/dist/app/assets/index-DrNAzLuW.js.map +0 -1
  62. package/dist/app/assets/main-CyxblUnu.js +0 -233
  63. package/dist/app/assets/main-CyxblUnu.js.map +0 -1
  64. package/dist/chunks/roadmap.C0AQ6pUX.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { ConsistencyIssue, EntityType, PhaseItem } from '../../types/index';
1
+ import { ConsistencyIssue, EntityEntry, EntityType, PhaseItem } from '../../types/index';
2
2
  export { clearPrCache, fetchUnresolvedThreads, replyToReviewThread, resolvePrsByEntity, resolveReviewThread, } from './pr-lookup';
3
3
  interface ResolvedPlanForPr {
4
4
  id: string;
@@ -11,6 +11,17 @@ export declare function renderPlanPhasesIntoBody(body: string, phases: PhaseItem
11
11
  export declare function syncPlanPhasesToPr(root: string, ref: string): Promise<'updated' | 'unchanged' | 'unresolved'>;
12
12
  export declare function derivePrLabels(plan: Pick<ResolvedPlanForPr, 'kind' | 'tags'>): string[];
13
13
  export declare function syncPrLabelsToPr(root: string, ref: string): Promise<'updated' | 'unchanged' | 'unresolved'>;
14
+ /** Squash-merge inherits this verbatim as the release commit, so the format has to
15
+ * be conventional-commit from the start, not just readable. */
16
+ export declare function computePrTitle(id: string, entry: Pick<EntityEntry, 'type' | 'tags' | 'title'>): string;
17
+ export declare function isConventionalPrTitle(title: string): boolean;
18
+ export declare function syncPrTitleToPr(root: string, ref: string): Promise<'updated' | 'unchanged' | 'unresolved'>;
19
+ /** Not best-effort like the sync-* commands: a squash-merged commit inherits the
20
+ * PR title verbatim, so an unconventional hand-typed title must fail the check
21
+ * rather than pass silently and fall out of the changelog. When the branch/PR
22
+ * resolves to a plan, the title must match that plan's title exactly — a
23
+ * conventional but unrelated title (stale or hand-edited) is still invalid. */
24
+ export declare function validatePrTitle(root: string, ref: string): Promise<'valid' | 'invalid' | 'no-pr'>;
14
25
  export declare function syncPrReadinessToPr(root: string, ref: string): Promise<'ready' | 'closed' | 'unchanged' | 'unresolved'>;
15
26
  interface AuditSummary {
16
27
  audited: string;
@@ -1 +1 @@
1
- {"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/core/git-pr/pr.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,gBAAgB,EAAe,UAAU,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAY9F,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,m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MAAM,GAAG,MAAM,GAAG,OAAO,CAAC,GAClD,MAAM,CAIR;AAID,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAG5D;AAcD,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,SAAS,GAAG,WAAW,GAAG,YAAY,CAAC,CAUjD;AAED;;;;+EAI+E;AAC/E,wBAAsB,eAAe,CACnC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,OAAO,GAAG,SAAS,GAAG,OAAO,CAAC,CASxC;AA0BD,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,OAAO,GAAG,QAAQ,GAAG,WAAW,GAAG,YAAY,CAAC,CAgB1D;AAKD,UAAU,YAAY;IACpB,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,OAAO,CAAC;CAChB;AAED,wBAAgB,wBAAwB,CAAC,MAAM,EAAE,gBAAgB,EAAE,EAAE,KAAK,CAAC,EAAE,YAAY,GAAG,MAAM,CAkBjG;AA2CD,wBAAsB,0BAA0B,CAC9C,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,OAAO,CAAC,SAAS,GAAG,SAAS,GAAG,WAAW,GAAG,YAAY,CAAC,CA4C7D"}
@@ -1,2 +1,5 @@
1
1
  export declare const COMMIT_SCOPES: Set<string>;
2
+ /** Plan tags are free-form and may not be valid scopes; the first tag that IS one
3
+ * wins, else `fallback` — the one rule every commit-scope/PR-title site shares. */
4
+ export declare function resolvePrimaryScope(tags: string[] | undefined, fallback: string): string;
2
5
  //# sourceMappingURL=scopes.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../src/core/git-pr/scopes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,aAmBxB,CAAC"}
1
+ {"version":3,"file":"scopes.d.ts","sourceRoot":"","sources":["../../../src/core/git-pr/scopes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,aAmBxB,CAAC;AAEH;mFACmF;AACnF,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,SAAS,EAAE,QAAQ,EAAE,MAAM,GAAG,MAAM,CAExF"}
@@ -5,5 +5,6 @@ export * from './git-pr';
5
5
  export * from './scaffold';
6
6
  export * from './serialize';
7
7
  export * from './roadmap';
8
+ export * from './trail';
8
9
  export * from '../types/index';
9
10
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC"}
@@ -1,86 +1,100 @@
1
- import { A as e, C as r, a as n, P as t, S as i, b as o, c as d, d as m, e as l, f as p, g as E, h as P, i as c, j as S, k as T, l as y, m as h, n as I, o as f, p as g, q as F, r as N, s as C, t as A, u as _, v, w as L, x as u, y as O, z as R, B as D, D as G, E as b, F as U, G as B, H as M, I as Q, J as j, K as k, L as w, M as x, N as z, O as K, Q as W, R as H, T as J, U as V, V as Y, W as q, X, Y as Z, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ra, a2 as na, a3 as ta, a4 as ia, a5 as oa, a6 as da, a7 as ma, a8 as la, a9 as pa, aa as Ea, ab as Pa, ac as ca, ad as Sa, ae as Ta, af as ya, ag as ha, ah as Ia, ai as fa, aj as ga } from "../chunks/roadmap.C0AQ6pUX.js";
2
- import { AGENT_IDS as Na, AGENT_LABELS as Ca, AGENT_OPTIONS as Aa, DEFAULT_AGENTS as _a, PLAN_KINDS as va, PLAN_STATUSES as La, coerceAgentConfig as ua } from "../types/index.js";
1
+ import { A as e, C as r, a as t, b as n, P as i, S as o, c as d, d as l, e as m, f as p, g as E, h as c, i as P, j as S, k as T, l as y, m as I, n as v, o as f, p as h, q as C, r as F, s as R, t as N, u as _, v as g, w as A, x as u, y as L, z as O, B as D, D as b, E as G, F as M, G as k, H as U, I as j, J as w, K as x, L as B, M as Q, N as z, O as H, Q as K, R as V, T as W, U as q, V as J, W as Y, X, Y as Z, Z as $, _ as aa, $ as sa, a0 as ea, a1 as ra, a2 as ta, a3 as na, a4 as ia, a5 as oa, a6 as da, a7 as la, a8 as ma, a9 as pa, aa as Ea, ab as ca, ac as Pa, ad as Sa, ae as Ta, af as ya, ag as Ia, ah as va, ai as fa, aj as ha, ak as Ca, al as Fa, am as Ra, an as Na, ao as _a, ap as ga, aq as Aa, ar as ua, as as La, at as Oa, au as Da, av as ba, aw as Ga, ax as Ma } from "../chunks/scaffold.B_3sY6Rg.js";
2
+ import { AGENT_IDS as Ua, AGENT_LABELS as ja, AGENT_OPTIONS as wa, DEFAULT_AGENTS as xa, PLAN_KINDS as Ba, PLAN_STATUSES as Qa, coerceAgentConfig as za } from "../types/index.js";
3
3
  export {
4
- Na as AGENT_IDS,
5
- Ca as AGENT_LABELS,
6
- Aa as AGENT_OPTIONS,
4
+ Ua as AGENT_IDS,
5
+ ja as AGENT_LABELS,
6
+ wa as AGENT_OPTIONS,
7
7
  e as AlreadyInitializedError,
8
8
  r as CLAUDE_SETTINGS_JSON,
9
- n as COMMIT_SCOPES,
10
- _a as DEFAULT_AGENTS,
11
- t as PAPER_CAMP_VERSION,
12
- va as PLAN_KINDS,
13
- La as PLAN_STATUSES,
14
- i as SKILL_MD_CONTENT,
15
- o as SUGGESTION_ENTRY_RE,
16
- d as agentConfigSchema,
17
- m as appendBlock,
18
- l as applyEnvEntries,
19
- p as archiveEntityFile,
20
- E as assignEntityId,
21
- P as assignPlanId,
22
- c as branchName,
23
- S as clearPrCache,
24
- ua as coerceAgentConfig,
25
- T as computePlanContentHash,
26
- y as dateString,
27
- h as decisionFieldsSchema,
28
- I as derivePrLabels,
29
- f as ensureSubject,
9
+ t as COMMIT_SCOPES,
10
+ n as COMMIT_SHA_RE,
11
+ xa as DEFAULT_AGENTS,
12
+ i as PAPER_CAMP_VERSION,
13
+ Ba as PLAN_KINDS,
14
+ Qa as PLAN_STATUSES,
15
+ o as SKILL_MD_CONTENT,
16
+ d as SUGGESTION_ENTRY_RE,
17
+ l as addRoadmapCandidate,
18
+ m as addRoadmapItem,
19
+ p as agentConfigSchema,
20
+ E as appendBlock,
21
+ c as applyEnvEntries,
22
+ P as archiveEntityFile,
23
+ S as assignEntityId,
24
+ T as assignPlanId,
25
+ y as branchName,
26
+ I as clearPrCache,
27
+ za as coerceAgentConfig,
28
+ v as computePlanContentHash,
29
+ f as computePrTitle,
30
+ h as dateString,
31
+ C as decisionFieldsSchema,
32
+ F as derivePrLabels,
33
+ R as deriveRoadmapEvents,
34
+ N as deriveSubjectVocabulary,
35
+ _ as ensureSubject,
30
36
  g as entityFrontmatterSchema,
31
- F as entityToIdea,
32
- N as entityToPlan,
33
- C as fetchUnresolvedThreads,
34
- A as findArchivableIdeas,
35
- _ as findConsistencyIssues,
36
- v as formatDecisionEntry,
37
- L as formatEntitiesIndex,
38
- u as formatEntityFile,
39
- O as formatIdeaFile,
40
- R as formatOpenQuestionEntry,
41
- D as formatOpenQuestions,
42
- G as formatPlanEntry,
43
- b as formatPlanFile,
44
- U as formatPlans,
45
- B as formatProgressEntry,
46
- M as ideaFrontmatterSchema,
47
- Q as initProject,
48
- j as openQuestionFieldsSchema,
49
- k as paperCampConfigSchema,
50
- w as parseDecisions,
51
- x as parseEntityFile,
52
- z as parseEnv,
53
- K as parseFrontmatter,
54
- W as parseIdeaFile,
55
- H as parseIdeas,
56
- J as parseOpenQuestions,
57
- V as parsePlanFile,
58
- Y as parsePlans,
59
- q as parseProgress,
60
- X as parseRawEntries,
61
- Z as parseRoadmap,
62
- $ as parseSuggestions,
63
- aa as parseTaskLog,
64
- sa as planFieldsSchema,
65
- ea as planFrontmatterSchema,
66
- ra as prependProgressItem,
67
- na as readEntities,
68
- ta as readEntitiesWithDerivedStatus,
69
- ia as readNoteEntries,
70
- oa as readWorkEntries,
71
- da as removeRoadmapItem,
72
- ma as removeSuggestionLine,
73
- la as renderConsistencyComment,
74
- pa as renderPlanPhasesIntoBody,
75
- Ea as replyToReviewThread,
76
- Pa as resolvePlanForPrRef,
77
- ca as resolvePrsByEntity,
78
- Sa as resolveReviewThread,
79
- Ta as serializeFrontmatter,
80
- ya as syncConsistencyCommentToPr,
81
- ha as syncPlanPhasesToPr,
82
- Ia as syncPrLabelsToPr,
83
- fa as syncPrReadinessToPr,
84
- ga as todayDateString
37
+ A as entityToIdea,
38
+ u as entityToPlan,
39
+ L as fetchUnresolvedThreads,
40
+ O as findArchivableIdeas,
41
+ D as findConsistencyIssues,
42
+ b as findReleaseLineForId,
43
+ G as formatDecisionEntry,
44
+ M as formatDecisions,
45
+ k as formatEntitiesIndex,
46
+ U as formatEntityFile,
47
+ j as formatIdeaFile,
48
+ w as formatOpenQuestionEntry,
49
+ x as formatOpenQuestions,
50
+ B as formatPlanEntry,
51
+ Q as formatPlanFile,
52
+ z as formatPlans,
53
+ H as ideaFrontmatterSchema,
54
+ K as initProject,
55
+ V as isConventionalPrTitle,
56
+ W as linkRoadmapItem,
57
+ q as openQuestionFieldsSchema,
58
+ J as paperCampConfigSchema,
59
+ Y as parseDecisions,
60
+ X as parseEntityFile,
61
+ Z as parseEnv,
62
+ $ as parseFrontmatter,
63
+ aa as parseIdeaFile,
64
+ sa as parseIdeas,
65
+ ea as parseOpenQuestions,
66
+ ra as parsePlanFile,
67
+ ta as parsePlans,
68
+ na as parseRawEntries,
69
+ ia as parseRoadmap,
70
+ oa as parseSuggestions,
71
+ da as parseTaskLog,
72
+ la as planFieldsSchema,
73
+ ma as planFrontmatterSchema,
74
+ pa as readEntities,
75
+ Ea as readEntitiesWithDerivedStatus,
76
+ ca as readNoteEntries,
77
+ Pa as readWorkEntries,
78
+ Sa as removeRoadmapItem,
79
+ Ta as removeSuggestionLine,
80
+ ya as renderConsistencyComment,
81
+ Ia as renderPlanPhasesIntoBody,
82
+ va as replyToReviewThread,
83
+ fa as resolveEntityIdForCommit,
84
+ ha as resolveEntityTrail,
85
+ Ca as resolveIdFromCommitMessage,
86
+ Fa as resolvePlanForPrRef,
87
+ Ra as resolvePrimaryScope,
88
+ Na as resolvePrsByEntity,
89
+ _a as resolveReviewThread,
90
+ ga as resolveRoadmap,
91
+ Aa as serializeFrontmatter,
92
+ ua as syncConsistencyCommentToPr,
93
+ La as syncPlanPhasesToPr,
94
+ Oa as syncPrLabelsToPr,
95
+ Da as syncPrReadinessToPr,
96
+ ba as syncPrTitleToPr,
97
+ Ga as todayDateString,
98
+ Ma as validatePrTitle
85
99
  };
86
100
  //# sourceMappingURL=index.js.map
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { ConsistencyIssue, DecisionEntry, EntityEntry, IdeaEntry, OpenQuestionEntry, ParseResult, ParseWarning, PlanEntry, ProgressEntry, RawEntry, SuggestionEntry, TaskLogEntry } from '../../types/index';
2
+ import { ConsistencyIssue, DecisionEntry, EntityEntry, IdeaEntry, OpenQuestionEntry, ParseResult, ParseWarning, PlanEntry, RawEntry, SuggestionEntry, TaskLogEntry } from '../../types/index';
3
3
  export declare function parseRawEntries(markdown: string): RawEntry[];
4
4
  export declare function parsePlans(markdown: string): ParseResult<PlanEntry>;
5
5
  export declare function parseDecisions(markdown: string): ParseResult<DecisionEntry>;
@@ -13,8 +13,7 @@ export declare function parseEntityFile(content: string): ParseResult<EntityEntr
13
13
  export declare function parsePlanFile(content: string): ParseResult<PlanEntry>;
14
14
  export declare function parseIdeaFile(content: string): ParseResult<IdeaEntry>;
15
15
  export declare function parseIdeas(markdown: string): IdeaEntry[];
16
- export declare function findConsistencyIssues(decisions: DecisionEntry[], openQuestions: OpenQuestionEntry[], plans: PlanEntry[]): ConsistencyIssue[];
17
- export declare function parseProgress(markdown: string): ProgressEntry[];
16
+ export declare function findConsistencyIssues(decisions: DecisionEntry[], openQuestions: OpenQuestionEntry[], plans: PlanEntry[], subjectVocabulary?: string[]): ConsistencyIssue[];
18
17
  /** tasks.log is JSON Lines — one TaskLogEntry per line. Skip lines that fail to parse rather than fail the whole read (a truncated last line from a crash shouldn't hide the rest). */
19
18
  export declare function parseTaskLog(raw: string): TaskLogEntry[];
20
19
  export declare const SUGGESTION_ENTRY_RE: RegExp;
@@ -1 +1 @@
1
- {"version":3,"file":"parser.d.ts","sourceRoot":"","sources":["../../../src/core/parse/parser.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAC7B,OAAO,KAAK,EACV,gBAAgB,EAChB,aAAa,EACb,WAAW,EACX,SAAS,EAGT,iBAAiB,EACjB,WAAW,EACX,YAAY,EAEZ,SAAS,EACT,aAAa,EACb,QAAQ,EACR,eAAe,EACf,YAAY,EACb,MAAM,mBAAmB,CAAC;AAqD3B,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CAoC5D;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,CAqCnE;AAED,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,aAAa,CAAC,CAwB3E;AAED,wBAAgB,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E,MAAM,GAAG,YAAY,EAAE,CAUxD;AAED,eAAO,MAAM,mBAAmB,QAAkD,CAAC;AAGnF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,CASpE"}
@@ -41,6 +41,7 @@ export declare const decisionFieldsSchema: z.ZodObject<{
41
41
  superseded: "superseded";
42
42
  }>;
43
43
  'superseded-by': z.ZodOptional<z.ZodString>;
44
+ tags: z.ZodOptional<z.ZodString>;
44
45
  }, z.core.$strip>;
45
46
  export declare const openQuestionFieldsSchema: z.ZodObject<{
46
47
  status: z.ZodEnum<{
@@ -1 +1 @@
1
- {"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../../src/core/parse/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;;;kBAO7B,CAAC;AAEF,eAAO,MAAM,UAAU,aAAiE,CAAC;AAIzF,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;iBAS3B,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;iBAI/B,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;iBAKnC,CAAC;AAKH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAmBhC,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAgB9B,CAAC;AAIL,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAwDhC,CAAC;AAEL,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBhC,CAAC;AAEH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAC1D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CA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ts","sourceRoot":"","sources":["../../src/core/readers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,cAAc,EACd,WAAW,EACX,SAAS,EAET,WAAW,EAEX,SAAS,EAET,MAAM,EACP,MAAM,gBAAgB,CAAC;AA6BxB,wBAAsB,YAAY,CAChC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,GAAG;IAAE,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CA8B3D;AAKD,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,EAAE,CAAC,EAAE,MAAM,EAAE,gBAAgB,UAAQ,GAAG,SAAS,CAsB7F;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,GAAG,SAAS,CAYtD;AAWD,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAOnC;AAED,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAQvF;AAID,wBAAsB,mBAAmB,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAMrF;AAED,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAMvF"}
@@ -1,4 +1,10 @@
1
- import { Roadmap } from '../types/index';
1
+ import { PlanEntry, ResolvedRoadmap, Roadmap, RoadmapEvent, TaskLogEntry } from '../types/index';
2
2
  export declare function parseRoadmap(markdown: string): Roadmap;
3
3
  export declare function removeRoadmapItem(markdown: string, horizonTitle: string, itemName: string, candidateName?: string): string;
4
+ export declare function addRoadmapItem(markdown: string, horizonTitle: string, name: string, description: string): string;
5
+ export declare function addRoadmapCandidate(markdown: string, horizonTitle: string, itemName: string, candidateName: string): string;
6
+ export declare function linkRoadmapItem(markdown: string, horizonTitle: string, itemName: string, entityId: string): string;
7
+ export declare function deriveSubjectVocabulary(roadmap: Roadmap): string[];
8
+ export declare function resolveRoadmap(roadmap: Roadmap, entities: PlanEntry[], taskLog?: TaskLogEntry[], changelog?: string): ResolvedRoadmap;
9
+ export declare function deriveRoadmapEvents(roadmap: Roadmap, entities: PlanEntry[], taskLog: TaskLogEntry[]): RoadmapEvent[];
4
10
  //# 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,EAAE,OAAO,EAAe,MAAM,gBAAgB,CAAC;AAuC3D,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CA2BtD;AAMD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,CAsCR"}
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;AAkDxB,wBAAgB,YAAY,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAoCtD;AAMD,wBAAgB,iBAAiB,CAC/B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,aAAa,CAAC,EAAE,MAAM,GACrB,MAAM,CAsCR;AAKD,wBAAgB,cAAc,CAC5B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,MAAM,EACZ,WAAW,EAAE,MAAM,GAClB,MAAM,CAgBR;AAID,wBAAgB,mBAAmB,CACjC,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,aAAa,EAAE,MAAM,GACpB,MAAM,CA2BR;AAID,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,MAAM,EAChB,YAAY,EAAE,MAAM,EACpB,QAAQ,EAAE,MAAM,EAChB,QAAQ,EAAE,MAAM,GACf,MAAM,CA2BR;AAKD,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,OAAO,GAAG,MAAM,EAAE,CAKlE;AAED,wBAAgB,cAAc,CAC5B,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,SAAS,EAAE,EACrB,OAAO,GAAE,YAAY,EAAO,EAC5B,SAAS,SAAK,GACb,eAAe,CAsCjB;AAKD,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,OAAO,EAChB,QAAQ,EAAE,SAAS,EAAE,EACrB,OAAO,EAAE,YAAY,EAAE,GACtB,YAAY,EAAE,CAyChB"}
@@ -0,0 +1,8 @@
1
+ export interface RunOrderFileEntry {
2
+ id: string;
3
+ title: string;
4
+ }
5
+ /** First line runs first; blank lines are skipped so trailing newlines round-trip cleanly. */
6
+ export declare function parseRunOrderFile(content: string): RunOrderFileEntry[];
7
+ export declare function formatRunOrderFile(entries: RunOrderFileEntry[]): string;
8
+ //# sourceMappingURL=run-order-file.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-order-file.d.ts","sourceRoot":"","sources":["../../src/core/run-order-file.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;CACf;AAID,8FAA8F;AAC9F,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAatE;AAED,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,iBAAiB,EAAE,GAAG,MAAM,CAGvE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=run-order-file.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"run-order-file.test.d.ts","sourceRoot":"","sources":["../../src/core/run-order-file.test.ts"],"names":[],"mappings":""}
@@ -1,23 +1,42 @@
1
+ import { RunOrderFileEntry } from './run-order-file';
1
2
  /** Classification input — status must be the DERIVED status (what the UI shows),
2
3
  * not the stored frontmatter override, or merged-PR `done` entries get ordered. */
3
4
  export interface RunOrderEntry {
4
5
  id: string;
6
+ title: string;
5
7
  status?: string;
6
- order?: number;
7
8
  created: string;
8
9
  }
9
10
  export declare function isRunOrdered(entry: Pick<RunOrderEntry, 'status'>): boolean;
10
- export interface RunOrderChange {
11
+ /**
12
+ * Builds the classified `RunOrderEntry[]` input to `normalizeRunOrder` from the raw
13
+ * corpus (`entries`) and its derived-status counterpart (`work`), applying an optional
14
+ * per-id status override on top (e.g. an in-flight PATCH not yet persisted to disk).
15
+ * Shared by every write path so classification only lives in one place.
16
+ */
17
+ export declare function classifyRunOrderEntries(entries: {
11
18
  id: string;
12
- order: number | undefined;
13
- }
19
+ title: string;
20
+ created: string;
21
+ status?: string;
22
+ kind?: 'note';
23
+ }[], work: {
24
+ id?: string;
25
+ status?: string;
26
+ }[], statusOverride?: (id: string) => {
27
+ value: string | undefined;
28
+ } | undefined): RunOrderEntry[];
14
29
  /**
15
- * Enforces the run-order invariant: every planned/in-progress/review entry
16
- * carries a contiguous 1..N order, everything else carries none. `moved`
17
- * places that entry at the requested slot (clamped) before renumbering.
30
+ * Reconciles a persisted run-order list against the live corpus: drops ids the list
31
+ * carries that are gone from the corpus or no longer in an ordered status, appends
32
+ * ordered entities missing from the list (entities added out of band, oldest first),
33
+ * refreshes titles from the corpus, and applies an optional single-slot move. Returns
34
+ * the full list, ready to write in one shot instead of N frontmatter changes.
18
35
  */
19
- export declare function normalizeRunOrder(entries: RunOrderEntry[], moved?: {
36
+ export declare function normalizeRunOrder(list: RunOrderFileEntry[], entries: RunOrderEntry[], moved?: {
20
37
  id: string;
21
38
  order: number;
22
- }): RunOrderChange[];
39
+ }): RunOrderFileEntry[];
40
+ /** Two reconciled lists are equal when they carry the same ids in the same order. */
41
+ export declare function sameRunOrder(a: RunOrderFileEntry[], b: RunOrderFileEntry[]): boolean;
23
42
  //# sourceMappingURL=run-order.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"run-order.d.ts","sourceRoot":"","sources":["../../src/core/run-order.ts"],"names":[],"mappings":"AAEA;oFACoF;AACpF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,OAAO,CAE1E;AAED,MAAM,WAAW,cAAc;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,aAAa,EAAE,EACxB,KAAK,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC,cAAc,EAAE,CA2BlB"}
1
+ {"version":3,"file":"run-order.d.ts","sourceRoot":"","sources":["../../src/core/run-order.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D;oFACoF;AACpF,MAAM,WAAW,aAAa;IAC5B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,wBAAgB,YAAY,CAAC,KAAK,EAAE,IAAI,CAAC,aAAa,EAAE,QAAQ,CAAC,GAAG,OAAO,CAE1E;AAED;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,OAAO,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EACzF,IAAI,EAAE;IAAE,EAAE,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,EACxC,cAAc,CAAC,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK;IAAE,KAAK,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,GAAG,SAAS,GACzE,aAAa,EAAE,CAejB;AAED;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAC/B,IAAI,EAAE,iBAAiB,EAAE,EACzB,OAAO,EAAE,aAAa,EAAE,EACxB,KAAK,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACpC,iBAAiB,EAAE,CA6BrB;AAED,qFAAqF;AACrF,wBAAgB,YAAY,CAAC,CAAC,EAAE,iBAAiB,EAAE,EAAE,CAAC,EAAE,iBAAiB,EAAE,GAAG,OAAO,CAEpF"}
@@ -1 +1 @@
1
- {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/scaffold.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,SAAS,EAAE,MAAM;CAG9B;AAaD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAwCxF"}
1
+ {"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/scaffold.ts"],"names":[],"mappings":"AAOA,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,SAAS,EAAE,MAAM;CAG9B;AAaD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,wBAAsB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAmDxF"}
@@ -1,3 +1,3 @@
1
- export declare const SKILL_MD_CONTENT = "---\nname: paper-camp\ndescription: Work inside a project that has a papercamp/ folder \u2014 its unified idea entities (each holding its plan as a section), decisions log, open questions, and progress log. Use this whenever the working directory contains papercamp/ (papercamp/ideas/, papercamp/decisions.md, papercamp/open-questions.md, papercamp/progress.md), and especially before starting, continuing, or completing any plan phase, drafting an idea, logging a decision, or answering \"what are we working on / what's next\".\n---\n\n# Paper Camp\n\nPaper Camp is this project's planning methodology: plans, ideas, decisions, and\nopen questions live as markdown files under `papercamp/`, and an append-only\n`papercamp/progress.md` is the changelog. This skill tells you how to read that\nstate before acting and how to keep it honest as you work.\n\nIf a `papercamp` MCP server is connected in this session, prefer its tools\n(list/get plans, update phase, append progress, etc.) over raw file access \u2014\nthey enforce the same guards (id allocation, branch conflicts) that the file\ngrammar below assumes. Everything in this skill still applies conceptually;\nonly the mechanism changes.\n\n## Before doing any work\n\nRead, in this order, whatever exists:\n\n1. `papercamp/ideas/index.md` \u2014 every entity's id/title/type/status/tags, at\n a glance. Ideas and plans are one thing: an entity is an *idea* for its\n whole life, and its plan is a `### Phases` section inside the same file.\n2. The specific entity file at `papercamp/ideas/<ID>.md` (e.g. `IDEA-43.md`)\n for the work you're about to do \u2014 YAML frontmatter (`id`, `title`,\n `type`, `status`, `tags`, ...) plus prose rationale, then optionally a\n `### Phases` list of `- [ ]`/`- [x]` checkboxes with an indented\n description under each. Done/dropped entities live in\n `papercamp/ideas/archive/`.\n3. `papercamp/decisions.md` \u2014 settled calls that constrain your approach.\n Don't re-litigate a logged decision without flagging it to the user first.\n4. `papercamp/open-questions.md` \u2014 unresolved questions that might block or\n redirect the work you're about to start.\n5. The last handful of entries in `papercamp/progress.md` for recent context\n on what just happened.\n\nSkip files that don't exist yet (a fresh project may have empty logs).\n\n## While working\n\n- Work one plan phase at a time unless told otherwise \u2014 don't cascade into\n later phases just because they look quick.\n- If a phase's boundary or intent is unclear, ask before continuing.\n- Prose in plans and ideas is more current than your memory of past\n conversations. If they conflict, the files win \u2014 say so and resync.\n\n## Keep the project current as you go\n\n- **Plan phases**: when you finish a phase, flip its checkbox from `- [ ]` to\n `- [x]` in the plan's frontmatter file. Change only that line \u2014 don't touch\n other phases or prose.\n- **Plan status**: keep the plan's `status:` frontmatter honest\n (`planned` / `in-progress` / `review` / `done`). When every phase is\n checked, set status to `review` \u2014 never `done`. `done` is a human-only\n promotion after review; an agent finishing the last phase does not close\n the plan itself.\n- **Progress log**: add one bullet describing what you did under today's\n `## YYYY-MM-DD` heading at the top of `papercamp/progress.md` (newest day\n first; create the heading if today's isn't there yet). Be specific enough\n that a future read of the log alone explains what changed and why, without\n needing to re-read the diff.\n- **Decisions / open questions**: if you settle something ambiguous while\n working, log it in `papercamp/decisions.md`; if you surface a question you\n can't resolve yourself, add it to `papercamp/open-questions.md` rather than\n guessing silently.\n\n## What this skill deliberately does not do\n\nIt does not maintain a separate \"current focus\" file \u2014 that's derived at\nsession start from live plan/progress data, not hand-maintained here. It does\nnot define the file formats in full; treat the existing files under\n`papercamp/` as the grammar reference (mirror their structure exactly rather\nthan inventing a new shape).\n";
1
+ export declare const SKILL_MD_CONTENT = "---\nname: paper-camp\ndescription: Work inside a project that has a papercamp/ folder \u2014 its unified idea entities (each holding its plan as a section), decisions log, and open questions. Use this whenever the working directory contains papercamp/ (papercamp/ideas/, papercamp/decisions.md, papercamp/open-questions.md), and especially before starting, continuing, or completing any plan phase, drafting an idea, logging a decision, or answering \"what are we working on / what's next\".\n---\n\n# Paper Camp\n\nPaper Camp is this project's planning methodology: plans, ideas, decisions, and\nopen questions live as markdown files under `papercamp/`. This skill tells you\nhow to read that state before acting and how to keep it honest as you work.\n\nIf a `papercamp` MCP server is connected in this session, prefer its tools\n(list/get plans, update phase, etc.) over raw file access \u2014\nthey enforce the same guards (id allocation, branch conflicts) that the file\ngrammar below assumes. Everything in this skill still applies conceptually;\nonly the mechanism changes.\n\n## Before doing any work\n\nRead, in this order, whatever exists:\n\n1. `papercamp/ideas/index.md` \u2014 every entity's id/title/type/status/tags, at\n a glance. Ideas and plans are one thing: an entity is an *idea* for its\n whole life, and its plan is a `### Phases` section inside the same file.\n2. The specific entity file at `papercamp/ideas/<ID>.md` (e.g. `IDEA-43.md`)\n for the work you're about to do \u2014 YAML frontmatter (`id`, `title`,\n `type`, `status`, `tags`, ...) plus prose rationale, then optionally a\n `### Phases` list of `- [ ]`/`- [x]` checkboxes with an indented\n description under each. Done/dropped entities live in\n `papercamp/ideas/archive/`.\n3. `papercamp/decisions.md` \u2014 settled calls that constrain your approach.\n Don't re-litigate a logged decision without flagging it to the user first.\n4. `papercamp/open-questions.md` \u2014 unresolved questions that might block or\n redirect the work you're about to start.\n\nSkip files that don't exist yet (a fresh project may have empty logs).\n\n## While working\n\n- Work one plan phase at a time unless told otherwise \u2014 don't cascade into\n later phases just because they look quick.\n- If a phase's boundary or intent is unclear, ask before continuing.\n- Prose in plans and ideas is more current than your memory of past\n conversations. If they conflict, the files win \u2014 say so and resync.\n\n## Keep the project current as you go\n\n- **Plan phases**: when you finish a phase, flip its checkbox from `- [ ]` to\n `- [x]` in the plan's frontmatter file. Change only that line \u2014 don't touch\n other phases or prose.\n- **Plan status**: keep the plan's `status:` frontmatter honest\n (`planned` / `in-progress` / `review` / `done`). When every phase is\n checked, set status to `review` \u2014 never `done`. `done` is a human-only\n promotion after review; an agent finishing the last phase does not close\n the plan itself.\n- **Decisions / open questions**: if you settle something ambiguous while\n working, log it in `papercamp/decisions.md`; if you surface a question you\n can't resolve yourself, add it to `papercamp/open-questions.md` rather than\n guessing silently.\n\n## What this skill deliberately does not do\n\nIt does not maintain a separate \"current focus\" file \u2014 that's derived at\nsession start from live plan data, not hand-maintained here. It does\nnot define the file formats in full; treat the existing files under\n`papercamp/` as the grammar reference (mirror their structure exactly rather\nthan inventing a new shape).\n";
2
2
  export declare const CLAUDE_SETTINGS_JSON: string;
3
3
  //# sourceMappingURL=templates.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/templates.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,0pIA2E5B,CAAC;AAIF,eAAO,MAAM,oBAAoB,QAmB5B,CAAC"}
1
+ {"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/templates.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,kmHAmE5B,CAAC;AAIF,eAAO,MAAM,oBAAoB,QAa5B,CAAC"}
@@ -1,4 +1,4 @@
1
- import { LogEntry, PhaseItem } from '../types/index';
1
+ import { LogEntry, MarginNote, PhaseItem } from '../types/index';
2
2
  declare const SUB_HEADING_RE: RegExp;
3
3
  /** A section's parse and format sides share the same heading, so this is the one
4
4
  * table both `core/parse/parser.ts` and `core/serialize/serializer.ts` drive from.
@@ -14,5 +14,7 @@ export interface SectionDef<T> {
14
14
  export declare const PHASES_SECTION: SectionDef<PhaseItem>;
15
15
  export declare const LOG_SECTION: SectionDef<LogEntry>;
16
16
  export declare const CLARIFICATIONS_SECTION: SectionDef<LogEntry>;
17
+ export declare const NOTES_SECTION: SectionDef<MarginNote>;
18
+ export declare const REVIEW_SECTION: SectionDef<LogEntry>;
17
19
  export { SUB_HEADING_RE };
18
20
  //# sourceMappingURL=sections.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../src/core/sections.ts"],"names":[],"mappings":"AA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,MAAM,sBAAsB,EAAE,UAAU,CAAC,QAAQ,CAIvD,CAAC;AAEF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,UAAU,CAIhD,CAAC;AAEF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,QAAQ,CAI/C,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
@@ -1,4 +1,4 @@
1
- import { EntityEntry, LogEntry, PhaseItem, SuggestionEntry } from '../../types/index';
1
+ import { EntityEntry, LogEntry, MarginNote, PhaseItem, SuggestionEntry } from '../../types/index';
2
2
  export declare function todayDateString(): string;
3
3
  export declare function assignPlanId(configPath: string, kind: string): Promise<string | undefined>;
4
4
  interface NewPlanInput {
@@ -15,6 +15,7 @@ interface NewPlanInput {
15
15
  phases?: PhaseItem[];
16
16
  log?: LogEntry[];
17
17
  clarifications?: LogEntry[];
18
+ notes?: MarginNote[];
18
19
  }
19
20
  export declare function formatPlanEntry(input: NewPlanInput): string;
20
21
  interface NewDecisionInput {
@@ -22,6 +23,7 @@ interface NewDecisionInput {
22
23
  date: string;
23
24
  status: string;
24
25
  supersededBy?: string;
26
+ tags?: string[];
25
27
  body?: string;
26
28
  }
27
29
  export declare function formatDecisionEntry(input: NewDecisionInput): string;
@@ -34,9 +36,8 @@ interface NewOpenQuestionInput {
34
36
  body?: string;
35
37
  }
36
38
  export declare function formatOpenQuestionEntry(input: NewOpenQuestionInput): string;
37
- export declare function formatProgressEntry(date: string, items: string[]): string;
38
- export declare function prependProgressItem(progressPath: string, item: string): Promise<void>;
39
39
  export declare function formatPlans(entries: NewPlanInput[]): string;
40
+ export declare function formatDecisions(entries: NewDecisionInput[]): string;
40
41
  export declare function formatOpenQuestions(entries: NewOpenQuestionInput[]): string;
41
42
  export declare function appendBlock(filePath: string, block: string): Promise<void>;
42
43
  export declare function serializeFrontmatter(data: Record<string, unknown>): string;
@@ -56,6 +57,7 @@ interface NewPlanFileInput {
56
57
  phases?: PhaseItem[];
57
58
  log?: LogEntry[];
58
59
  clarifications?: LogEntry[];
60
+ notes?: MarginNote[];
59
61
  }
60
62
  export declare function formatPlanFile(input: NewPlanFileInput): string;
61
63
  interface NewEntityFileInput {
@@ -76,6 +78,8 @@ interface NewEntityFileInput {
76
78
  phases?: PhaseItem[];
77
79
  log?: LogEntry[];
78
80
  clarifications?: LogEntry[];
81
+ notes?: MarginNote[];
82
+ review?: LogEntry[];
79
83
  }
80
84
  export declare function formatEntityFile(input: NewEntityFileInput): string;
81
85
  export declare function assignEntityId(configPath: string): Promise<string | undefined>;
@@ -1 +1 @@
1
- {"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../src/core/serialize/serializer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAE,QAAQ,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAI3F,wBAAgB,eAAe,IAAI,MAAM,CAExC;AAMD,wBAAsB,YAAY,CAAC,UAAU,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAmBhG;AAED,UAAU,YAAY;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC;IACjB,cAAc,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC7B;AAED,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,GAAG,MAAM,CAq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} from '../types/index';
2
+ export declare function findReleaseLineForId(changelog: string, id: string): string | undefined;
3
+ export declare function resolveIdFromCommitMessage(message: string): string | null;
4
+ export declare const COMMIT_SHA_RE: RegExp;
5
+ export declare function resolveEntityIdForCommit(root: string, sha: string): Promise<string | null>;
6
+ export declare function resolveEntityTrail(root: string, id: string): Promise<ProvenanceTrail>;
7
+ //# sourceMappingURL=trail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trail.d.ts","sourceRoot":"","sources":["../../src/core/trail.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AActD,wBAAgB,oBAAoB,CAAC,SAAS,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKtF;AAKD,wBAAgB,0BAA0B,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAMzE;AAaD,eAAO,MAAM,aAAa,QAAsB,CAAC;AA+CjD,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAUhG;AAED,wBAAsB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAgC3F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=trail.test.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"trail.test.d.ts","sourceRoot":"","sources":["../../src/core/trail.test.ts"],"names":[],"mappings":""}