@dendelion/paper-camp 0.41.0 → 0.42.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.
@@ -1,3 +1,4 @@
1
+ import { GitBranch } from '../types/index';
1
2
  export declare const COMMIT_SHA_RE: RegExp;
2
3
  export declare function runGit(root: string, args: string[]): Promise<string>;
3
4
  export declare function resolveDefaultBranch(root: string): Promise<string>;
@@ -24,5 +25,9 @@ export interface GitLogPage {
24
25
  * without needing a full repo fixture for every case. */
25
26
  export declare function parseGitLogOutput(output: string, upstream: string | null, unpushed: Set<string>): GitLogCommit[];
26
27
  export declare function resolveUpstream(root: string): Promise<string | null>;
28
+ /** One line of `git for-each-ref` in BRANCH_FORMAT. Exported for tests. */
29
+ export declare function parseBranchLine(line: string): GitBranch | null;
30
+ /** Local branches, most recently committed first. */
31
+ export declare function readBranches(root: string): Promise<GitBranch[]>;
27
32
  export declare function readFirstParentLog(root: string, skip: number, pageSize?: number): Promise<GitLogPage>;
28
33
  //# 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,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAgBnF;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;I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A0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAgBnF;AAED,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,cAAc,EAAE,OAAO,CAAC;IACxB,MAAM,EAAE,OAAO,CAAC;IAChB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,YAAY,EAAE,CAAC;IACxB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,OAAO,CAAC;CAClB;AAoCD;yDACyD;AACzD,wBAAgB,iBAAiB,CAC/B,MAAM,EAAE,MAAM,EACd,QAAQ,EAAE,MAAM,GAAG,IAAI,EACvB,QAAQ,EAAE,GAAG,CAAC,MAAM,CAAC,GACpB,YAAY,EAAE,CAqBhB;AAED,wBAAsB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAI1E;AAYD,2EAA2E;AAC3E,wBAAgB,eAAe,CAAC,IAAI,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,CAgB9D;AAED,qDAAqD;AACrD,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,SAAS,EAAE,CAAC,CAWrE;AAED,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,MAAM,EACZ,QAAQ,SAAK,GACZ,OAAO,CAAC,UAAU,CAAC,CAsBrB"}
@@ -1,4 +1,4 @@
1
- import { A as s, C as t, a as r, D as o, b as i, c as n, d, e as c, f as l, g as m, h as P, M as T, P as E, i as S, j as h, k as R, l as _, S as I, m as C, n as N, o as g, p, q as b, r as A, s as f, t as u, u as F, v, w as y, x as D, y as O, z as L, B as M, E as k, F as H, G, H as w, I as U, J as j, K, L as B, N as W, O as x, Q as q, R as Q, T as V, U as J, V as X, W as z, X as Y, Y as Z, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ta, a2 as ra, a3 as oa, a4 as ia, a5 as na, a6 as da, a7 as ca, a8 as la, a9 as ma, aa as Pa, ab as Ta, ac as Ea, ad as Sa, ae as ha, af as Ra, ag as _a, ah as Ia, ai as Ca, aj as Na, ak as ga, al as pa, am as ba, an as Aa, ao as fa, ap as ua, aq as Fa, ar as va, as as ya, at as Da, au as Oa, av as La, aw as Ma, ax as ka, ay as Ha, az as Ga, aA as wa, aB as Ua, aC as ja, aD as Ka, aE as Ba, aF as Wa, aG as xa, aH as qa, aI as Qa, aJ as Va, aK as Ja, aL as Xa, aM as za, 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 oe, aW as ie, aX as ne, aY as de, aZ as ce, a_ as le, a$ as me, b0 as Pe, b1 as Te, b2 as Ee, b3 as Se, b4 as he, b5 as Re, b6 as _e, b7 as Ie, b8 as Ce, b9 as Ne, ba as ge, bb as pe, bc as be, bd as Ae, be as fe, bf as ue, bg as Fe, bh as ve, bi as ye, bj as De, bk as Oe, bl as Le, bm as Me, bn as ke, bo as He, bp as Ge, bq as we, br as Ue, bs as je, bt as Ke, bu as Be, bv as We, bw as xe, bx as qe, by as Qe } from "../chunks/needs.CUNwDixH.js";
1
+ import { A as s, C as t, a as r, D as o, b as i, c as n, d, e as c, f as l, g as m, h as P, M as T, P as E, i as S, j as h, k as R, l as _, S as I, m as C, n as N, o as g, p, q as b, r as A, s as f, t as u, u as F, v, w as y, x as D, y as O, z as L, B as M, E as k, F as H, G, H as w, I as U, J as j, K, L as B, N as W, O as x, Q as q, R as Q, T as V, U as J, V as X, W as z, X as Y, Y as Z, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ta, a2 as ra, a3 as oa, a4 as ia, a5 as na, a6 as da, a7 as ca, a8 as la, a9 as ma, aa as Pa, ab as Ta, ac as Ea, ad as Sa, ae as ha, af as Ra, ag as _a, ah as Ia, ai as Ca, aj as Na, ak as ga, al as pa, am as ba, an as Aa, ao as fa, ap as ua, aq as Fa, ar as va, as as ya, at as Da, au as Oa, av as La, aw as Ma, ax as ka, ay as Ha, az as Ga, aA as wa, aB as Ua, aC as ja, aD as Ka, aE as Ba, aF as Wa, aG as xa, aH as qa, aI as Qa, aJ as Va, aK as Ja, aL as Xa, aM as za, 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 oe, aW as ie, aX as ne, aY as de, aZ as ce, a_ as le, a$ as me, b0 as Pe, b1 as Te, b2 as Ee, b3 as Se, b4 as he, b5 as Re, b6 as _e, b7 as Ie, b8 as Ce, b9 as Ne, ba as ge, bb as pe, bc as be, bd as Ae, be as fe, bf as ue, bg as Fe, bh as ve, bi as ye, bj as De, bk as Oe, bl as Le, bm as Me, bn as ke, bo as He, bp as Ge, bq as we, br as Ue, bs as je, bt as Ke, bu as Be, bv as We, bw as xe, bx as qe, by as Qe } from "../chunks/needs.BL7yYaO7.js";
2
2
  import { P as Je, a as Xe, c as ze, d as Ye, b as Ze, e as $e, f as as, g as es, h as ss, i as ts, j as rs, k as os, l as is, m as ns, n as ds, o as cs, p as ls, r as ms, q as Ps, s as Ts, t as Es, u as Ss, v as hs, w as Rs, x as _s } from "../chunks/daemon-state.Evil_jr0.js";
3
3
  import { AGENT_IDS as Cs, AGENT_LABELS as Ns, AGENT_OPTIONS as gs, DEFAULT_AGENTS as ps, DEFAULT_NIGHT_CONFIG as bs, DEFAULT_NOTIFICATION_KINDS as As, MACHINE_NIGHT_PATH as fs, MACHINE_PAIR_CODE_PATH as us, MACHINE_PROJECTS_PATH as Fs, MACHINE_UPDATE_PATH as vs, NIGHT_CHECK_IDS as ys, NOTIFICATION_SETTING_KINDS as Ds, PAIRING_TOKEN_HEADER as Os, PLAN_KINDS as Ls, PLAN_STATUSES as Ms, TOOLBAR_SEGMENT_IDS as ks, agentConfigsEqual as Hs, coerceAgentConfig as Gs } from "../types/index.js";
4
4
  export {