@dendelion/paper-camp 0.43.0 → 0.44.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/chunks/dev-port.BLsETEnM.js +55 -0
- package/dist/chunks/dev-port.BLsETEnM.js.map +1 -0
- package/dist/chunks/{needs.BL7yYaO7.js → needs.BmY0GqQY.js} +1672 -1591
- package/dist/chunks/needs.BmY0GqQY.js.map +1 -0
- package/dist/cli/index.js +6045 -5888
- package/dist/cli/index.js.map +1 -1
- package/dist/core/capacity.d.ts +10 -0
- package/dist/core/capacity.d.ts.map +1 -0
- package/dist/core/capacity.test.d.ts +2 -0
- package/dist/core/capacity.test.d.ts.map +1 -0
- package/dist/core/ci/ci-release.d.ts +4 -3
- package/dist/core/ci/ci-release.d.ts.map +1 -1
- package/dist/core/ci/ci-run-word.d.ts +3 -0
- package/dist/core/ci/ci-run-word.d.ts.map +1 -0
- package/dist/core/corpus.d.ts +71 -0
- package/dist/core/corpus.d.ts.map +1 -0
- package/dist/core/corpus.test.d.ts +2 -0
- package/dist/core/corpus.test.d.ts.map +1 -0
- package/dist/{vite → core}/daemon-target.d.ts.map +1 -1
- package/dist/core/daemon-target.test.d.ts.map +1 -0
- package/dist/core/desk-config.d.ts +3 -0
- package/dist/core/desk-config.d.ts.map +1 -0
- package/dist/core/desk-discovery/evidence.d.ts +4 -3
- package/dist/core/desk-discovery/evidence.d.ts.map +1 -1
- package/dist/core/doctor/checks/tooling.d.ts.map +1 -1
- package/dist/core/doctor/doctor.d.ts +2 -0
- package/dist/core/doctor/doctor.d.ts.map +1 -1
- package/dist/core/doctor/rules.d.ts +5 -0
- package/dist/core/doctor/rules.d.ts.map +1 -1
- package/dist/core/git-log.d.ts +9 -2
- package/dist/core/git-log.d.ts.map +1 -1
- package/dist/core/index.d.ts +1 -0
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/index.js +174 -172
- package/dist/core/needs.d.ts +15 -6
- package/dist/core/needs.d.ts.map +1 -1
- package/dist/core/night-shift.d.ts +2 -2
- package/dist/core/night-shift.d.ts.map +1 -1
- package/dist/core/parked-questions.d.ts +1 -1
- package/dist/core/parked-questions.d.ts.map +1 -1
- package/dist/core/project-config.d.ts +14 -0
- package/dist/core/project-config.d.ts.map +1 -0
- package/dist/core/project-config.test.d.ts +2 -0
- package/dist/core/project-config.test.d.ts.map +1 -0
- package/dist/core/push-store.d.ts +2 -1
- package/dist/core/push-store.d.ts.map +1 -1
- package/dist/core/rate-limit.d.ts +0 -8
- package/dist/core/rate-limit.d.ts.map +1 -1
- package/dist/core/readers.d.ts +1 -12
- package/dist/core/readers.d.ts.map +1 -1
- package/dist/core/run-filters.d.ts +0 -1
- package/dist/core/run-filters.d.ts.map +1 -1
- package/dist/core/run-order.d.ts +0 -1
- package/dist/core/run-order.d.ts.map +1 -1
- package/dist/core/run-rows.d.ts +7 -2
- package/dist/core/run-rows.d.ts.map +1 -1
- package/dist/core/scaffold/scaffold.d.ts.map +1 -1
- package/dist/core/scaffold/templates.d.ts +5 -1
- package/dist/core/scaffold/templates.d.ts.map +1 -1
- package/dist/core/sections.d.ts +0 -2
- package/dist/core/sections.d.ts.map +1 -1
- package/dist/core/serialize/entity-file.d.ts +2 -1
- package/dist/core/serialize/entity-file.d.ts.map +1 -1
- package/dist/core/serialize/entity-file.test.d.ts +2 -0
- package/dist/core/serialize/entity-file.test.d.ts.map +1 -0
- package/dist/core/service-status.d.ts +9 -0
- package/dist/core/service-status.d.ts.map +1 -0
- package/dist/core/service-status.test.d.ts +2 -0
- package/dist/core/service-status.test.d.ts.map +1 -0
- package/dist/core/stats.d.ts +0 -1
- package/dist/core/stats.d.ts.map +1 -1
- package/dist/core/tailnet.d.ts +2 -1
- package/dist/core/tailnet.d.ts.map +1 -1
- package/dist/core/trail.d.ts.map +1 -1
- package/dist/toolbar/toolbar.js +7341 -4717
- package/dist/toolbar/toolbar.js.map +1 -1
- package/dist/types/index.d.ts +6 -1
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js.map +1 -1
- package/dist/vite/index.js +18 -32
- package/dist/vite/index.js.map +1 -1
- package/package.json +6 -2
- package/dist/chunks/dev-port.DG-T8zNq.js +0 -42
- package/dist/chunks/dev-port.DG-T8zNq.js.map +0 -1
- package/dist/chunks/needs.BL7yYaO7.js.map +0 -1
- package/dist/vite/daemon-target.test.d.ts.map +0 -1
- /package/dist/{vite → core}/daemon-target.d.ts +0 -0
- /package/dist/{vite → core}/daemon-target.test.d.ts +0 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { RateLimitSnapshot } from '../types/index';
|
|
2
|
+
export type CapacitySource = 'run' | 'probe';
|
|
3
|
+
export interface CapacityRecord {
|
|
4
|
+
snapshot: RateLimitSnapshot;
|
|
5
|
+
capturedAt: string;
|
|
6
|
+
source: CapacitySource;
|
|
7
|
+
}
|
|
8
|
+
export declare function writeCapacity(root: string, snapshot: RateLimitSnapshot, source: CapacitySource): Promise<void>;
|
|
9
|
+
export declare function readCapacity(root: string): Promise<CapacityRecord | null>;
|
|
10
|
+
//# sourceMappingURL=capacity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacity.d.ts","sourceRoot":"","sources":["../../src/core/capacity.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,gBAAgB,CAAC;AAExD,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,OAAO,CAAC;AAE7C,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,iBAAiB,CAAC;IAC5B,UAAU,EAAE,MAAM,CAAC;IACnB,MAAM,EAAE,cAAc,CAAC;CACxB;AAkBD,wBAAsB,aAAa,CACjC,IAAI,EAAE,MAAM,EACZ,QAAQ,EAAE,iBAAiB,EAC3B,MAAM,EAAE,cAAc,GACrB,OAAO,CAAC,IAAI,CAAC,CAOf;AAED,wBAAsB,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAS/E"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capacity.test.d.ts","sourceRoot":"","sources":["../../src/core/capacity.test.ts"],"names":[],"mappings":""}
|
|
@@ -32,7 +32,8 @@ export declare function failedJobNames(jobs: GhJobRow[]): string[];
|
|
|
32
32
|
export declare function pickReleasePr(rows: GhPrRow[]): ReleasePr | null;
|
|
33
33
|
export declare function latestDraftPrRun(rows: GhRunRow[]): CiRun | null;
|
|
34
34
|
export declare function hasSecret(rows: GhSecretRow[], name: string): boolean;
|
|
35
|
-
export
|
|
36
|
-
export declare function
|
|
37
|
-
export
|
|
35
|
+
export { ciRunWord } from './ci-run-word';
|
|
36
|
+
export declare function clearCiCache(root: string): void;
|
|
37
|
+
export declare function clearCiCacheEntry(root: string, ci: DeskCi): void;
|
|
38
|
+
export declare function fetchCiReleaseState(root: string, ci: DeskCi, ttlMs?: number): Promise<CiReleaseState>;
|
|
38
39
|
//# sourceMappingURL=ci-release.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-release.d.ts","sourceRoot":"","sources":["../../../src/core/ci/ci-release.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EACV,cAAc,EACd,KAAK,EACL,WAAW,EACX,MAAM,EAEN,SAAS,EACV,MAAM,mBAAmB,CAAC;AAO3B,UAAU,QAAQ;IAChB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,QAAQ;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;CACpB;AAED,UAAU,OAAO;IACf,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,CAAC;IACd,GAAG,EAAE,M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AI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,KAAK,SAAkB,GACtB,OAAO,CAAC,cAAc,CAAC,CA+EzB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-run-word.d.ts","sourceRoot":"","sources":["../../../src/core/ci/ci-run-word.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AAWrD,wBAAgB,SAAS,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,CAErD"}
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { EntityEntry, EntityKind, EntityStatus, IdeaEntry, ParseWarning, PhaseItem, PlanEntry, PrInfo, ThreadMessage } from '../types/index';
|
|
2
|
+
import { formatEntityFile } from './serialize';
|
|
3
|
+
export interface CorpusSnapshot {
|
|
4
|
+
entries: EntityEntry[];
|
|
5
|
+
work: PlanEntry[];
|
|
6
|
+
notes: IdeaEntry[];
|
|
7
|
+
warnings: ParseWarning[];
|
|
8
|
+
prs: Map<string, PrInfo> | undefined;
|
|
9
|
+
resolved: boolean;
|
|
10
|
+
mainActivityIds: Set<string>;
|
|
11
|
+
fingerprint: string;
|
|
12
|
+
}
|
|
13
|
+
export declare function corpusFingerprint(ideasDir: string): Promise<string>;
|
|
14
|
+
export declare function invalidateCorpus(root: string): void;
|
|
15
|
+
/** One snapshot of the whole corpus — entries, their plan/idea views, resolved PRs,
|
|
16
|
+
* main-branch activity and the fingerprint they were all read at — cached per root
|
|
17
|
+
* until a file under papercamp/ changes or the PR map refreshes. `live: true` lets
|
|
18
|
+
* the PR lookup shell out to `gh` on its usual TTL; `false` (the default) serves
|
|
19
|
+
* whatever's cached/persisted, for file-watcher-driven reads that aren't a human ask. */
|
|
20
|
+
export declare function readCorpus(root: string, opts?: {
|
|
21
|
+
live?: boolean;
|
|
22
|
+
}): Promise<CorpusSnapshot>;
|
|
23
|
+
export declare function readMaybe(path: string): Promise<string>;
|
|
24
|
+
export declare function fileExists(path: string): Promise<boolean>;
|
|
25
|
+
export declare const campFile: (root: string, name: string) => string;
|
|
26
|
+
export type EntityFileInput = Parameters<typeof formatEntityFile>[0];
|
|
27
|
+
export declare function entityFileInput(entry: EntityEntry, overrides?: Partial<EntityFileInput>): EntityFileInput;
|
|
28
|
+
export declare function writeEntityFile(root: string, path: string, input: EntityFileInput): Promise<void>;
|
|
29
|
+
/** Thrown by the write primitives below; routes map `status` straight onto the
|
|
30
|
+
* HTTP response, MCP tools and hooks just read `.message`. */
|
|
31
|
+
export declare class CorpusError extends Error {
|
|
32
|
+
readonly status: number;
|
|
33
|
+
constructor(message: string, status?: number);
|
|
34
|
+
}
|
|
35
|
+
/** Resolves an id to its file, trying the primary ideas dir then `archive/` —
|
|
36
|
+
* every write primitive below goes through this instead of assuming primary. */
|
|
37
|
+
export declare function resolveEntityFilePath(root: string, id: string): Promise<string | null>;
|
|
38
|
+
/** Reads entity `id` (primary or archived), lets `mutate` compute the field
|
|
39
|
+
* overrides to apply, then writes it back — or, if `mutate` returns `undefined`,
|
|
40
|
+
* leaves the file untouched (e.g. a phase index that no longer exists). A
|
|
41
|
+
* done/archived entity (IDEA-187) refuses an override that adds phases/fixes, edits
|
|
42
|
+
* the body, or reopens its status to anything but `done`/`dropped` — those spawn
|
|
43
|
+
* their own linked fix entity instead; status, thread, agent, subject and order edits
|
|
44
|
+
* still go through. `mutate`'s return is merged on top of every field carried over
|
|
45
|
+
* from the parsed entry (see `entityFileInput`), so a key is only ever changed when
|
|
46
|
+
* the override names it — an explicit `undefined` clears it, same as an omitted key
|
|
47
|
+
* leaves it untouched, except for `status`, where the two differ: present-but-
|
|
48
|
+
* `undefined` clears the stored override (and unarchives), omitted leaves it as-is. */
|
|
49
|
+
export declare function updateEntity(root: string, id: string, mutate: (entry: EntityEntry) => Partial<EntityFileInput> | undefined): Promise<EntityEntry>;
|
|
50
|
+
/** Appends one thread message to entity `id` — the same closed-entity guard as
|
|
51
|
+
* `updateEntity` applies, but a thread append never trips it (phases/fixes/body/status
|
|
52
|
+
* are untouched), so it always goes through on an open or closed entity alike. */
|
|
53
|
+
export declare function appendThread(root: string, id: string, message: ThreadMessage): Promise<EntityEntry>;
|
|
54
|
+
export interface CreateIdeaInput {
|
|
55
|
+
title: string;
|
|
56
|
+
content?: string;
|
|
57
|
+
kind?: EntityKind;
|
|
58
|
+
type?: string;
|
|
59
|
+
status?: EntityStatus;
|
|
60
|
+
subject?: string;
|
|
61
|
+
needs?: string[];
|
|
62
|
+
idea?: string;
|
|
63
|
+
issueSource?: string;
|
|
64
|
+
phases?: PhaseItem[];
|
|
65
|
+
}
|
|
66
|
+
/** Mints a new entity with the next lifetime id — a plain idea by default
|
|
67
|
+
* (`status: idea`), or a linked fix/note/board/ticket when `kind` says so, in which
|
|
68
|
+
* case the caller decides the initial status (usually left unset for a fix, so
|
|
69
|
+
* derived status takes over once it has phases). */
|
|
70
|
+
export declare function createIdea(root: string, input: CreateIdeaInput): Promise<string>;
|
|
71
|
+
//# sourceMappingURL=corpus.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corpus.d.ts","sourceRoot":"","sources":["../../src/core/corpus.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EACV,WAAW,EACX,UAAU,EACV,YAAY,EACZ,SAAS,EACT,YAAY,EACZ,SAAS,EACT,SAAS,EACT,MAAM,EACN,aAAa,EACd,MAAM,gBAAgB,CAAC;AAQxB,OAAO,EAGL,gBAAgB,EAGjB,MAAM,aAAa,CAAC;AAGrB,MAAM,WAAW,cAAc;IAC7B,OAAO,EAAE,WAAW,EAAE,CAAC;IACvB,IAAI,EAAE,SAAS,EAAE,CAAC;IAClB,KAAK,EAAE,SAAS,EAAE,CAAC;IACnB,QAAQ,EAAE,YAAY,EAAE,CAAC;IACzB,GAAG,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC,QAAQ,EAAE,OAAO,CAAC;IAClB,e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;;;;;;;;;;uFAUuF;AACvF,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,MAAM,EAAE,CAAC,KAAK,EAAE,WAAW,KAAK,OAAO,CAAC,eAAe,CAAC,GAAG,SAAS,GACnE,OAAO,CAAC,WAAW,CAAC,CA6CtB;AAED;;kFAEkF;AAClF,wBAAsB,YAAY,CAChC,IAAI,EAAE,MAAM,EACZ,EAAE,EAAE,MAAM,EACV,OAAO,EAAE,aAAa,GACrB,OAAO,CAAC,WAAW,CAAC,CAItB;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,CAAC,EAAE,UAAU,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,MAAM,CAAC,EAAE,SAAS,EAAE,CAAC;CACtB;AAED;;;oDAGoD;AACpD,wBAAsB,UAAU,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,eAAe,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"corpus.test.d.ts","sourceRoot":"","sources":["../../src/core/corpus.test.ts"],"names":[],"mappings":""}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"daemon-target.d.ts","sourceRoot":"","sources":["../../src/
|
|
1
|
+
{"version":3,"file":"daemon-target.d.ts","sourceRoot":"","sources":["../../src/core/daemon-target.ts"],"names":[],"mappings":"AAIA,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;CACd;AAMD;;;;;;0DAM0D;AAC1D,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,MAAM,EACZ,YAAY,CAAC,EAAE,MAAM,GACpB,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAYnC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daemon-target.test.d.ts","sourceRoot":"","sources":["../../src/core/daemon-target.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"desk-config.d.ts","sourceRoot":"","sources":["../../src/core/desk-config.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAGjD,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,UAAU,CAavD"}
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
export type PackageManager = 'npm' | 'pnpm' | 'yarn' | 'bun';
|
|
2
|
-
|
|
2
|
+
interface ProjectScript {
|
|
3
3
|
name: string;
|
|
4
4
|
cmd: string;
|
|
5
5
|
}
|
|
6
|
-
|
|
6
|
+
interface NonJsManifest {
|
|
7
7
|
kind: 'cargo' | 'python' | 'go' | 'make';
|
|
8
8
|
path: string;
|
|
9
9
|
targets: string[];
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
interface CiStep {
|
|
12
12
|
workflow: string;
|
|
13
13
|
job: string;
|
|
14
14
|
step: string;
|
|
@@ -29,4 +29,5 @@ export interface ProjectEvidence {
|
|
|
29
29
|
}
|
|
30
30
|
export declare function detectPackageManager(root: string): PackageManager | null;
|
|
31
31
|
export declare function gatherProjectEvidence(root: string): Promise<ProjectEvidence>;
|
|
32
|
+
export {};
|
|
32
33
|
//# sourceMappingURL=evidence.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../src/core/desk-discovery/evidence.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,
|
|
1
|
+
{"version":3,"file":"evidence.d.ts","sourceRoot":"","sources":["../../../src/core/desk-discovery/evidence.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,cAAc,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,CAAC;AAE7D,UAAU,aAAa;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,UAAU,aAAa;IACrB,IAAI,EAAE,OAAO,GAAG,QAAQ,GAAG,IAAI,GAAG,MAAM,CAAC;IACzC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,UAAU,MAAM;IACd,QAAQ,EAAE,MAAM,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,eAAe;IAC9B,cAAc,EAAE,cAAc,GAAG,IAAI,CAAC;IACtC,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B,cAAc,EAAE,OAAO,CAAC;IACxB;kFAC8E;IAC9E,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,gBAAgB,EAAE,OAAO,CAAC;IAC1B,kBAAkB,EAAE,OAAO,CAAC;IAC5B,cAAc,EAAE,aAAa,EAAE,CAAC;CACjC;AAsCD,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,cAAc,GAAG,IAAI,CAKxE;AAyLD,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,eAAe,CAAC,CAmBlF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tooling.d.ts","sourceRoot":"","sources":["../../../../src/core/doctor/checks/tooling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"tooling.d.ts","sourceRoot":"","sources":["../../../../src/core/doctor/checks/tooling.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC;AA4G7C,eAAO,MAAM,aAAa,EAAE,WAAW,EAKtC,CAAC"}
|
|
@@ -10,6 +10,8 @@ export interface DoctorContext {
|
|
|
10
10
|
files: DoctorEntityFile[];
|
|
11
11
|
config: PaperCampConfig | null;
|
|
12
12
|
hasPermissionsAllow?: boolean;
|
|
13
|
+
hasMcpJsonEntry?: boolean;
|
|
14
|
+
hasOpencodeJsonEntry?: boolean;
|
|
13
15
|
draftPrWorkflowContent?: string | null;
|
|
14
16
|
pullRequestTemplateContent?: string | null;
|
|
15
17
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/core/doctor/doctor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,aAAa,EAAE,CAAC;AAEtE,eAAO,MAAM,aAAa,EAAE,WAAW,EAItC,CAAC;
|
|
1
|
+
{"version":3,"file":"doctor.d.ts","sourceRoot":"","sources":["../../../src/core/doctor/doctor.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAIzD,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAE/C,MAAM,WAAW,gBAAgB;IAC/B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,OAAO,CAAC;CACnB;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,gBAAgB,EAAE,CAAC;IAC1B,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,mBAAmB,CAAC,EAAE,OAAO,CAAC;IAC9B,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,sBAAsB,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACvC,0BAA0B,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CAC5C;AAED,MAAM,MAAM,WAAW,GAAG,CAAC,OAAO,EAAE,aAAa,KAAK,aAAa,EAAE,CAAC;AAEtE,eAAO,MAAM,aAAa,EAAE,WAAW,EAItC,CAAC;AAyEF,wBAAsB,oBAAoB,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,CAAC,CAuCvF;AAED,wBAAgB,eAAe,CAAC,OAAO,EAAE,aAAa,GAAG,aAAa,EAAE,CAEvE;AAED,wBAAsB,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAE9E"}
|
|
@@ -71,6 +71,11 @@ export declare const DOCTOR_RULES: readonly [{
|
|
|
71
71
|
readonly category: "tooling";
|
|
72
72
|
readonly severity: "warning";
|
|
73
73
|
readonly summary: "config.json has no defaultAgents, so every run uses the built-in agent and model — choose them in Settings → General so a project never runs on a fallback it did not pick.";
|
|
74
|
+
}, {
|
|
75
|
+
readonly id: "missing-mcp-entry";
|
|
76
|
+
readonly category: "tooling";
|
|
77
|
+
readonly severity: "warning";
|
|
78
|
+
readonly summary: ".mcp.json or opencode.json has no paper-camp entry, so runs and sessions in this project never see the paper-camp MCP server — run `paper-camp init --settings` to add it.";
|
|
74
79
|
}, {
|
|
75
80
|
readonly id: "draft-pr-template-outdated";
|
|
76
81
|
readonly category: "tooling";
|
|
@@ -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,GAAG,SAAS,CAAC;AAEnE,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,GAAG,SAAS,CAAC;AAEnE,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6GiB,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"}
|
package/dist/core/git-log.d.ts
CHANGED
|
@@ -5,7 +5,15 @@ export declare function resolveDefaultBranch(root: string): Promise<string>;
|
|
|
5
5
|
/** Matches a release-please line, a raw commit subject, or (for pre-squash history)
|
|
6
6
|
* a merge commit's own source-branch name, since those predate the `(IDEA-N)` convention. */
|
|
7
7
|
export declare function resolveIdFromCommitMessage(message: string): string | null;
|
|
8
|
-
export
|
|
8
|
+
export interface MainActivity {
|
|
9
|
+
ids: Set<string>;
|
|
10
|
+
sha: string;
|
|
11
|
+
}
|
|
12
|
+
/** Cached per root by the default branch's current sha — a `git log` over the whole
|
|
13
|
+
* history is expensive to redo on every corpus read when main hasn't moved. The sha
|
|
14
|
+
* comes back with the ids so callers that key a cache on main's position (the corpus
|
|
15
|
+
* snapshot) don't need a second `rev-parse` of their own. */
|
|
16
|
+
export declare function resolveIdsWithMainActivity(root: string): Promise<MainActivity>;
|
|
9
17
|
export interface GitLogCommit {
|
|
10
18
|
hash: string;
|
|
11
19
|
subject: string;
|
|
@@ -24,7 +32,6 @@ export interface GitLogPage {
|
|
|
24
32
|
/** Exported for direct testing against `git log`'s %x1f/%x1e-separated output
|
|
25
33
|
* without needing a full repo fixture for every case. */
|
|
26
34
|
export declare function parseGitLogOutput(output: string, upstream: string | null, unpushed: Set<string>): GitLogCommit[];
|
|
27
|
-
export declare function resolveUpstream(root: string): Promise<string | null>;
|
|
28
35
|
/** One line of `git for-each-ref` in BRANCH_FORMAT. Exported for tests. */
|
|
29
36
|
export declare function parseBranchLine(line: string): GitBranch | null;
|
|
30
37
|
/** Local branches, most recently committed first. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"git-log.d.ts","sourceRoot":"","sources":["../../src/core/git-log.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,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;
|
|
1
|
+
{"version":3,"file":"git-log.d.ts","sourceRoot":"","sources":["../../src/core/git-log.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,gBAAgB,CAAC;AAEhD,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;AAwBD,MAAM,WAAW,YAAY;IAC3B,GAAG,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC;IACjB,GAAG,EAAE,MAAM,CAAC;CACb;AASD;;;6DAG6D;AAC7D,wBAAsB,0BAA0B,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,YAAY,CAAC,CAapF;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;AAkBD,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"}
|
package/dist/core/index.d.ts
CHANGED
package/dist/core/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/core/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,OAAO,CAAC;AACtB,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,oBAAoB,CAAC;AACnC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,SAAS,CAAC;AACxB,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC"}
|