@dendelion/paper-camp 0.19.0 → 0.20.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-3pzg7Iyw.js +2 -0
- package/dist/app/assets/index-3pzg7Iyw.js.map +1 -0
- package/dist/app/assets/{index-B6251tL6.js → index-BHmWkgBW.js} +2 -2
- package/dist/app/assets/{index-B6251tL6.js.map → index-BHmWkgBW.js.map} +1 -1
- package/dist/app/assets/{index-DLkUANCR.js → index-BuzzfADD.js} +2 -2
- package/dist/app/assets/{index-DLkUANCR.js.map → index-BuzzfADD.js.map} +1 -1
- package/dist/app/assets/{index-D5j1njQR.js → index-CkLeljbk.js} +2 -2
- package/dist/app/assets/{index-D5j1njQR.js.map → index-CkLeljbk.js.map} +1 -1
- package/dist/app/assets/{index-nuVVSVma.js → index-DMDqfoCe.js} +2 -2
- package/dist/app/assets/index-DMDqfoCe.js.map +1 -0
- package/dist/app/assets/index-D_Lo8ptS.js +6 -0
- package/dist/app/assets/index-D_Lo8ptS.js.map +1 -0
- package/dist/app/assets/{index-BNoowtMI.js → index-DfekHwwU.js} +3 -3
- package/dist/app/assets/{index-BNoowtMI.js.map → index-DfekHwwU.js.map} +1 -1
- package/dist/app/assets/{index-D2iIIpI1.js → index-Gi97Lmex.js} +3 -3
- package/dist/app/assets/{index-D2iIIpI1.js.map → index-Gi97Lmex.js.map} +1 -1
- package/dist/app/assets/main-Bm0W4ucz.css +1 -0
- package/dist/app/assets/main-DP_okYxh.js +215 -0
- package/dist/app/assets/main-DP_okYxh.js.map +1 -0
- package/dist/app/assets/sidebar-section-B-A20bg9.js +2 -0
- package/dist/app/assets/sidebar-section-B-A20bg9.js.map +1 -0
- package/dist/app/index.html +2 -2
- package/dist/app/toolbar.js +1071 -1049
- package/dist/app/toolbar.js.map +1 -1
- package/dist/chunks/{phase-progress.CwSKAAZ-.js → phase-progress.DPAZ01Gg.js} +1720 -1594
- package/dist/chunks/phase-progress.DPAZ01Gg.js.map +1 -0
- package/dist/cli/index.js +6633 -6345
- package/dist/cli/index.js.map +1 -1
- package/dist/core/corpus-format.d.ts +11 -0
- package/dist/core/corpus-format.d.ts.map +1 -0
- package/dist/core/corpus-format.test.d.ts +2 -0
- package/dist/core/corpus-format.test.d.ts.map +1 -0
- package/dist/core/doctor/checks/metadata.d.ts.map +1 -1
- package/dist/core/doctor/rules.d.ts +6 -1
- package/dist/core/doctor/rules.d.ts.map +1 -1
- package/dist/core/git-pr/pr-lookup.d.ts +6 -1
- package/dist/core/git-pr/pr-lookup.d.ts.map +1 -1
- package/dist/core/git-pr/pr.d.ts +10 -0
- package/dist/core/git-pr/pr.d.ts.map +1 -1
- package/dist/core/index.js +54 -53
- package/dist/core/issues.d.ts +51 -0
- package/dist/core/issues.d.ts.map +1 -0
- package/dist/core/issues.test.d.ts +2 -0
- package/dist/core/issues.test.d.ts.map +1 -0
- package/dist/core/parse/parser.d.ts.map +1 -1
- package/dist/core/parse/schemas.d.ts +8 -4
- package/dist/core/parse/schemas.d.ts.map +1 -1
- package/dist/core/readers.d.ts +7 -2
- package/dist/core/readers.d.ts.map +1 -1
- package/dist/core/run-order.d.ts +1 -1
- package/dist/core/run-order.d.ts.map +1 -1
- package/dist/core/scaffold/scaffold.d.ts +0 -1
- package/dist/core/scaffold/scaffold.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.map +1 -1
- package/dist/core/serialize/serializer.d.ts +4 -2
- package/dist/core/serialize/serializer.d.ts.map +1 -1
- package/dist/core/status/status.d.ts +8 -4
- package/dist/core/status/status.d.ts.map +1 -1
- package/dist/types/index.d.ts +65 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/app/assets/index-nuVVSVma.js.map +0 -1
- package/dist/app/assets/index-s6CVH54G.js +0 -6
- package/dist/app/assets/index-s6CVH54G.js.map +0 -1
- package/dist/app/assets/main--EStESJz.js +0 -217
- package/dist/app/assets/main--EStESJz.js.map +0 -1
- package/dist/app/assets/main-CAJuC1Pz.css +0 -1
- package/dist/app/assets/sidebar-section-DTU8Naqm.js +0 -2
- package/dist/app/assets/sidebar-section-DTU8Naqm.js.map +0 -1
- package/dist/chunks/phase-progress.CwSKAAZ-.js.map +0 -1
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const CORPUS_FORMAT_VERSION = 1;
|
|
2
|
+
export declare class CorpusTooNewError extends Error {
|
|
3
|
+
constructor(corpusVersion: number);
|
|
4
|
+
}
|
|
5
|
+
export declare function assertCorpusWritable(configPath: string): Promise<void>;
|
|
6
|
+
export interface CorpusFormatBump {
|
|
7
|
+
from: number | null;
|
|
8
|
+
to: number;
|
|
9
|
+
}
|
|
10
|
+
export declare function bumpCorpusFormat(configPath: string): Promise<CorpusFormatBump | null>;
|
|
11
|
+
//# sourceMappingURL=corpus-format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corpus-format.d.ts","sourceRoot":"","sources":["../../src/core/corpus-format.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,qBAAa,iBAAkB,SAAQ,KAAK;gBAC9B,aAAa,EAAE,MAAM;CAMlC;AAyBD,wBAAsB,oBAAoB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAK5E;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,EAAE,EAAE,MAAM,CAAC;CACZ;AAMD,wBAAsB,gBAAgB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,gBAAgB,GAAG,IAAI,CAAC,CAQ3F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corpus-format.test.d.ts","sourceRoot":"","sources":["../../src/core/corpus-format.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../src/core/doctor/checks/metadata.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"metadata.d.ts","sourceRoot":"","sources":["../../../../src/core/doctor/checks/metadata.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,WAAW,EAAoB,MAAM,WAAW,CAAC;AA0J/D,eAAO,MAAM,cAAc,EAAE,WAAW,EAMvC,CAAC"}
|
|
@@ -10,7 +10,7 @@ export declare const DOCTOR_RULES: readonly [{
|
|
|
10
10
|
readonly id: "frontmatter-schema";
|
|
11
11
|
readonly category: "metadata";
|
|
12
12
|
readonly severity: "error";
|
|
13
|
-
readonly summary: "Frontmatter fails entityFrontmatterSchema — missing required field,
|
|
13
|
+
readonly summary: "Frontmatter fails entityFrontmatterSchema — missing required field, bad enum, malformed date, or a violated note/status refinement.";
|
|
14
14
|
}, {
|
|
15
15
|
readonly id: "filename-id-mismatch";
|
|
16
16
|
readonly category: "metadata";
|
|
@@ -26,6 +26,11 @@ export declare const DOCTOR_RULES: readonly [{
|
|
|
26
26
|
readonly category: "metadata";
|
|
27
27
|
readonly severity: "error";
|
|
28
28
|
readonly summary: "An entity id is greater than or equal to config.nextId.idea, so the next mint collides with an existing file.";
|
|
29
|
+
}, {
|
|
30
|
+
readonly id: "corpus-format-too-new";
|
|
31
|
+
readonly category: "metadata";
|
|
32
|
+
readonly severity: "error";
|
|
33
|
+
readonly summary: "config.version is newer than the format this paper-camp understands; reads stay tolerant but writes are refused until it upgrades.";
|
|
29
34
|
}, {
|
|
30
35
|
readonly id: "phases-list-split";
|
|
31
36
|
readonly category: "structural";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/core/doctor/rules.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../../../src/core/doctor/rules.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GAAG,OAAO,GAAG,SAAS,CAAC;AAEjD,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,YAAY,CAAC;AAEvD,MAAM,WAAW,UAAU;IACzB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,cAAc,CAAC;IACzB,QAAQ,EAAE,cAAc,CAAC;IACzB,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4DiB,CAAC;AAE3C,MAAM,MAAM,YAAY,GAAG,CAAC,OAAO,YAAY,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC;AAE/D,eAAO,MAAM,kBAAkB,EAAE,MAAM,CAAC,YAAY,EAAE,UAAU,CAE3B,CAAC"}
|
|
@@ -44,5 +44,10 @@ export declare function resolvePrsByEntity(root: string, ttlMs?: number): Promis
|
|
|
44
44
|
/** Reads the timestamp of the last successful GitHub fetch without triggering one
|
|
45
45
|
* — falls back to the on-disk map if nothing's cached in memory yet. */
|
|
46
46
|
export declare function getPrMapFetchedAt(root: string): Promise<number | null>;
|
|
47
|
-
|
|
47
|
+
/** Zeroing rather than removing the persisted `fetchedAt` (both in memory and on
|
|
48
|
+
* disk) means the next read for `root` fails its TTL check and fetches live,
|
|
49
|
+
* while the map itself survives as the fallback if that fetch errors. Called
|
|
50
|
+
* with no `root`, it drops the whole in-memory cache instead — used by tests to
|
|
51
|
+
* simulate a process restart, where the persisted file must stay untouched. */
|
|
52
|
+
export declare function clearPrCache(root?: string): Promise<void>;
|
|
48
53
|
//# sourceMappingURL=pr-lookup.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-lookup.d.ts","sourceRoot":"","sources":["../../../src/core/git-pr/pr-lookup.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,EAAkB,YAAY,EAAE,MAAM,mBAAmB,CAAC;AAuF9E,wBAAgB,wBAAwB,CACtC,IAAI,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAC/B,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAChC,MAAM,GAAG,IAAI,CAKf;AA2BD;;;2BAG2B;AAC3B,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,CAEvE;AAED,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG,IAAI,CAK9F;AA+HD,sEAAsE;AACtE,wBAAsB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,EAAE,CAAC,CAkB/F;AAgBD,+GAA+G;AAC/G,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAK1F;AAED,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,GACX,OAAO,CAAC,OAAO,CAAC,CAKlB;AAED,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM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,GACpB,OAAO,CAAC,gBAAgB,CAAC,CAO3B;AAgDD;wEACwE;AACxE,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,MAAM,EACZ,KAAK,SAAkB,GACtB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC,CA2B1C;AAED;wEACwE;AACxE,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAU5E;AAED;;;;+EAI+E;AAC/E,wBAAsB,YAAY,CAAC,IAAI,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAkB/D"}
|
package/dist/core/git-pr/pr.d.ts
CHANGED
|
@@ -26,6 +26,16 @@ export declare function syncPrTitleToPr(root: string, ref: string): Promise<'upd
|
|
|
26
26
|
* resolves to a plan, the title must match that plan's title exactly — a
|
|
27
27
|
* conventional but unrelated title (stale or hand-edited) is still invalid. */
|
|
28
28
|
export declare function validatePrTitle(root: string, ref: string): Promise<'valid' | 'invalid' | 'no-pr'>;
|
|
29
|
+
/** Squash is the only merge method the repo allows (see `merge-policy.ts`), and the
|
|
30
|
+
* squash commit title is configured to inherit the PR title verbatim — the same
|
|
31
|
+
* title `validatePrTitle` already requires to match the idea exactly. No merge
|
|
32
|
+
* message/title flag is passed here for that reason. */
|
|
33
|
+
export declare function squashMergePr(root: string, ref: string): Promise<{
|
|
34
|
+
ok: true;
|
|
35
|
+
} | {
|
|
36
|
+
ok: false;
|
|
37
|
+
message: string;
|
|
38
|
+
}>;
|
|
29
39
|
export declare function syncPrReadinessToPr(root: string, ref: string): Promise<'ready' | 'closed' | 'unchanged' | 'unresolved'>;
|
|
30
40
|
interface AuditSummary {
|
|
31
41
|
audited: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/core/git-pr/pr.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,gB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B,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;AAED;;;wDAGwD;AACxD,wBAAgB,aAAa,CAC3B,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,GACV,OAAO,CAAC;IAAE,EAAE,EAAE,IAAI,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,CAsBxD;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,CAoC7D"}
|
package/dist/core/index.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import { A as s, C as r, a as t, b as n, D as o, c as i, d, e as l, M as c, P as m, f as S, g as
|
|
2
|
-
import { AGENT_IDS as Ee, AGENT_LABELS as
|
|
1
|
+
import { A as s, C as r, a as t, b as n, D as o, c as i, d, e as l, M as c, P as m, f as S, g as P, S as E, h as T, i as p, j as R, k as h, l as C, m as v, n as y, o as I, p as _, q as F, r as g, s as A, t as f, u as N, v as L, w as O, x as D, y as u, z as M, B as k, E as b, F as G, G as w, H as U, I as H, J as B, K, L as x, N as j, O as X, Q as q, R as z, T as Q, U as V, V as W, W as Y, X as J, Y as Z, Z as $, _ as aa, $ as ea, a0 as sa, a1 as ra, a2 as ta, a3 as na, a4 as oa, a5 as ia, a6 as da, a7 as la, a8 as ca, a9 as ma, aa as Sa, ab as Pa, ac as Ea, ad as Ta, ae as pa, af as Ra, ag as ha, ah as Ca, ai as va, aj as ya, ak as Ia, al as _a, am as Fa, an as ga, ao as Aa, ap as fa, aq as Na, ar as La, as as Oa, at as Da, au as ua, av as Ma, aw as ka, ax as ba, ay as Ga, az as wa, aA as Ua, aB as Ha, aC as Ba, aD as Ka, aE as xa, aF as ja, aG as Xa, aH as qa, aI as za, aJ as Qa, aK as Va, aL as Wa, aM as Ya, aN as Ja, aO as Za, aP as $a, aQ as ae, aR as ee, aS as se, aT as re, aU as te, aV as ne, aW as oe, aX as ie, aY as de, aZ as le, a_ as ce, a$ as me, b0 as Se } from "../chunks/phase-progress.DPAZ01Gg.js";
|
|
2
|
+
import { AGENT_IDS as Ee, AGENT_LABELS as Te, AGENT_OPTIONS as pe, DEFAULT_AGENTS as Re, PLAN_KINDS as he, PLAN_STATUSES as Ce, TOOLBAR_SEGMENT_IDS as ve, agentConfigsEqual as ye, coerceAgentConfig as Ie } from "../types/index.js";
|
|
3
3
|
export {
|
|
4
4
|
Ee as AGENT_IDS,
|
|
5
|
-
|
|
6
|
-
|
|
5
|
+
Te as AGENT_LABELS,
|
|
6
|
+
pe as AGENT_OPTIONS,
|
|
7
7
|
s as AlreadyInitializedError,
|
|
8
8
|
r as CLAUDE_SETTINGS_JSON,
|
|
9
9
|
t as COMMIT_SCOPES,
|
|
10
10
|
n as COMMIT_SHA_RE,
|
|
11
|
-
|
|
11
|
+
Re as DEFAULT_AGENTS,
|
|
12
12
|
o as DOCTOR_CHECKS,
|
|
13
13
|
i as DOCTOR_FIXERS,
|
|
14
14
|
d as DOCTOR_RULES,
|
|
@@ -16,25 +16,25 @@ export {
|
|
|
16
16
|
c as MAX_TITLE_LENGTH,
|
|
17
17
|
m as PAPER_CAMP_VERSION,
|
|
18
18
|
S as PHASE_MAX_FRACTION,
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
P as PHASE_STALL_MS,
|
|
20
|
+
he as PLAN_KINDS,
|
|
21
21
|
Ce as PLAN_STATUSES,
|
|
22
|
-
|
|
22
|
+
E as SKILL_MD_CONTENT,
|
|
23
23
|
T as SUGGESTION_ENTRY_RE,
|
|
24
|
-
|
|
24
|
+
ve as TOOLBAR_SEGMENT_IDS,
|
|
25
25
|
p as addRoadmapCandidate,
|
|
26
26
|
R as addRoadmapItem,
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
27
|
+
h as advanceAnchor,
|
|
28
|
+
C as agentConfigSchema,
|
|
29
|
+
ye as agentConfigsEqual,
|
|
30
30
|
v as agentThreadMessage,
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
y as applyEnvEntries,
|
|
32
|
+
I as archiveEntityFile,
|
|
33
|
+
_ as assignEntityId,
|
|
34
34
|
F as assignPlanId,
|
|
35
35
|
g as branchName,
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
A as classifyAnchor,
|
|
37
|
+
f as clearPrCache,
|
|
38
38
|
Ie as coerceAgentConfig,
|
|
39
39
|
N as collectDoctorContext,
|
|
40
40
|
L as collectParkedQuestions,
|
|
@@ -48,20 +48,20 @@ export {
|
|
|
48
48
|
w as describeFindings,
|
|
49
49
|
U as deskCheckSchema,
|
|
50
50
|
H as deskCiSchema,
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
X as
|
|
51
|
+
B as deskConfigSchema,
|
|
52
|
+
K as deskServiceSchema,
|
|
53
|
+
x as dispatchPrReview,
|
|
54
|
+
j as ensureSubject,
|
|
55
|
+
X as entityFrontmatterKnownKeys,
|
|
56
|
+
q as entityFrontmatterSchema,
|
|
56
57
|
z as entityToIdea,
|
|
57
58
|
Q as entityToPlan,
|
|
58
59
|
V as fetchPrDiff,
|
|
59
60
|
W as fetchUnresolvedThreads,
|
|
60
61
|
Y as findArchivableIdeas,
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
$ as formatEntitiesIndex,
|
|
62
|
+
J as findConsistencyIssues,
|
|
63
|
+
Z as findReleaseLineForId,
|
|
64
|
+
$ as findingSeverity,
|
|
65
65
|
aa as formatEntityFile,
|
|
66
66
|
ea as formatIdeaFile,
|
|
67
67
|
sa as formatPlanEntry,
|
|
@@ -75,21 +75,21 @@ export {
|
|
|
75
75
|
ca as isPhaseStalled,
|
|
76
76
|
ma as linkRoadmapItem,
|
|
77
77
|
Sa as medianSegmentMs,
|
|
78
|
-
|
|
79
|
-
|
|
78
|
+
Pa as paperCampConfigSchema,
|
|
79
|
+
Ea as parseEntityFile,
|
|
80
80
|
Ta as parseEnv,
|
|
81
81
|
pa as parseFrontmatter,
|
|
82
82
|
Ra as parseIdeaFile,
|
|
83
|
-
|
|
84
|
-
|
|
83
|
+
ha as parseIdeas,
|
|
84
|
+
Ca as parseNotificationLog,
|
|
85
85
|
va as parsePlanFile,
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
86
|
+
ya as parsePlans,
|
|
87
|
+
Ia as parseRawEntries,
|
|
88
|
+
_a as parseRoadmap,
|
|
89
89
|
Fa as parseSuggestions,
|
|
90
90
|
ga as parseTaskLog,
|
|
91
|
-
|
|
92
|
-
|
|
91
|
+
Aa as phaseFraction,
|
|
92
|
+
fa as planDoctorFixes,
|
|
93
93
|
Na as planFieldsSchema,
|
|
94
94
|
La as planFrontmatterSchema,
|
|
95
95
|
Oa as readEntities,
|
|
@@ -102,17 +102,17 @@ export {
|
|
|
102
102
|
wa as removeSuggestionLine,
|
|
103
103
|
Ua as renderConsistencyComment,
|
|
104
104
|
Ha as renderPlanPhasesIntoBody,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
105
|
+
Ba as replyToReviewThread,
|
|
106
|
+
Ka as reportFindings,
|
|
107
|
+
xa as resolveEntityIdForCommit,
|
|
108
|
+
ja as resolveEntityTrail,
|
|
109
109
|
Xa as resolveIdFromCommitMessage,
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
110
|
+
qa as resolveIdeasForRelease,
|
|
111
|
+
za as resolvePlanForPrRef,
|
|
112
|
+
Qa as resolvePrimaryScope,
|
|
113
|
+
Va as resolvePrsByEntity,
|
|
114
|
+
Wa as resolveReleaseNotes,
|
|
115
|
+
Ya as resolveReleaseRanges,
|
|
116
116
|
Ja as resolveReviewThread,
|
|
117
117
|
Za as resolveRoadmap,
|
|
118
118
|
$a as runDoctor,
|
|
@@ -120,13 +120,14 @@ export {
|
|
|
120
120
|
ee as scoutReviewFooter,
|
|
121
121
|
se as serializeFrontmatter,
|
|
122
122
|
re as sortFindings,
|
|
123
|
-
te as
|
|
124
|
-
ne as
|
|
125
|
-
oe as
|
|
126
|
-
ie as
|
|
127
|
-
de as
|
|
128
|
-
le as
|
|
129
|
-
ce as
|
|
130
|
-
me as
|
|
123
|
+
te as squashMergePr,
|
|
124
|
+
ne as storedNotificationSchema,
|
|
125
|
+
oe as syncConsistencyCommentToPr,
|
|
126
|
+
ie as syncPlanPhasesToPr,
|
|
127
|
+
de as syncPrLabelsToPr,
|
|
128
|
+
le as syncPrReadinessToPr,
|
|
129
|
+
ce as syncPrTitleToPr,
|
|
130
|
+
me as todayDateString,
|
|
131
|
+
Se as validatePrTitle
|
|
131
132
|
};
|
|
132
133
|
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { DeskCheckState, EntityStatus, GitSyncFailure, Issue, PhaseItem, PrInfo, TaskLogEntry, ThreadMessage } from '../types/index';
|
|
2
|
+
/** A failed agent run (`outcome: 'error'` in tasks.log), keyed by the plan it ran
|
|
3
|
+
* against so a repeat failure on the same plan continues one issue. Runs with no
|
|
4
|
+
* `planId` (e.g. a batch task) key off their own task id instead. */
|
|
5
|
+
export declare function collectAgentRunIssues(taskLog: TaskLogEntry[]): Issue[];
|
|
6
|
+
/** A red project check (Quality/Tests/Consistency — Docs keeps its own browse flow
|
|
7
|
+
* and is excluded, same carve-out as `buildCheckFixes`), keyed by check name. */
|
|
8
|
+
export declare function collectCheckIssues(checks: DeskCheckState[]): Issue[];
|
|
9
|
+
/** A PR review that requested changes, keyed by PR number + head sha so a fresh
|
|
10
|
+
* push that gets re-reviewed continues the same issue rather than a new one. */
|
|
11
|
+
export declare function collectPrReviewIssues(entities: {
|
|
12
|
+
id: string;
|
|
13
|
+
title: string;
|
|
14
|
+
pr?: PrInfo;
|
|
15
|
+
}[]): Issue[];
|
|
16
|
+
/** A git rebase/sync failure on the currently checked-out branch, keyed by branch +
|
|
17
|
+
* the ref it failed to reconcile against so a repeat failure of the same rebase
|
|
18
|
+
* continues one issue. */
|
|
19
|
+
export declare function collectSyncIssues(failure: GitSyncFailure | undefined, branch: string, entity?: {
|
|
20
|
+
id: string;
|
|
21
|
+
title: string;
|
|
22
|
+
}): Issue[];
|
|
23
|
+
/** Reconciles freshly-collected issues (every one currently detected as failing, so
|
|
24
|
+
* always 'open') against the existing set, keyed by `id`. A repeat failure of the
|
|
25
|
+
* same thing replaces that issue's title/reason/output in place, preserving its
|
|
26
|
+
* position and its thread. An existing issue absent from `fresh` has stopped
|
|
27
|
+
* failing, so it closes — unless it was promoted to a fix entity that hasn't
|
|
28
|
+
* shipped yet (`fixEntityStatus` reports its status), which keeps it open until
|
|
29
|
+
* that entity reaches 'done'. Closure is derived here, never a mark-read button. */
|
|
30
|
+
export declare function reconcileIssues(existing: Issue[], fresh: Issue[], fixEntityStatus?: (fixId: string) => EntityStatus | undefined): Issue[];
|
|
31
|
+
/** An entity Promote (IDEA-192 phase 6) may have created or amended — a spawned
|
|
32
|
+
* fix/idea entity stamps `issueSource`; an open parent gets a `source: 'issue'`
|
|
33
|
+
* item appended to its inline Fixes list instead. */
|
|
34
|
+
type PromotionTarget = {
|
|
35
|
+
id?: string;
|
|
36
|
+
status?: EntityStatus;
|
|
37
|
+
issueSource?: string;
|
|
38
|
+
fixes?: PhaseItem[];
|
|
39
|
+
};
|
|
40
|
+
/** Matches every issue against the corpus for a prior Promote (IDEA-192 phase 6),
|
|
41
|
+
* re-derived from disk on every read since issues carry no store of their own —
|
|
42
|
+
* the promotion survives a reload because git holds it, not a stored issue. Once
|
|
43
|
+
* matched, an issue whose target has shipped (`status: 'done'`) closes, even if
|
|
44
|
+
* its original source is still detected as failing. */
|
|
45
|
+
export declare function applyPromotions(issues: Issue[], entities: PromotionTarget[]): Issue[];
|
|
46
|
+
/** "Fix it here" (IDEA-192) launches an `issue-fix` task carrying the issue's id;
|
|
47
|
+
* this reconstructs that issue's thread from every tasks.log entry carrying it,
|
|
48
|
+
* oldest first, so a repeat fix attempt reads as a continuation, not a fresh mystery. */
|
|
49
|
+
export declare function issueThreadFromTaskLog(issue: Issue, taskLog: TaskLogEntry[]): ThreadMessage[];
|
|
50
|
+
export {};
|
|
51
|
+
//# sourceMappingURL=issues.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issues.d.ts","sourceRoot":"","sources":["../../src/core/issues.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,cAAc,EACd,YAAY,EACZ,cAAc,EACd,KAAK,EACL,SAAS,EACT,MAAM,EACN,YAAY,EACZ,aAAa,EACd,MAAM,gBAAgB,CAAC;AAKxB;;qEAEqE;AACrE,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,YAAY,EAAE,GAAG,KAAK,EAAE,CAkBtE;AAED;iFACiF;AACjF,wBAAgB,kBAAkB,CAAC,MAAM,E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"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,WAAW,EACX,SAAS,EAIT,WAAW,EACX,YAAY,EAEZ,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACb,MAAM,mBAAmB,CAAC;
|
|
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,WAAW,EACX,SAAS,EAIT,WAAW,EACX,YAAY,EAEZ,SAAS,EACT,QAAQ,EACR,kBAAkB,EAClB,eAAe,EACf,YAAY,EACb,MAAM,mBAAmB,CAAC;AA+E3B,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,QAAQ,EAAE,CAoC5D;AAED,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,CAuCnE;AAID,wBAAgB,gBAAgB,CAAC,CAAC,EAChC,OAAO,EAAE,MAAM,EACf,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,GACnB;IAAE,IAAI,EAAE,CAAC,GAAG,IAAI,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,EAAE,YAAY,EAAE,CAAA;CAAE,CAyC5D;AAYD,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,WAAW,CAAC,CA6DzE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,CAoCrE;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW,CAAC,SAAS,CAAC,CAuBrE;AAMD,wBAAgB,UAAU,CAAC,QAAQ,EAAE,MAAM,GAAG,SAAS,EAAE,CAYxD;AAED,eAAO,MAAM,gBAAgB,KAAK,CAAC;AAEnC,wBAAgB,qBAAqB,CACnC,KAAK,EAAE,SAAS,EAAE,EAClB,iBAAiB,GAAE,MAAM,EAAO,GAC/B,gBAAgB,EAAE,CAsCpB;AAED,uLAAuL;AACvL,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,YAAY,EAAE,CAUxD;AAED,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAWtE;AAED,eAAO,MAAM,mBAAmB,QAAkD,CAAC;AAGnF,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,MAAM,GAAG,eAAe,EAAE,CASpE"}
|
|
@@ -62,7 +62,7 @@ export declare const planFrontmatterSchema: z.ZodObject<{
|
|
|
62
62
|
audited: z.ZodOptional<z.ZodString>;
|
|
63
63
|
'audited-hash': z.ZodOptional<z.ZodString>;
|
|
64
64
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
65
|
-
}, z.core.$
|
|
65
|
+
}, z.core.$loose>;
|
|
66
66
|
export declare const ideaFrontmatterSchema: z.ZodObject<{
|
|
67
67
|
id: z.ZodString;
|
|
68
68
|
title: z.ZodString;
|
|
@@ -75,7 +75,8 @@ export declare const ideaFrontmatterSchema: z.ZodObject<{
|
|
|
75
75
|
dropped: "dropped";
|
|
76
76
|
open: "open";
|
|
77
77
|
}>>;
|
|
78
|
-
}, z.core.$
|
|
78
|
+
}, z.core.$loose>;
|
|
79
|
+
export declare const entityFrontmatterKnownKeys: ReadonlySet<string>;
|
|
79
80
|
export declare const entityFrontmatterSchema: z.ZodObject<{
|
|
80
81
|
id: z.ZodString;
|
|
81
82
|
title: z.ZodString;
|
|
@@ -87,6 +88,7 @@ export declare const entityFrontmatterSchema: z.ZodObject<{
|
|
|
87
88
|
refactor: "refactor";
|
|
88
89
|
}>>;
|
|
89
90
|
kind: z.ZodOptional<z.ZodEnum<{
|
|
91
|
+
fix: "fix";
|
|
90
92
|
note: "note";
|
|
91
93
|
}>>;
|
|
92
94
|
status: z.ZodOptional<z.ZodEnum<{
|
|
@@ -108,9 +110,11 @@ export declare const entityFrontmatterSchema: z.ZodObject<{
|
|
|
108
110
|
'audited-hash': z.ZodOptional<z.ZodString>;
|
|
109
111
|
released: z.ZodOptional<z.ZodString>;
|
|
110
112
|
tags: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
113
|
+
idea: z.ZodOptional<z.ZodString>;
|
|
111
114
|
subject: z.ZodOptional<z.ZodString>;
|
|
112
115
|
order: z.ZodOptional<z.ZodNumber>;
|
|
113
|
-
|
|
116
|
+
issueSource: z.ZodOptional<z.ZodString>;
|
|
117
|
+
}, z.core.$loose>;
|
|
114
118
|
export declare const deskServiceSchema: z.ZodObject<{
|
|
115
119
|
name: z.ZodString;
|
|
116
120
|
cmd: z.ZodString;
|
|
@@ -144,7 +148,7 @@ export declare const deskConfigSchema: z.ZodObject<{
|
|
|
144
148
|
}, z.core.$strip>>;
|
|
145
149
|
}, z.core.$strip>;
|
|
146
150
|
export declare const paperCampConfigSchema: z.ZodObject<{
|
|
147
|
-
version: z.
|
|
151
|
+
version: z.ZodNumber;
|
|
148
152
|
projectName: z.ZodString;
|
|
149
153
|
initializedAt: z.ZodString;
|
|
150
154
|
nextId: z.ZodOptional<z.ZodObject<{
|
|
@@ -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;AAKH,eAAO,MAAM,qBAAqB;;;;;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pE,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/core/readers.d.ts
CHANGED
|
@@ -5,7 +5,12 @@ export declare function readEntities(ideasDir: string): Promise<ParseResult<Enti
|
|
|
5
5
|
export declare function entityToPlan(e: EntityEntry, pr?: PrInfo, prLookupResolved?: boolean, hasMainActivity?: boolean): PlanEntry;
|
|
6
6
|
export declare function entityToIdea(e: EntityEntry): IdeaEntry;
|
|
7
7
|
export declare function readEntitiesWithDerivedStatus(ideasDir: string): Promise<ParseResult<EntityEntry>>;
|
|
8
|
-
export declare function readWorkEntries(ideasDir: string, ttlMs?: number): Promise<ParseResult<PlanEntry
|
|
9
|
-
|
|
8
|
+
export declare function readWorkEntries(ideasDir: string, ttlMs?: number): Promise<ParseResult<PlanEntry> & {
|
|
9
|
+
resolved: boolean;
|
|
10
|
+
}>;
|
|
11
|
+
export declare function findArchivableIdeas(ideasDir: string): Promise<{
|
|
12
|
+
entries: ArchivableIdea[];
|
|
13
|
+
resolved: boolean;
|
|
14
|
+
}>;
|
|
10
15
|
export declare function readNoteEntries(ideasDir: string): Promise<ParseResult<IdeaEntry>>;
|
|
11
16
|
//# sourceMappingURL=readers.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"readers.d.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;AAoCxB,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,CAC1B,CAAC,EAAE,WAAW,EACd,EAAE,CAAC,EAAE,MAAM,EACX,gBAAgB,UAAQ,EACxB,eAAe,UAAQ,GACtB,SAAS,
|
|
1
|
+
{"version":3,"file":"readers.d.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;AAoCxB,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,CAC1B,CAAC,EAAE,WAAW,EACd,EAAE,CAAC,EAAE,MAAM,EACX,gBAAgB,UAAQ,EACxB,eAAe,UAAQ,GACtB,SAAS,CA+BX;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,WAAW,GAAG,SAAS,CAYtD;AAeD,wBAAsB,6BAA6B,CACjD,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC,WAAW,CAAC,WAAW,CAAC,CAAC,CAOnC;AAED,wBAAsB,eAAe,CACnC,QAAQ,EAAE,MAAM,EAChB,KAAK,CAAC,EAAE,MAAM,GACb,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG;IAAE,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAYzD;AAID,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,MAAM,GACf,OAAO,CAAC;IAAE,OAAO,EAAE,cAAc,EAAE,CAAC;IAAC,QAAQ,EAAE,OAAO,CAAA;CAAE,CAAC,CAS3D;AAED,wBAAsB,eAAe,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,SAAS,CAAC,CAAC,CAMvF"}
|
package/dist/core/run-order.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-order.d.ts","sourceRoot":"","sources":["../../src/core/run-order.ts"],"names":[],"mappings":"AAAA,OAAO,KAA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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"}
|
|
@@ -4,7 +4,6 @@ export declare class AlreadyInitializedError extends Error {
|
|
|
4
4
|
}
|
|
5
5
|
export interface InitOptions {
|
|
6
6
|
projectName: string;
|
|
7
|
-
intent?: string;
|
|
8
7
|
}
|
|
9
8
|
export declare function initProject(targetDir: string, options: InitOptions): Promise<void>;
|
|
10
9
|
//# sourceMappingURL=scaffold.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/scaffold.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"scaffold.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/scaffold.ts"],"names":[],"mappings":"AAQA,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAE1C,qBAAa,uBAAwB,SAAQ,KAAK;gBACpC,SAAS,EAAE,MAAM;CAG9B;AAaD,MAAM,WAAW,WAAW;IAC1B,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,wBAAsB,WAAW,CAAC,SAAS,EAAE,MAAM,EAAE,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CA4CxF"}
|
|
@@ -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), with decisions and open questions logged as notes on the idea they bind. Use this whenever the working directory contains papercamp/ (papercamp/ideas/), 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 and ideas are one\nthing, a unified entity file under `papercamp/ideas/`, with decisions and\nopen questions logged as notes bound to the idea they concern. This skill\ntells you how to read that state before acting and how to keep it honest as\nyou 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
|
|
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), with decisions and open questions logged as notes on the idea they bind. Use this whenever the working directory contains papercamp/ (papercamp/ideas/), 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 and ideas are one\nthing, a unified entity file under `papercamp/ideas/`, with decisions and\nopen questions logged as notes bound to the idea they concern. This skill\ntells you how to read that state before acting and how to keep it honest as\nyou 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/` \u2014 one file per entity, named by id. Ideas and plans are\n one thing: an entity is an *idea* for its whole life, and its plan is a\n `### 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/`.\n Its notes carry any decision or open question bound to it \u2014 settled calls\n you shouldn't re-litigate without flagging it to the user first, and\n unresolved questions that might block or redirect the work you're about\n 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 as a decision note on the idea it bounds; if you surface a\n question you can't resolve yourself, add it as a question note on that idea\n rather than 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,
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../../src/core/scaffold/templates.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,gBAAgB,smHAqE5B,CAAC;AAIF,eAAO,MAAM,oBAAoB,QAa5B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../src/core/sections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EAGV,SAAS,EACT,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,cAAc,QAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"sections.d.ts","sourceRoot":"","sources":["../../src/core/sections.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EACV,QAAQ,EACR,UAAU,EAGV,SAAS,EACT,aAAa,EAEd,MAAM,gBAAgB,CAAC;AAGxB,QAAA,MAAM,cAAc,QAAe,CAAC;AAyJpC;;;;;4EAK4E;AAC5E,MAAM,WAAW,UAAU,CAAC,CAAC;IAC3B,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,CAAC,EAAE,CAAC;IACnE,WAAW,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,MAAM,EAAE,CAAC;CACzC;AAED,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,SAAS,CAIhD,CAAC;AAEF;8EAC8E;AAC9E,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,SAAS,CAI/C,CAAC;AAEF,eAAO,MAAM,WAAW,EAAE,UAAU,CAAC,QAAQ,CAI5C,CAAC;AAEF,eAAO,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;AAoCF,eAAO,MAAM,cAAc,EAAE,UAAU,CAAC,aAAa,CAIpD,CAAC;AAEF,OAAO,EAAE,cAAc,EAAE,CAAC"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { LogEntry, MarginNote, PhaseItem, SuggestionEntry, ThreadMessage } from '../../types/index';
|
|
2
2
|
export declare function todayDateString(): string;
|
|
3
3
|
export declare function agentThreadMessage(text: string, kind?: ThreadMessage['kind']): ThreadMessage;
|
|
4
4
|
export declare function assignPlanId(configPath: string, kind: string): Promise<string | undefined>;
|
|
@@ -46,6 +46,7 @@ interface NewEntityFileInput {
|
|
|
46
46
|
type?: string;
|
|
47
47
|
kind?: string;
|
|
48
48
|
status?: string;
|
|
49
|
+
idea?: string;
|
|
49
50
|
agent?: string;
|
|
50
51
|
created: string;
|
|
51
52
|
updated?: string;
|
|
@@ -55,10 +56,12 @@ interface NewEntityFileInput {
|
|
|
55
56
|
tags?: string[];
|
|
56
57
|
subject?: string;
|
|
57
58
|
order?: number;
|
|
59
|
+
issueSource?: string;
|
|
58
60
|
body?: string;
|
|
59
61
|
phases?: PhaseItem[];
|
|
60
62
|
fixes?: PhaseItem[];
|
|
61
63
|
thread?: ThreadMessage[];
|
|
64
|
+
unknownFrontmatter?: Record<string, unknown>;
|
|
62
65
|
}
|
|
63
66
|
export declare function formatEntityFile(input: NewEntityFileInput): string;
|
|
64
67
|
export declare function assignEntityId(configPath: string): Promise<string | undefined>;
|
|
@@ -74,6 +77,5 @@ interface NewIdeaFileInput {
|
|
|
74
77
|
export declare function formatIdeaFile(input: NewIdeaFileInput): string;
|
|
75
78
|
export declare function archiveEntityFile(root: string, entityId: string): Promise<boolean>;
|
|
76
79
|
export declare function removeSuggestionLine(markdown: string, target: SuggestionEntry): string;
|
|
77
|
-
export declare function formatEntitiesIndex(entities: EntityEntry[]): string;
|
|
78
80
|
export {};
|
|
79
81
|
//# sourceMappingURL=serializer.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"serializer.d.ts","sourceRoot":"","sources":["../../../src/core/serialize/serializer.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":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MAAM,CAAC;IACd,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,aAAa,EAAE,CAAC;IAGzB,kBAAkB,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAC9C;AAED,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,kBAAkB,GAAG,MAAM,CA+BlE;AAED,wBAAsB,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAEpF;AAID,wBAAsB,aAAa,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAetF;AAED,UAAU,gBAAgB;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IAEd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,GAAG,CAAC,EAAE,QAAQ,EAAE,CAAC;CAClB;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,gBAAgB,GAAG,MAAM,CAa9D;AAED,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC,CAexF;AAID,wBAAgB,oBAAoB,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,MAAM,CAkBtF"}
|
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { EntityStatus, PhaseItem, PrInfo } from '../../types/index';
|
|
1
|
+
import { EntityKind, EntityStatus, PhaseItem, PrInfo } from '../../types/index';
|
|
2
2
|
export interface StatusDerivationInput {
|
|
3
|
-
kind?:
|
|
3
|
+
kind?: EntityKind;
|
|
4
4
|
status?: EntityStatus;
|
|
5
5
|
phases: PhaseItem[];
|
|
6
6
|
fixes?: PhaseItem[];
|
|
7
|
-
}
|
|
8
|
-
export interface ArchivabilityInput extends StatusDerivationInput {
|
|
9
7
|
archived?: boolean;
|
|
10
8
|
}
|
|
9
|
+
export type ArchivabilityInput = StatusDerivationInput;
|
|
10
|
+
export declare function isClosedEntity(entity: {
|
|
11
|
+
status?: EntityStatus;
|
|
12
|
+
archived?: boolean;
|
|
13
|
+
}): boolean;
|
|
11
14
|
export declare function deriveStatus(entity: StatusDerivationInput, pr: PrInfo | undefined, prLookupResolved: boolean, hasMainActivity?: boolean): EntityStatus | undefined;
|
|
15
|
+
export declare function isStatusFallback(entity: StatusDerivationInput, pr: PrInfo | undefined, prLookupResolved: boolean): boolean;
|
|
12
16
|
export declare function isArchivable(entity: ArchivabilityInput, pr: PrInfo | undefined): boolean;
|
|
13
17
|
//# sourceMappingURL=status.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/core/status/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"status.d.ts","sourceRoot":"","sources":["../../../src/core/status/status.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,SAAS,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAErF,MAAM,WAAW,qBAAqB;IACpC,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,SAAS,EAAE,CAAC;IACpB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,MAAM,kBAAkB,GAAG,qBAAqB,CAAC;AAOvD,wBAAgB,cAAc,CAAC,MAAM,EAAE;IAAE,MAAM,CAAC,EAAE,YAAY,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,OAAO,CAE7F;AAUD,wBAAgB,YAAY,CAC1B,MAAM,EAAE,qBAAqB,EAC7B,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,gBAAgB,EAAE,OAAO,EACzB,eAAe,UAAQ,GACtB,YAAY,GAAG,SAAS,CAsB1B;AAKD,wBAAgB,gBAAgB,CAC9B,MAAM,EAAE,qBAAqB,EAC7B,EAAE,EAAE,MAAM,GAAG,SAAS,EACtB,gBAAgB,EAAE,OAAO,GACxB,OAAO,CAMT;AAID,wBAAgB,YAAY,CAAC,MAAM,EAAE,kBAAkB,EAAE,EAAE,EAAE,MAAM,GAAG,SAAS,GAAG,OAAO,CAIxF"}
|