@dendelion/paper-camp 0.18.1 → 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-BHmWkgBW.js +2 -0
- package/dist/app/assets/{index-Bm61MVP8.js.map → index-BHmWkgBW.js.map} +1 -1
- package/dist/app/assets/index-BuzzfADD.js +2 -0
- package/dist/app/assets/index-BuzzfADD.js.map +1 -0
- package/dist/app/assets/index-CkLeljbk.js +2 -0
- package/dist/app/assets/index-CkLeljbk.js.map +1 -0
- package/dist/app/assets/{index-Dz77-ZQi.js → index-DMDqfoCe.js} +3 -3
- 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-NfzGv6aM.js → index-DfekHwwU.js} +3 -3
- package/dist/app/assets/{index-NfzGv6aM.js.map → index-DfekHwwU.js.map} +1 -1
- package/dist/app/assets/index-Gi97Lmex.js +4 -0
- package/dist/app/assets/{index-0_VbynEu.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 +3933 -3844
- package/dist/app/toolbar.js.map +1 -1
- package/dist/chunks/{phase-progress.BIIDRJmI.js → phase-progress.DPAZ01Gg.js} +1942 -1706
- package/dist/chunks/phase-progress.DPAZ01Gg.js.map +1 -0
- package/dist/cli/index.js +8515 -7725
- 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 +39 -2
- package/dist/core/git-pr/pr-lookup.d.ts.map +1 -1
- package/dist/core/git-pr/pr.d.ts +15 -1
- package/dist/core/git-pr/pr.d.ts.map +1 -1
- package/dist/core/index.js +108 -101
- 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 +16 -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 +116 -5
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +23 -17
- package/dist/types/index.js.map +1 -1
- package/package.json +2 -2
- package/dist/app/assets/index-0_VbynEu.js +0 -4
- package/dist/app/assets/index-Bm61MVP8.js +0 -2
- package/dist/app/assets/index-CHYyIAaz.js +0 -6
- package/dist/app/assets/index-CHYyIAaz.js.map +0 -1
- package/dist/app/assets/index-DNRXB82k.js +0 -2
- package/dist/app/assets/index-DNRXB82k.js.map +0 -1
- package/dist/app/assets/index-Dz77-ZQi.js.map +0 -1
- package/dist/app/assets/index-pnCSf_Qk.js +0 -2
- package/dist/app/assets/index-pnCSf_Qk.js.map +0 -1
- package/dist/app/assets/main-AfQrNPNu.js +0 -217
- package/dist/app/assets/main-AfQrNPNu.js.map +0 -1
- package/dist/app/assets/main-BuCfycKH.css +0 -1
- package/dist/app/assets/sidebar-section-AupYBPL3.js +0 -2
- package/dist/app/assets/sidebar-section-AupYBPL3.js.map +0 -1
- package/dist/app/assets/tokens-C3C44lLs.js +0 -2
- package/dist/app/assets/tokens-C3C44lLs.js.map +0 -1
- package/dist/chunks/phase-progress.BIIDRJmI.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"}
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { PrInfo, ReviewThread } from '../../types/index';
|
|
2
2
|
export declare function resolveEntityIdFromPrRef(body: string | null | undefined, branch: string | null | undefined): string | null;
|
|
3
|
+
/** Rendered into the GitHub review body's footer by `renderReviewGithubBody` — the
|
|
4
|
+
* one marker that ties a posted review back to the SHA the poll is waiting to
|
|
5
|
+
* observe, regardless of whether it arrived via the Scout dispatch or the
|
|
6
|
+
* direct-post fallback. */
|
|
7
|
+
export declare function scoutReviewFooter(entityId: string, sha: string): string;
|
|
3
8
|
export declare function parsePrUrl(url: string): {
|
|
4
9
|
owner: string;
|
|
5
10
|
repo: string;
|
|
@@ -10,7 +15,39 @@ export declare function fetchUnresolvedThreads(root: string, url: string): Promi
|
|
|
10
15
|
/** Best-effort: returns `false` on any failure — a failed resolve must not fail the push that triggered it. */
|
|
11
16
|
export declare function resolveReviewThread(root: string, threadId: string): Promise<boolean>;
|
|
12
17
|
export declare function replyToReviewThread(root: string, threadId: string, body: string): Promise<boolean>;
|
|
13
|
-
|
|
18
|
+
export interface PrReviewComment {
|
|
19
|
+
path: string;
|
|
20
|
+
line: number;
|
|
21
|
+
body: string;
|
|
22
|
+
}
|
|
23
|
+
export interface PrReviewInput {
|
|
24
|
+
body: string;
|
|
25
|
+
event: 'COMMENT' | 'APPROVE' | 'REQUEST_CHANGES';
|
|
26
|
+
comments: PrReviewComment[];
|
|
27
|
+
}
|
|
28
|
+
/** `delivered` is false on any failure; `body` carries the GitHub response body
|
|
29
|
+
* for that failure (e.g. a 422 naming the offending comment), unset on success. */
|
|
30
|
+
export interface PrReviewDelivery {
|
|
31
|
+
delivered: boolean;
|
|
32
|
+
body?: string;
|
|
33
|
+
}
|
|
34
|
+
/** `delivered` is false on any failure, including a rejected `gh` post — a
|
|
35
|
+
* failed review post must not crash the poller that triggered it. */
|
|
36
|
+
export declare function createPrReview(root: string, url: string, review: PrReviewInput): Promise<PrReviewDelivery>;
|
|
37
|
+
/** Best-effort, like `createPrReview`: not delivered on any failure — including no
|
|
38
|
+
* `SCOUT_APP_ID`/`SCOUT_PRIVATE_KEY` wired up, offline, or a fork with no
|
|
39
|
+
* Actions access to this repo. Callers fall back to `createPrReview`. */
|
|
40
|
+
export declare function dispatchPrReview(root: string, url: string, review: PrReviewInput): Promise<PrReviewDelivery>;
|
|
41
|
+
/** `undefined` means the lookup couldn't resolve at all and nothing persisted
|
|
42
|
+
* exists to fall back on either; callers fall back to stored status. */
|
|
14
43
|
export declare function resolvePrsByEntity(root: string, ttlMs?: number): Promise<Map<string, PrInfo> | undefined>;
|
|
15
|
-
|
|
44
|
+
/** Reads the timestamp of the last successful GitHub fetch without triggering one
|
|
45
|
+
* — falls back to the on-disk map if nothing's cached in memory yet. */
|
|
46
|
+
export declare function getPrMapFetchedAt(root: string): Promise<number | null>;
|
|
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>;
|
|
16
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":"
|
|
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,GAA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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
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ConsistencyIssue, EntityEntry, EntityType, PhaseItem } from '../../types/index';
|
|
2
|
-
export { clearPrCache, fetchUnresolvedThreads, replyToReviewThread, resolvePrsByEntity, resolveReviewThread, } from './pr-lookup';
|
|
2
|
+
export { clearPrCache, createPrReview, dispatchPrReview, fetchUnresolvedThreads, getPrMapFetchedAt, type PrReviewComment, type PrReviewDelivery, type PrReviewInput, replyToReviewThread, resolvePrsByEntity, resolveReviewThread, scoutReviewFooter, } from './pr-lookup';
|
|
3
|
+
/** `gh pr diff <ref>` — the unified diff of the PR's changes, capped so a huge
|
|
4
|
+
* diff can't blow the review prompt's budget. Resolves `undefined` on any
|
|
5
|
+
* spawn/exit failure, never throws. */
|
|
6
|
+
export declare function fetchPrDiff(root: string, ref: string, maxChars?: number): Promise<string | undefined>;
|
|
3
7
|
interface ResolvedPlanForPr {
|
|
4
8
|
id: string;
|
|
5
9
|
kind?: EntityType;
|
|
@@ -22,6 +26,16 @@ export declare function syncPrTitleToPr(root: string, ref: string): Promise<'upd
|
|
|
22
26
|
* resolves to a plan, the title must match that plan's title exactly — a
|
|
23
27
|
* conventional but unrelated title (stale or hand-edited) is still invalid. */
|
|
24
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
|
+
}>;
|
|
25
39
|
export declare function syncPrReadinessToPr(root: string, ref: string): Promise<'ready' | 'closed' | 'unchanged' | 'unresolved'>;
|
|
26
40
|
interface AuditSummary {
|
|
27
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,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,UAAU,EAEf,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EACL,YAAY,EACZ,sBAAsB,EACtB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,
|
|
1
|
+
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/core/git-pr/pr.ts"],"names":[],"mappings":"AAGA,OAAO,EACL,KAAK,gBAAgB,EACrB,KAAK,WAAW,EAChB,KAAK,UAAU,EAEf,KAAK,SAAS,EACf,MAAM,mBAAmB,CAAC;AAQ3B,OAAO,EACL,YAAY,EACZ,cAAc,EACd,gBAAgB,EAChB,sBAAsB,EACtB,iBAAiB,EACjB,KAAK,eAAe,EACpB,KAAK,gBAAgB,EACrB,KAAK,aAAa,EAClB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,iBAAiB,GAClB,MAAM,aAAa,CAAC;AAmDrB;;uCAEuC;AACvC,wBAAgB,WAAW,CACzB,IAAI,EAAE,MAAM,EACZ,GAAG,EAAE,MAAM,EACX,QAAQ,SAAoB,GAC3B,OAAO,CAAC,MAAM,GA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AC,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
|
|
2
|
-
import { AGENT_IDS 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
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
4
|
+
Ee as AGENT_IDS,
|
|
5
|
+
Te as AGENT_LABELS,
|
|
6
|
+
pe as AGENT_OPTIONS,
|
|
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,111 +16,118 @@ export {
|
|
|
16
16
|
c as MAX_TITLE_LENGTH,
|
|
17
17
|
m as PAPER_CAMP_VERSION,
|
|
18
18
|
S as PHASE_MAX_FRACTION,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
19
|
+
P as PHASE_STALL_MS,
|
|
20
|
+
he as PLAN_KINDS,
|
|
21
|
+
Ce as PLAN_STATUSES,
|
|
22
|
+
E as SKILL_MD_CONTENT,
|
|
23
|
+
T as SUGGESTION_ENTRY_RE,
|
|
24
|
+
ve as TOOLBAR_SEGMENT_IDS,
|
|
25
25
|
p as addRoadmapCandidate,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
v as
|
|
31
|
-
y as
|
|
26
|
+
R as addRoadmapItem,
|
|
27
|
+
h as advanceAnchor,
|
|
28
|
+
C as agentConfigSchema,
|
|
29
|
+
ye as agentConfigsEqual,
|
|
30
|
+
v as agentThreadMessage,
|
|
31
|
+
y as applyEnvEntries,
|
|
32
|
+
I as archiveEntityFile,
|
|
32
33
|
_ as assignEntityId,
|
|
33
34
|
F as assignPlanId,
|
|
34
35
|
g as branchName,
|
|
35
36
|
A as classifyAnchor,
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
f as clearPrCache,
|
|
38
|
+
Ie as coerceAgentConfig,
|
|
39
|
+
N as collectDoctorContext,
|
|
39
40
|
L as collectParkedQuestions,
|
|
40
41
|
O as computePlanContentHash,
|
|
41
42
|
D as computePrTitle,
|
|
43
|
+
u as createPrReview,
|
|
42
44
|
M as dateString,
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
45
|
+
k as derivePrLabels,
|
|
46
|
+
b as deriveRoadmapEvents,
|
|
47
|
+
G as deriveSubjectVocabulary,
|
|
48
|
+
w as describeFindings,
|
|
47
49
|
U as deskCheckSchema,
|
|
48
50
|
H as deskCiSchema,
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
j as
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
sa as
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
Ea as
|
|
78
|
-
Ta as
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
51
|
+
B as deskConfigSchema,
|
|
52
|
+
K as deskServiceSchema,
|
|
53
|
+
x as dispatchPrReview,
|
|
54
|
+
j as ensureSubject,
|
|
55
|
+
X as entityFrontmatterKnownKeys,
|
|
56
|
+
q as entityFrontmatterSchema,
|
|
57
|
+
z as entityToIdea,
|
|
58
|
+
Q as entityToPlan,
|
|
59
|
+
V as fetchPrDiff,
|
|
60
|
+
W as fetchUnresolvedThreads,
|
|
61
|
+
Y as findArchivableIdeas,
|
|
62
|
+
J as findConsistencyIssues,
|
|
63
|
+
Z as findReleaseLineForId,
|
|
64
|
+
$ as findingSeverity,
|
|
65
|
+
aa as formatEntityFile,
|
|
66
|
+
ea as formatIdeaFile,
|
|
67
|
+
sa as formatPlanEntry,
|
|
68
|
+
ra as formatPlanFile,
|
|
69
|
+
ta as formatPlans,
|
|
70
|
+
na as formatReleaseNotesMarkdown,
|
|
71
|
+
oa as getPrMapFetchedAt,
|
|
72
|
+
ia as ideaFrontmatterSchema,
|
|
73
|
+
da as initProject,
|
|
74
|
+
la as isConventionalPrTitle,
|
|
75
|
+
ca as isPhaseStalled,
|
|
76
|
+
ma as linkRoadmapItem,
|
|
77
|
+
Sa as medianSegmentMs,
|
|
78
|
+
Pa as paperCampConfigSchema,
|
|
79
|
+
Ea as parseEntityFile,
|
|
80
|
+
Ta as parseEnv,
|
|
81
|
+
pa as parseFrontmatter,
|
|
82
|
+
Ra as parseIdeaFile,
|
|
83
|
+
ha as parseIdeas,
|
|
84
|
+
Ca as parseNotificationLog,
|
|
85
|
+
va as parsePlanFile,
|
|
86
|
+
ya as parsePlans,
|
|
82
87
|
Ia as parseRawEntries,
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
88
|
+
_a as parseRoadmap,
|
|
89
|
+
Fa as parseSuggestions,
|
|
90
|
+
ga as parseTaskLog,
|
|
91
|
+
Aa as phaseFraction,
|
|
92
|
+
fa as planDoctorFixes,
|
|
93
|
+
Na as planFieldsSchema,
|
|
94
|
+
La as planFrontmatterSchema,
|
|
95
|
+
Oa as readEntities,
|
|
96
|
+
Da as readEntitiesWithDerivedStatus,
|
|
97
|
+
ua as readFileMaybe,
|
|
98
|
+
Ma as readNoteEntries,
|
|
99
|
+
ka as readParkedQuestions,
|
|
100
|
+
ba as readWorkEntries,
|
|
101
|
+
Ga as removeRoadmapItem,
|
|
102
|
+
wa as removeSuggestionLine,
|
|
103
|
+
Ua as renderConsistencyComment,
|
|
104
|
+
Ha as renderPlanPhasesIntoBody,
|
|
105
|
+
Ba as replyToReviewThread,
|
|
106
|
+
Ka as reportFindings,
|
|
107
|
+
xa as resolveEntityIdForCommit,
|
|
108
|
+
ja as resolveEntityTrail,
|
|
109
|
+
Xa as resolveIdFromCommitMessage,
|
|
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
|
+
Ja as resolveReviewThread,
|
|
117
|
+
Za as resolveRoadmap,
|
|
118
|
+
$a as runDoctor,
|
|
119
|
+
ae as runDoctorChecks,
|
|
120
|
+
ee as scoutReviewFooter,
|
|
121
|
+
se as serializeFrontmatter,
|
|
122
|
+
re as sortFindings,
|
|
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
|
|
125
132
|
};
|
|
126
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,EAAE,cAAc,EAAE,GAAG,KAAK,EAAE,CAcpE;AAED;gFACgF;AAChF,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,EAAE,CAAC,EAAE,MAAM,CAAA;CAAE,EAAE,GACrD,KAAK,EAAE,CAkBT;AAED;;0BAE0B;AAC1B,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,cAAc,GAAG,SAAS,EACnC,MAAM,EAAE,MAAM,EACd,MAAM,CAAC,EAAE;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GACrC,KAAK,EAAE,CAmBT;AAED;;;;;;oFAMoF;AACpF,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,KAAK,EAAE,EACjB,KAAK,EAAE,KAAK,EAAE,EACd,eAAe,GAAE,CAAC,KAAK,EAAE,MAAM,KAAK,YAAY,GAAG,SAA2B,GAC7E,KAAK,EAAE,CAaT;AAED;;qDAEqD;AACrD,KAAK,eAAe,GAAG;IACrB,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,KAAK,CAAC,EAAE,SAAS,EAAE,CAAC;CACrB,CAAC;AAEF;;;;uDAIuD;AACvD,wBAAgB,eAAe,CAAC,MAAM,EAAE,KAAK,EAAE,EAAE,QAAQ,EAAE,eAAe,EAAE,GAAG,KAAK,EAAE,CAarF;AAED;;yFAEyF;AACzF,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAe7F"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"issues.test.d.ts","sourceRoot":"","sources":["../../src/core/issues.test.ts"],"names":[],"mappings":""}
|
|
@@ -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,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,mBA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ptional<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<{
|
|
@@ -200,6 +204,14 @@ export declare const paperCampConfigSchema: z.ZodObject<{
|
|
|
200
204
|
model: z.ZodOptional<z.ZodString>;
|
|
201
205
|
effort: z.ZodOptional<z.ZodString>;
|
|
202
206
|
}, z.core.$strip>>;
|
|
207
|
+
codeReview: z.ZodPreprocess<z.ZodObject<{
|
|
208
|
+
agent: z.ZodEnum<{
|
|
209
|
+
"claude-code": "claude-code";
|
|
210
|
+
opencode: "opencode";
|
|
211
|
+
}>;
|
|
212
|
+
model: z.ZodOptional<z.ZodString>;
|
|
213
|
+
effort: z.ZodOptional<z.ZodString>;
|
|
214
|
+
}, z.core.$strip>>;
|
|
203
215
|
}, z.core.$strip>>;
|
|
204
216
|
desk: z.ZodOptional<z.ZodObject<{
|
|
205
217
|
services: z.ZodOptional<z.ZodArray<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;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"schemas.d.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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): 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,KAAK,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAI1D;oFACoF;AACpF,MAAM,W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BAAiB,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"}
|