@dendelion/paper-camp 0.8.0 → 0.9.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 (53) hide show
  1. package/dist/app/assets/{index-DGXi8vpJ.js → index-C0wWs5ba.js} +2 -2
  2. package/dist/app/assets/index-C0wWs5ba.js.map +1 -0
  3. package/dist/app/assets/{index-CF8jC3IN.js → index-D-nmg_4I.js} +2 -2
  4. package/dist/app/assets/{index-CF8jC3IN.js.map → index-D-nmg_4I.js.map} +1 -1
  5. package/dist/app/assets/index-Djq8LvrZ.js +3 -0
  6. package/dist/app/assets/index-Djq8LvrZ.js.map +1 -0
  7. package/dist/app/assets/main-BA1w2y_E.css +1 -0
  8. package/dist/app/assets/main-DUy5DFoq.js +218 -0
  9. package/dist/app/assets/main-DUy5DFoq.js.map +1 -0
  10. package/dist/app/assets/{sidebar-section-C2j12TzE.js → sidebar-section-mXpllayv.js} +2 -2
  11. package/dist/app/assets/{sidebar-section-C2j12TzE.js.map → sidebar-section-mXpllayv.js.map} +1 -1
  12. package/dist/app/index.html +2 -2
  13. package/dist/chunks/{serializer.BfH7zTwv.js → serializer.DqcFa2e1.js} +75 -66
  14. package/dist/chunks/serializer.DqcFa2e1.js.map +1 -0
  15. package/dist/cli/index.js +6187 -6079
  16. package/dist/cli/index.js.map +1 -1
  17. package/dist/core/env.d.ts +0 -5
  18. package/dist/core/env.d.ts.map +1 -1
  19. package/dist/core/git-pr/branch.d.ts +2 -6
  20. package/dist/core/git-pr/branch.d.ts.map +1 -1
  21. package/dist/core/git-pr/pr-lookup.d.ts +3 -44
  22. package/dist/core/git-pr/pr-lookup.d.ts.map +1 -1
  23. package/dist/core/git-pr/pr.d.ts +0 -76
  24. package/dist/core/git-pr/pr.d.ts.map +1 -1
  25. package/dist/core/git-pr/scopes.d.ts +0 -6
  26. package/dist/core/git-pr/scopes.d.ts.map +1 -1
  27. package/dist/core/index.js +36 -35
  28. package/dist/core/parse/frontmatter-schemas.d.ts +0 -8
  29. package/dist/core/parse/frontmatter-schemas.d.ts.map +1 -1
  30. package/dist/core/parse/parser.d.ts +3 -31
  31. package/dist/core/parse/parser.d.ts.map +1 -1
  32. package/dist/core/parse/schemas.d.ts.map +1 -1
  33. package/dist/core/readers.d.ts +0 -27
  34. package/dist/core/readers.d.ts.map +1 -1
  35. package/dist/core/scaffold/scaffold.d.ts +0 -6
  36. package/dist/core/scaffold/scaffold.d.ts.map +1 -1
  37. package/dist/core/scaffold/templates.d.ts +0 -6
  38. package/dist/core/scaffold/templates.d.ts.map +1 -1
  39. package/dist/core/serialize/content-hash.d.ts +0 -6
  40. package/dist/core/serialize/content-hash.d.ts.map +1 -1
  41. package/dist/core/serialize/serializer.d.ts +0 -60
  42. package/dist/core/serialize/serializer.d.ts.map +1 -1
  43. package/dist/core/status/status.d.ts +0 -19
  44. package/dist/core/status/status.d.ts.map +1 -1
  45. package/dist/types/index.d.ts +12 -29
  46. package/dist/types/index.d.ts.map +1 -1
  47. package/dist/types/index.js.map +1 -1
  48. package/package.json +1 -1
  49. package/dist/app/assets/index-DGXi8vpJ.js.map +0 -1
  50. package/dist/app/assets/main-D66GnCKz.css +0 -1
  51. package/dist/app/assets/main-DJDNx4Xs.js +0 -218
  52. package/dist/app/assets/main-DJDNx4Xs.js.map +0 -1
  53. package/dist/chunks/serializer.BfH7zTwv.js.map +0 -1
@@ -1,2 +1,2 @@
1
- import{j as e,s as t}from"./main-DJDNx4Xs.js";const r=({label:s,children:n,action:a})=>e.jsxs("div",{style:{marginBottom:t[5]},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.35rem",padding:`0 ${t[3]}`},children:[e.jsx("span",{className:"text-xs",style:{fontWeight:600,letterSpacing:"0.1em",textTransform:"uppercase",opacity:.4},children:s}),a]}),n]});export{r as S};
2
- //# sourceMappingURL=sidebar-section-C2j12TzE.js.map
1
+ import{j as e,s as t}from"./main-DUy5DFoq.js";const r=({label:s,children:n,action:a})=>e.jsxs("div",{style:{marginBottom:t[5]},children:[e.jsxs("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:"0.35rem",padding:`0 ${t[3]}`},children:[e.jsx("span",{className:"text-xs",style:{fontWeight:600,letterSpacing:"0.1em",textTransform:"uppercase",opacity:.4},children:s}),a]}),n]});export{r as S};
2
+ //# sourceMappingURL=sidebar-section-mXpllayv.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"sidebar-section-C2j12TzE.js","sources":["../../../src/app/features/plans/components/sidebar-section.tsx"],"sourcesContent":["import { space } from '@/app/styles/tokens';\nimport type { ReactNode } from 'react';\n\ninterface SidebarSectionProps {\n label: string;\n children: ReactNode;\n action?: ReactNode;\n}\n\nexport const SidebarSection = ({ label, children, action }: SidebarSectionProps) => {\n return (\n <div style={{ marginBottom: space[5] }}>\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n marginBottom: '0.35rem',\n padding: `0 ${space[3]}`,\n }}\n >\n <span\n className=\"text-xs\"\n style={{\n fontWeight: 600,\n letterSpacing: '0.1em',\n textTransform: 'uppercase',\n opacity: 0.4,\n }}\n >\n {label}\n </span>\n {action}\n </div>\n {children}\n </div>\n );\n};\n"],"names":["SidebarSection","label","children","action","jsxs","space","jsx"],"mappings":"8CASO,MAAMA,EAAiB,CAAC,CAAE,MAAAC,EAAO,SAAAC,EAAU,OAAAC,KAE9CC,EAAAA,KAAC,OAAI,MAAO,CAAE,aAAcC,EAAM,CAAC,GACjC,SAAA,CAAAD,EAAAA,KAAC,MAAA,CACC,MAAO,CACL,QAAS,OACT,WAAY,SACZ,eAAgB,gBAChB,aAAc,UACd,QAAS,KAAKC,EAAM,CAAC,CAAC,EAAA,EAGxB,SAAA,CAAAC,EAAAA,IAAC,OAAA,CACC,UAAU,UACV,MAAO,CACL,WAAY,IACZ,cAAe,QACf,cAAe,YACf,QAAS,EAAA,EAGV,SAAAL,CAAA,CAAA,EAEFE,CAAA,CAAA,CAAA,EAEFD,CAAA,EACH"}
1
+ {"version":3,"file":"sidebar-section-mXpllayv.js","sources":["../../../src/app/features/plans/components/sidebar-section.tsx"],"sourcesContent":["import { space } from '@/app/styles/tokens';\nimport type { ReactNode } from 'react';\n\ninterface SidebarSectionProps {\n label: string;\n children: ReactNode;\n action?: ReactNode;\n}\n\nexport const SidebarSection = ({ label, children, action }: SidebarSectionProps) => {\n return (\n <div style={{ marginBottom: space[5] }}>\n <div\n style={{\n display: 'flex',\n alignItems: 'center',\n justifyContent: 'space-between',\n marginBottom: '0.35rem',\n padding: `0 ${space[3]}`,\n }}\n >\n <span\n className=\"text-xs\"\n style={{\n fontWeight: 600,\n letterSpacing: '0.1em',\n textTransform: 'uppercase',\n opacity: 0.4,\n }}\n >\n {label}\n </span>\n {action}\n </div>\n {children}\n </div>\n );\n};\n"],"names":["SidebarSection","label","children","action","jsxs","space","jsx"],"mappings":"8CASO,MAAMA,EAAiB,CAAC,CAAE,MAAAC,EAAO,SAAAC,EAAU,OAAAC,KAE9CC,EAAAA,KAAC,OAAI,MAAO,CAAE,aAAcC,EAAM,CAAC,GACjC,SAAA,CAAAD,EAAAA,KAAC,MAAA,CACC,MAAO,CACL,QAAS,OACT,WAAY,SACZ,eAAgB,gBAChB,aAAc,UACd,QAAS,KAAKC,EAAM,CAAC,CAAC,EAAA,EAGxB,SAAA,CAAAC,EAAAA,IAAC,OAAA,CACC,UAAU,UACV,MAAO,CACL,WAAY,IACZ,cAAe,QACf,cAAe,YACf,QAAS,EAAA,EAGV,SAAAL,CAAA,CAAA,EAEFE,CAAA,CAAA,CAAA,EAEFD,CAAA,EACH"}
@@ -13,8 +13,8 @@
13
13
  <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
14
14
  <link href="https://fonts.googleapis.com/css2?family=Caveat:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet" />
15
15
  <title>Paper Camp</title>
16
- <script type="module" crossorigin src="/assets/main-DJDNx4Xs.js"></script>
17
- <link rel="stylesheet" crossorigin href="/assets/main-D66GnCKz.css">
16
+ <script type="module" crossorigin src="/assets/main-DUy5DFoq.js"></script>
17
+ <link rel="stylesheet" crossorigin href="/assets/main-BA1w2y_E.css">
18
18
  </head>
19
19
  <body>
20
20
  <div id="root"></div>
@@ -210,9 +210,6 @@ function Nn(s) {
210
210
  "list",
211
211
  "--state",
212
212
  "all",
213
- // High cap rather than pagination: one entity maps to one PR, so this
214
- // only matters for repos with thousands of PRs. An entity whose PR falls
215
- // past the cap simply has no live signal and falls back to stored status.
216
213
  "--limit",
217
214
  "2000",
218
215
  "--json",
@@ -4821,9 +4818,8 @@ const Ke = b.preprocess(
4821
4818
  projectName: b.string(),
4822
4819
  initializedAt: b.string(),
4823
4820
  nextId: b.object({
4824
- // The unified-entity counter: all new entities mint lifetime IDEA-N ids
4825
- // from here. The per-kind counters are legacy, still present in
4826
- // pre-migration configs.
4821
+ // idea: unified-entity counter, all new entities mint lifetime IDEA-N ids from
4822
+ // here. The rest are legacy per-kind counters, still present in old configs.
4827
4823
  idea: b.number().optional(),
4828
4824
  feat: b.number().optional(),
4829
4825
  fix: b.number().optional(),
@@ -5169,10 +5165,23 @@ function Xr(s) {
5169
5165
  }
5170
5166
  return n;
5171
5167
  }
5172
- const zs = /^-\s+(\d{4}-\d{2}-\d{2}):\s+(.+?)\s+—\s+(.*)$/;
5173
5168
  function zr(s) {
5174
5169
  const e = [];
5175
5170
  for (const t of s.split(`
5171
+ `)) {
5172
+ const n = t.trim();
5173
+ if (n)
5174
+ try {
5175
+ e.push(JSON.parse(n));
5176
+ } catch {
5177
+ }
5178
+ }
5179
+ return e;
5180
+ }
5181
+ const zs = /^-\s+(\d{4}-\d{2}-\d{2}):\s+(.+?)\s+—\s+(.*)$/;
5182
+ function xr(s) {
5183
+ const e = [];
5184
+ for (const t of s.split(`
5176
5185
  `)) {
5177
5186
  const n = t.match(zs);
5178
5187
  n && e.push({ date: n[1], title: n[2].trim(), description: n[3].trim() });
@@ -5250,21 +5259,21 @@ async function en(s) {
5250
5259
  const { entries: e, warnings: t } = await Dt(s), n = await En(v(s, "..", ".."));
5251
5260
  return { entries: e, warnings: t, prs: n, resolved: n !== void 0 };
5252
5261
  }
5253
- async function xr(s) {
5262
+ async function Zr(s) {
5254
5263
  const { entries: e, warnings: t, prs: n, resolved: i } = await en(s);
5255
5264
  return { entries: e.map((o) => ({
5256
5265
  ...o,
5257
5266
  status: xs(o, n == null ? void 0 : n.get(o.id), i)
5258
5267
  })), warnings: t };
5259
5268
  }
5260
- async function Zr(s) {
5269
+ async function eo(s) {
5261
5270
  const { entries: e, warnings: t, prs: n, resolved: i } = await en(s);
5262
5271
  return {
5263
5272
  entries: e.filter((r) => r.kind !== "note").map((r) => Zs(r, n == null ? void 0 : n.get(r.id), i)),
5264
5273
  warnings: t
5265
5274
  };
5266
5275
  }
5267
- async function eo(s) {
5276
+ async function to(s) {
5268
5277
  const { entries: e, warnings: t } = await Dt(s);
5269
5278
  return {
5270
5279
  entries: e.filter((n) => n.kind === "note").map(or),
@@ -5350,7 +5359,7 @@ async function Pe(s, e) {
5350
5359
  if (o)
5351
5360
  return { id: n, view: t, entry: o };
5352
5361
  }
5353
- async function to(s, e) {
5362
+ async function so(s, e) {
5354
5363
  const t = await Pe(s, e);
5355
5364
  if (!t) return;
5356
5365
  const { id: n, entry: i } = t;
@@ -5380,7 +5389,7 @@ function dr(s, e, t) {
5380
5389
  }), i.on("close", (a) => n(a === 0)), i.on("error", () => n(!1)), (o = i.stdin) == null || o.end(t);
5381
5390
  });
5382
5391
  }
5383
- async function so(s, e) {
5392
+ async function no(s, e) {
5384
5393
  const t = await Pe(s, e);
5385
5394
  if (!(t != null && t.view)) return "unresolved";
5386
5395
  const { view: n, entry: i } = t, r = ur(n.body, i.phases);
@@ -5440,7 +5449,7 @@ function gr(s, e, t) {
5440
5449
  }), i.on("close", (o) => n(o === 0)), i.on("error", () => n(!1));
5441
5450
  });
5442
5451
  }
5443
- async function no(s, e) {
5452
+ async function io(s, e) {
5444
5453
  const t = await Pe(s, e);
5445
5454
  if (!(t != null && t.view)) return "unresolved";
5446
5455
  const { view: n, entry: i } = t, r = hr({ kind: i.type, tags: i.tags }), o = new Set((n.labels ?? []).map((d) => d.name)), a = r.filter((d) => !o.has(d));
@@ -5475,7 +5484,7 @@ function br(s, e) {
5475
5484
  }), n.on("close", (r) => t(r === 0)), n.on("error", () => t(!1));
5476
5485
  });
5477
5486
  }
5478
- async function io(s, e) {
5487
+ async function ro(s, e) {
5479
5488
  const t = await Pe(s, e);
5480
5489
  if (!(t != null && t.view)) return "unresolved";
5481
5490
  const { view: n, entry: i } = t;
@@ -5530,7 +5539,7 @@ function Er(s) {
5530
5539
  const e = s.match(/issuecomment-(\d+)/);
5531
5540
  return e ? e[1] : null;
5532
5541
  }
5533
- async function ro(s, e) {
5542
+ async function oo(s, e) {
5534
5543
  var g;
5535
5544
  const t = await Pe(s, e);
5536
5545
  if (!((g = t == null ? void 0 : t.view) != null && g.url)) return "unresolved";
@@ -5553,7 +5562,7 @@ async function ro(s, e) {
5553
5562
  }
5554
5563
  return await Sr(s, e, f) ? "created" : "unresolved";
5555
5564
  }
5556
- function oo(s, e, t) {
5565
+ function ao(s, e, t) {
5557
5566
  if (!s) return;
5558
5567
  const n = (e ?? "feat").toLowerCase(), i = t.toLowerCase().replace(/[^a-z0-9]+/g, "-").replace(/^-+|-+$/g, "");
5559
5568
  return `${n}/${s.toLowerCase()}-${i}`;
@@ -5667,7 +5676,7 @@ async function Ee(s) {
5667
5676
  }
5668
5677
  }
5669
5678
  const Or = ["progress.md", "decisions.md", "open-questions.md", "suggestions.md"];
5670
- async function ao(s, e) {
5679
+ async function lo(s, e) {
5671
5680
  const t = v(s, "papercamp"), n = v(t, "config.json");
5672
5681
  if (await Ee(n))
5673
5682
  throw new Tr(s);
@@ -5756,7 +5765,7 @@ function _r(s) {
5756
5765
  return e.join(`
5757
5766
  `).trimEnd();
5758
5767
  }
5759
- function lo(s) {
5768
+ function co(s) {
5760
5769
  const e = [`## ${s.title}`, "", `**Date:** ${s.date}`, `**Status:** ${s.status}`];
5761
5770
  return s.supersededBy && e.push(`**Superseded-by:** ${s.supersededBy}`), e.push(""), s.body && e.push(s.body), e.join(`
5762
5771
  `).trimEnd();
@@ -5771,11 +5780,11 @@ function Pr(s) {
5771
5780
  return s.resolvedBy && e.push(`**Resolved-by:** ${s.resolvedBy}`), s.blocks && e.push(`**Blocks:** ${s.blocks}`), e.push(""), s.body && e.push(s.body), e.join(`
5772
5781
  `).trimEnd();
5773
5782
  }
5774
- function co(s, e) {
5783
+ function fo(s, e) {
5775
5784
  return [`## ${s}`, ...e.map((t) => `- ${t}`)].join(`
5776
5785
  `);
5777
5786
  }
5778
- async function fo(s, e) {
5787
+ async function uo(s, e) {
5779
5788
  const t = `## ${Cr()}`;
5780
5789
  let n = "";
5781
5790
  try {
@@ -5803,19 +5812,19 @@ ${i}
5803
5812
  await W(s, r, "utf-8");
5804
5813
  }
5805
5814
  }
5806
- function uo(s) {
5815
+ function ho(s) {
5807
5816
  return s.length === 0 ? "" : `${s.map((e) => _r(e)).join(`
5808
5817
 
5809
5818
  `)}
5810
5819
  `;
5811
5820
  }
5812
- function ho(s) {
5821
+ function po(s) {
5813
5822
  return s.length === 0 ? "" : `${s.map((e) => Pr(e)).join(`
5814
5823
 
5815
5824
  `)}
5816
5825
  `;
5817
5826
  }
5818
- async function po(s, e) {
5827
+ async function mo(s, e) {
5819
5828
  await z(ss(s), { recursive: !0 });
5820
5829
  let t = "";
5821
5830
  try {
@@ -5831,12 +5840,11 @@ ${e}
5831
5840
  await W(s, i, "utf-8");
5832
5841
  }
5833
5842
  function Rt(s) {
5834
- let e = Di(s);
5835
- return e = e.trimEnd(), `---
5836
- ${e}
5843
+ return `---
5844
+ ${Di(s).trimEnd()}
5837
5845
  ---`;
5838
5846
  }
5839
- function mo(s) {
5847
+ function go(s) {
5840
5848
  const e = {
5841
5849
  id: s.id,
5842
5850
  title: s.title,
@@ -5876,7 +5884,7 @@ function mo(s) {
5876
5884
 
5877
5885
  `).trimEnd();
5878
5886
  }
5879
- function go(s) {
5887
+ function yo(s) {
5880
5888
  const e = {
5881
5889
  id: s.id,
5882
5890
  title: s.title
@@ -5913,10 +5921,10 @@ function go(s) {
5913
5921
 
5914
5922
  `).trimEnd();
5915
5923
  }
5916
- async function yo(s) {
5924
+ async function bo(s) {
5917
5925
  return Lr(s, "idea");
5918
5926
  }
5919
- function bo(s) {
5927
+ function wo(s) {
5920
5928
  const e = {
5921
5929
  id: s.id,
5922
5930
  title: s.title
@@ -5936,7 +5944,7 @@ ${s.body}` : n), s.log && s.log.length > 0) {
5936
5944
 
5937
5945
  `).trimEnd();
5938
5946
  }
5939
- async function wo(s, e) {
5947
+ async function ko(s, e) {
5940
5948
  const t = v(s, "papercamp", "ideas"), n = v(t, "archive"), i = v(t, `${e}.md`), r = v(n, `${e}.md`);
5941
5949
  await z(n, { recursive: !0 });
5942
5950
  try {
@@ -5946,7 +5954,7 @@ async function wo(s, e) {
5946
5954
  throw o;
5947
5955
  }
5948
5956
  }
5949
- function ko(s, e) {
5957
+ function So(s, e) {
5950
5958
  let t = !1;
5951
5959
  const n = s.split(`
5952
5960
  `).filter((i) => {
@@ -5960,7 +5968,7 @@ function ko(s, e) {
5960
5968
  return t ? n.join(`
5961
5969
  `) : s;
5962
5970
  }
5963
- function So(s) {
5971
+ function No(s) {
5964
5972
  return s.length === 0 ? `# Ideas
5965
5973
 
5966
5974
  No ideas yet.
@@ -5978,14 +5986,14 @@ ${[...s].sort((n, i) => {
5978
5986
  `;
5979
5987
  }
5980
5988
  export {
5981
- xr as $,
5989
+ Dt as $,
5982
5990
  Tr as A,
5983
- mo as B,
5991
+ go as B,
5984
5992
  Ir as C,
5985
- uo as D,
5986
- co as E,
5993
+ ho as D,
5994
+ fo as E,
5987
5995
  Ki as F,
5988
- ao as G,
5996
+ lo as G,
5989
5997
  Bi as H,
5990
5998
  Fi as I,
5991
5999
  Xi as J,
@@ -6001,35 +6009,36 @@ export {
6001
6009
  Hr as T,
6002
6010
  Xr as U,
6003
6011
  _t as V,
6004
- zr as W,
6005
- Ri as X,
6006
- ji as Y,
6007
- fo as Z,
6008
- Dt as _,
6012
+ xr as W,
6013
+ zr as X,
6014
+ Ri as Y,
6015
+ ji as Z,
6016
+ uo as _,
6009
6017
  lr as a,
6010
- eo as a0,
6011
- Zr as a1,
6012
- ko as a2,
6013
- kr as a3,
6014
- ur as a4,
6015
- Vr as a5,
6016
- to as a6,
6017
- En as a7,
6018
- Yr as a8,
6019
- Rt as a9,
6020
- ro as aa,
6021
- so as ab,
6018
+ Zr as a0,
6019
+ to as a1,
6020
+ eo as a2,
6021
+ So as a3,
6022
+ kr as a4,
6023
+ ur as a5,
6024
+ Vr as a6,
6025
+ so as a7,
6026
+ En as a8,
6027
+ Yr as a9,
6028
+ Rt as aa,
6029
+ oo as ab,
6022
6030
  no as ac,
6023
6031
  io as ad,
6024
- Cr as ae,
6032
+ ro as ae,
6033
+ Cr as af,
6025
6034
  zs as b,
6026
6035
  Ke as c,
6027
- po as d,
6036
+ mo as d,
6028
6037
  Fr as e,
6029
- wo as f,
6030
- yo as g,
6038
+ ko as f,
6039
+ bo as g,
6031
6040
  Lr as h,
6032
- oo as i,
6041
+ ao as i,
6033
6042
  Gr as j,
6034
6043
  ar as k,
6035
6044
  V as l,
@@ -6040,12 +6049,12 @@ export {
6040
6049
  Zs as q,
6041
6050
  Ur as r,
6042
6051
  tr as s,
6043
- lo as t,
6044
- So as u,
6045
- go as v,
6046
- bo as w,
6052
+ co as t,
6053
+ No as u,
6054
+ yo as v,
6055
+ wo as w,
6047
6056
  Pr as x,
6048
- ho as y,
6057
+ po as y,
6049
6058
  _r as z
6050
6059
  };
6051
- //# sourceMappingURL=serializer.BfH7zTwv.js.map
6060
+ //# sourceMappingURL=serializer.DqcFa2e1.js.map