@difflab/pi 0.7.1 → 0.8.0-rc.202610020810.d27e7fc
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/README.md +22 -40
- package/agents/diffpi-copilot.md +2 -2
- package/agents/diffpi-orchestrator.md +9 -14
- package/agents/diffpi-plan-reviewer.md +4 -12
- package/agents/diffpi-planner.md +7 -13
- package/agents/diffpi-reviewer.md +7 -11
- package/agents/diffpi-tutor.md +2 -2
- package/agents/diffpi-worker.md +9 -12
- package/dist/commands/dispatch.d.ts +4 -0
- package/dist/commands/dispatch.d.ts.map +1 -0
- package/dist/commands/index.d.ts +1 -3
- package/dist/commands/index.d.ts.map +1 -1
- package/dist/commands/plan.d.ts +1 -1
- package/dist/commands/plan.d.ts.map +1 -1
- package/dist/commands/review.d.ts +1 -1
- package/dist/commands/review.d.ts.map +1 -1
- package/dist/doctor.d.ts +9 -0
- package/dist/doctor.d.ts.map +1 -0
- package/dist/environment.d.ts +0 -1
- package/dist/environment.d.ts.map +1 -1
- package/dist/extensions/index.js +1622 -3207
- package/dist/index.d.ts +5 -11
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +146 -1128
- package/dist/log.d.ts +6 -11
- package/dist/log.d.ts.map +1 -1
- package/dist/plan/verify.d.ts.map +1 -1
- package/dist/review/index.d.ts +2 -3
- package/dist/review/index.d.ts.map +1 -1
- package/dist/review/review-backend.d.ts +2 -3
- package/dist/review/review-backend.d.ts.map +1 -1
- package/dist/setup.d.ts +0 -2
- package/dist/setup.d.ts.map +1 -1
- package/dist/tools/ci.d.ts +1 -1
- package/dist/tools/doctor.d.ts +3 -0
- package/dist/tools/doctor.d.ts.map +1 -0
- package/dist/tools/index.d.ts +2 -3
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1821 -3006
- package/dist/tools/log.d.ts.map +1 -1
- package/dist/tools/review.d.ts +1 -7
- package/dist/tools/review.d.ts.map +1 -1
- package/dist/tools/setup.d.ts.map +1 -1
- package/package.json +2 -6
- package/skills/diffpi-doctor/SKILL.md +10 -0
- package/skills/diffpi-setup/SKILL.md +4 -4
- package/skills/plan/SKILL.md +13 -24
- package/skills/plan/references/design-quality.md +3 -3
- package/skills/plan/references/workflows/finalize.md +10 -6
- package/skills/plan/references/workflows/go.md +27 -7
- package/skills/plan/references/workflows/help.md +19 -3
- package/skills/plan/references/workflows/init.md +23 -6
- package/skills/plan/references/workflows/inline-fallback.md +9 -0
- package/skills/plan/references/workflows/new.md +22 -7
- package/skills/plan/references/workflows/update.md +24 -6
- package/skills/plan/references/workflows/validate.md +31 -0
- package/skills/review/SKILL.md +15 -7
- package/skills/review/references/review-standards.md +9 -1
- package/skills/review/references/workflows/address.md +13 -6
- package/skills/review/references/workflows/auto.md +13 -5
- package/skills/review/references/workflows/complete.md +17 -4
- package/skills/review/references/workflows/edit.md +10 -2
- package/skills/review/references/workflows/foreground-fallback.md +7 -0
- package/skills/review/references/workflows/help.md +11 -10
- package/skills/review/references/workflows/merge.md +17 -2
- package/skills/review/references/workflows/new.md +18 -5
- package/skills/review/references/workflows/publish.md +17 -4
- package/skills/review/references/workflows/status.md +7 -2
- package/skills/review/templates/REVIEW.md +39 -0
- package/templates/plan/PLAN.md +9 -1
- package/templates/review/draft-pr.md +3 -9
- package/dist/cli/plan.d.ts +0 -17
- package/dist/cli/plan.d.ts.map +0 -1
- package/dist/cli.d.ts +0 -4
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -2258
- package/dist/commands/mode.d.ts +0 -5
- package/dist/commands/mode.d.ts.map +0 -1
- package/dist/extensions/tuicrx.d.ts +0 -66
- package/dist/extensions/tuicrx.d.ts.map +0 -1
- package/dist/extensions/zedx.d.ts +0 -18
- package/dist/extensions/zedx.d.ts.map +0 -1
- package/dist/modes.d.ts +0 -75
- package/dist/modes.d.ts.map +0 -1
- package/dist/review/local-review-backend.d.ts +0 -3
- package/dist/review/local-review-backend.d.ts.map +0 -1
- package/dist/review/local-reviews.d.ts +0 -31
- package/dist/review/local-reviews.d.ts.map +0 -1
- package/dist/review/review-markdown.d.ts +0 -6
- package/dist/review/review-markdown.d.ts.map +0 -1
- package/dist/tools/modes.d.ts +0 -4
- package/dist/tools/modes.d.ts.map +0 -1
- package/skills/mode/SKILL.md +0 -38
- package/skills/plan/references/workflows/annotate.md +0 -7
- package/skills/review/references/workflows/open.md +0 -5
package/dist/commands/mode.d.ts
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';
|
|
2
|
-
import type { ModeController } from '../modes';
|
|
3
|
-
/** Register the inline agent mode command. */
|
|
4
|
-
export declare function registerModeCommand(pi: ExtensionAPI, modes: ModeController): void;
|
|
5
|
-
//# sourceMappingURL=mode.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"mode.d.ts","sourceRoot":"","sources":["../../src/commands/mode.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAoB,MAAM,iCAAiC,CAAC;AACtF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAK/C,8CAA8C;AAC9C,wBAAgB,mBAAmB,CAAC,EAAE,EAAE,YAAY,EAAE,KAAK,EAAE,cAAc,GAAG,IAAI,CAKjF"}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { type LaunchResult } from '../environment';
|
|
2
|
-
import { type ReviewComment, type ReviewThreadRecord } from '../review/types';
|
|
3
|
-
export interface SessionSummary {
|
|
4
|
-
slug: string;
|
|
5
|
-
kind: string;
|
|
6
|
-
path: string;
|
|
7
|
-
updatedAt: string;
|
|
8
|
-
commentCount: number;
|
|
9
|
-
anchor: string;
|
|
10
|
-
active: boolean;
|
|
11
|
-
}
|
|
12
|
-
interface SessionCommentJson {
|
|
13
|
-
id?: string;
|
|
14
|
-
content: string;
|
|
15
|
-
side?: 'old' | 'new' | null;
|
|
16
|
-
username?: string;
|
|
17
|
-
author?: string;
|
|
18
|
-
}
|
|
19
|
-
interface SessionFileJson {
|
|
20
|
-
file_comments?: SessionCommentJson[];
|
|
21
|
-
line_comments?: Record<string, SessionCommentJson[]>;
|
|
22
|
-
}
|
|
23
|
-
export interface SessionJson {
|
|
24
|
-
id?: string;
|
|
25
|
-
branch_name?: string;
|
|
26
|
-
repo_path?: string;
|
|
27
|
-
review_comments?: SessionCommentJson[];
|
|
28
|
-
files?: Record<string, SessionFileJson>;
|
|
29
|
-
}
|
|
30
|
-
export declare function tuicrAvailable(): Promise<boolean>;
|
|
31
|
-
export declare function listSessions(repo?: string): Promise<SessionSummary[]>;
|
|
32
|
-
export declare function addComment(session: string, body: string, opts?: {
|
|
33
|
-
targetFile?: string;
|
|
34
|
-
line?: number;
|
|
35
|
-
side?: 'old' | 'new';
|
|
36
|
-
username?: string;
|
|
37
|
-
}): Promise<void>;
|
|
38
|
-
export declare function launch(cwd: string, pr?: number | string, localBase?: string): Promise<LaunchResult>;
|
|
39
|
-
export declare function resolveSession(cwd: string, branch: string): Promise<SessionSummary | undefined>;
|
|
40
|
-
export declare function resolveReviewSession(cwd: string, target: {
|
|
41
|
-
branch: string;
|
|
42
|
-
workingTree?: boolean;
|
|
43
|
-
owner?: string;
|
|
44
|
-
repo?: string;
|
|
45
|
-
number?: number;
|
|
46
|
-
}): Promise<SessionSummary | undefined>;
|
|
47
|
-
/** Resolve the matching PR draft when publishing remotely, or a local draft otherwise. */
|
|
48
|
-
export declare function resolvePublishSession(cwd: string, target: {
|
|
49
|
-
branch: string;
|
|
50
|
-
owner?: string;
|
|
51
|
-
repo?: string;
|
|
52
|
-
number?: number;
|
|
53
|
-
}): Promise<SessionSummary | undefined>;
|
|
54
|
-
export declare function resolvePrSession(cwd: string, owner: string, repo: string, number: number): Promise<SessionSummary | undefined>;
|
|
55
|
-
export declare function findMatchingSession(sessions: readonly SessionSummary[], cwd: string, branch: string): Promise<SessionSummary | undefined>;
|
|
56
|
-
export declare function readSession(path: string): Promise<SessionJson>;
|
|
57
|
-
export declare function toLocalReviewThreads(session: SessionJson): ReviewThreadRecord[];
|
|
58
|
-
export declare function toFindings(session: SessionJson, options?: {
|
|
59
|
-
agentOnly?: boolean;
|
|
60
|
-
excludeLocalResponses?: boolean;
|
|
61
|
-
}): {
|
|
62
|
-
comments: ReviewComment[];
|
|
63
|
-
body: string;
|
|
64
|
-
};
|
|
65
|
-
export {};
|
|
66
|
-
//# sourceMappingURL=tuicrx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tuicrx.d.ts","sourceRoot":"","sources":["../../src/extensions/tuicrx.ts"],"names":[],"mappings":"AAIA,OAAO,EAAkC,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACnF,OAAO,EAAyC,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAErH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,YAAY,EAAE,MAAM,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,UAAU,kBAAkB;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,CAAC,EAAE,KAAK,GAAG,KAAK,GAAG,IAAI,CAAC;IAC5B,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,eAAe;IACvB,aAAa,CAAC,EAAE,kBAAkB,EAAE,CAAC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,kBAAkB,EAAE,CAAC,CAAC;CACtD;AAED,MAAM,WAAW,WAAW;IAC1B,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,WAAW,CAAC,E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E;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACzE,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAIrC;AAED,wBAAsB,gBAAgB,CACpC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAWrC;AAED,wBAAsB,mBAAmB,CACvC,QAAQ,EAAE,SAAS,cAAc,EAAE,EACnC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,GACb,OAAO,CAAC,cAAc,GAAG,SAAS,CAAC,CAarC;AAED,wBAAsB,WAAW,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAOpE;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,WAAW,GAAG,kBAAkB,EAAE,CAyB/E;AAED,wBAAgB,UAAU,CACxB,OAAO,EAAE,WAAW,EACpB,OAAO,GAAE;IAAE,SAAS,CAAC,EAAE,OAAO,CAAC;IAAC,qBAAqB,CAAC,EAAE,OAAO,CAAA;CAAO,GACrE;IAAE,QAAQ,EAAE,aAAa,EAAE,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CA4C7C"}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/** Stable task label for working-tree and local-revision reviews. */
|
|
2
|
-
export declare const ZED_LOCAL_REVIEW_TASK_NAME = "diffpi: tuicr local review";
|
|
3
|
-
/** Backward-compatible alias for the original public constant. */
|
|
4
|
-
export declare const ZED_REVIEW_TASK_NAME = "diffpi: tuicr local review";
|
|
5
|
-
export declare const ZED_PR_REVIEW_TASK_NAME = "diffpi: tuicr PR review";
|
|
6
|
-
export declare const ZED_PLAN_ANNOTATE_TASK_NAME = "diffpi: annotate plan";
|
|
7
|
-
export interface ZedEnsureResult {
|
|
8
|
-
path: string;
|
|
9
|
-
changed: boolean;
|
|
10
|
-
existed: boolean;
|
|
11
|
-
}
|
|
12
|
-
export declare function zedTasksPath(homeDir?: string): string;
|
|
13
|
-
export declare function zedKeymapPath(homeDir?: string): string;
|
|
14
|
-
export declare function ensureZedReviewTask(homeDir?: string, _command?: readonly string[]): Promise<ZedEnsureResult>;
|
|
15
|
-
export declare function ensureZedPlanTask(packageVersion: string, homeDir?: string): Promise<ZedEnsureResult>;
|
|
16
|
-
export declare function ensureZedReviewKeybinding(homeDir?: string): Promise<ZedEnsureResult>;
|
|
17
|
-
export declare function zedReviewTaskName(command: readonly string[]): string;
|
|
18
|
-
//# sourceMappingURL=zedx.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"zedx.d.ts","sourceRoot":"","sources":["../../src/extensions/zedx.ts"],"names":[],"mappings":"AAIA,qEAAqE;AACrE,eAAO,MAAM,0BAA0B,+BAA+B,CAAC;AACvE,kEAAkE;AAClE,eAAO,MAAM,oBAAoB,+BAA6B,CAAC;AAC/D,eAAO,MAAM,uBAAuB,4BAA4B,CAAC;AACjE,eAAO,MAAM,2BAA2B,0BAA0B,CAAC;AAoBnE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,OAAO,CAAC;CAClB;AAED,wBAAgB,YAAY,CAAC,OAAO,SAAY,GAAG,MAAM,CAExD;AAED,wBAAgB,aAAa,CAAC,OAAO,SAAY,GAAG,MAAM,CAEzD;AAED,wBAAsB,mBAAmB,CACvC,OAAO,SAAY,EACnB,QAAQ,GAAE,SAAS,MAAM,EAAwC,GAChE,OAAO,CAAC,eAAe,CAAC,CAiB1B;AAED,wBAAsB,iBAAiB,CAAC,cAAc,EAAE,MAAM,EAAE,OAAO,SAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAuB7G;AAED,wBAAsB,yBAAyB,CAAC,OAAO,SAAY,GAAG,OAAO,CAAC,eAAe,CAAC,CAsB7F;AAID,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,SAAS,MAAM,EAAE,GAAG,MAAM,CAKpE"}
|
package/dist/modes.d.ts
DELETED
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { type ExtensionAPI, type ExtensionContext } from '@earendil-works/pi-coding-agent';
|
|
2
|
-
export type ModePromptStrategy = 'append' | 'replace';
|
|
3
|
-
export type ModeThinkingLevel = 'off' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max';
|
|
4
|
-
export interface AgentMode {
|
|
5
|
-
id: string;
|
|
6
|
-
label: string;
|
|
7
|
-
description: string;
|
|
8
|
-
systemPrompt: string;
|
|
9
|
-
promptStrategy: ModePromptStrategy;
|
|
10
|
-
modelPreferences: string[];
|
|
11
|
-
thinkingLevel?: ModeThinkingLevel;
|
|
12
|
-
requiredTools: string[];
|
|
13
|
-
forbiddenTools: string[];
|
|
14
|
-
requireModel: boolean;
|
|
15
|
-
requireThinking: boolean;
|
|
16
|
-
tools: string[];
|
|
17
|
-
source: string;
|
|
18
|
-
sourcePath: string;
|
|
19
|
-
}
|
|
20
|
-
export interface ModeCatalog {
|
|
21
|
-
modes: AgentMode[];
|
|
22
|
-
diagnostics: string[];
|
|
23
|
-
}
|
|
24
|
-
export interface ModeListOptions {
|
|
25
|
-
includeSkills?: boolean;
|
|
26
|
-
}
|
|
27
|
-
export interface ModeController {
|
|
28
|
-
list(ctx: ExtensionContext, options?: ModeListOptions): Promise<ModeCatalog>;
|
|
29
|
-
set(agent: string, ctx: ExtensionContext): Promise<ModeSelectionResult>;
|
|
30
|
-
unset(ctx: ExtensionContext): Promise<ModeSelectionResult>;
|
|
31
|
-
restore(ctx: ExtensionContext): Promise<void>;
|
|
32
|
-
refresh(ctx: ExtensionContext): void;
|
|
33
|
-
apply(systemPrompt: string): string;
|
|
34
|
-
getActive(): AgentMode | undefined;
|
|
35
|
-
getStatus(ctx: ExtensionContext): ModeRuntimeStatus;
|
|
36
|
-
}
|
|
37
|
-
export interface ModeRuntimeStatus {
|
|
38
|
-
active?: string;
|
|
39
|
-
model?: {
|
|
40
|
-
provider: string;
|
|
41
|
-
id: string;
|
|
42
|
-
};
|
|
43
|
-
thinkingLevel: ModeThinkingLevel;
|
|
44
|
-
activeTools: string[];
|
|
45
|
-
capabilityError?: string;
|
|
46
|
-
}
|
|
47
|
-
export type ModeSelectionResult = {
|
|
48
|
-
ok: true;
|
|
49
|
-
active?: AgentMode;
|
|
50
|
-
message: string;
|
|
51
|
-
} | {
|
|
52
|
-
ok: false;
|
|
53
|
-
message: string;
|
|
54
|
-
};
|
|
55
|
-
export interface ModeDiscoveryOptions extends ModeListOptions {
|
|
56
|
-
cwd: string;
|
|
57
|
-
agentDir?: string;
|
|
58
|
-
bundledAgentsDir?: string;
|
|
59
|
-
homeDir?: string;
|
|
60
|
-
projectTrusted: boolean;
|
|
61
|
-
}
|
|
62
|
-
export interface ModeControllerOptions {
|
|
63
|
-
agentDir?: string;
|
|
64
|
-
bundledAgentsDir?: string;
|
|
65
|
-
homeDir?: string;
|
|
66
|
-
}
|
|
67
|
-
type ModeRuntime = Pick<ExtensionAPI, 'appendEntry' | 'getActiveTools' | 'getAllTools' | 'getThinkingLevel' | 'setActiveTools' | 'setModel' | 'setThinkingLevel'>;
|
|
68
|
-
/** Discover standard agents and, when requested, qualified skill agents. */
|
|
69
|
-
export declare function discoverAgentModes(options: ModeDiscoveryOptions): Promise<ModeCatalog>;
|
|
70
|
-
/** Resolve an agent id without guessing an unqualified skill-agent name. */
|
|
71
|
-
export declare function resolveAgentMode(modes: readonly AgentMode[], requested: string): ModeSelectionResult;
|
|
72
|
-
/** Create the session-scoped controller that applies and restores complete mode profiles. */
|
|
73
|
-
export declare function createModeController(pi: ModeRuntime, options?: ModeControllerOptions): ModeController;
|
|
74
|
-
export {};
|
|
75
|
-
//# sourceMappingURL=modes.d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,EAAE,MAAM,CAAC;CAClB;AAED,KAAK,WAAW,GAAG,IAAI,CACrB,YAAY,EACV,aAAa,GACb,gBAAgB,GAChB,aAAa,GACb,kBAAkB,GAClB,gBAAgB,GAChB,UAAU,GACV,kBAAkB,CACrB,CAAC;AAiCF,4EAA4E;AAC5E,wBAAsB,kBAAkB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO,CAAC,WAAW,CAAC,CAiC5F;AAED,4EAA4E;AAC5E,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,SAAS,SAAS,EAAE,EAAE,SAAS,EAAE,MAAM,GAAG,mBAAmB,CAqBpG;AAED,6FAA6F;AAC7F,wBAAgB,oBAAoB,CAAC,EAAE,EAAE,WAAW,EAAE,OAAO,GAAE,qBAA0B,GAAG,cAAc,CAgIzG"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-review-backend.d.ts","sourceRoot":"","sources":["../../src/review/local-review-backend.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,yBAAyB,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAExE,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,yBAAyB,GAAG,aAAa,CAqCpF"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { type SessionSummary } from '../extensions/tuicrx';
|
|
2
|
-
import { type ReviewThreadRecord } from './types';
|
|
3
|
-
export interface LocalReviewDump {
|
|
4
|
-
schemaVersion: 1;
|
|
5
|
-
id: string;
|
|
6
|
-
revision: number;
|
|
7
|
-
branch: string;
|
|
8
|
-
base: string;
|
|
9
|
-
createdAt: string;
|
|
10
|
-
diff: string;
|
|
11
|
-
comments: ReviewThreadRecord[];
|
|
12
|
-
tuicr: {
|
|
13
|
-
slug: string;
|
|
14
|
-
output: string;
|
|
15
|
-
};
|
|
16
|
-
}
|
|
17
|
-
export interface CaptureLocalReviewInput {
|
|
18
|
-
cwd: string;
|
|
19
|
-
branch: string;
|
|
20
|
-
base: string;
|
|
21
|
-
diff: string;
|
|
22
|
-
session: SessionSummary;
|
|
23
|
-
now?: () => Date;
|
|
24
|
-
homeDir?: string;
|
|
25
|
-
}
|
|
26
|
-
export declare function captureLocalReview(input: CaptureLocalReviewInput): Promise<{
|
|
27
|
-
path: string;
|
|
28
|
-
dump: LocalReviewDump;
|
|
29
|
-
}>;
|
|
30
|
-
export declare function readLocalReview(cwd: string, branch: string, revision?: number, homeDir?: string): Promise<LocalReviewDump | undefined>;
|
|
31
|
-
//# sourceMappingURL=local-reviews.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"local-reviews.d.ts","sourceRoot":"","sources":["../../src/review/local-reviews.ts"],"names":[],"mappings":"AAGA,OAAO,EAAqC,KAAK,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC9F,OAAO,EAAc,KAAK,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI9D,MAAM,WAAW,eAAe;IAC9B,aAAa,EAAE,CAAC,CAAC;IACjB,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,EAAE,kBAAkB,EAAE,CAAC;IAC/B,KAAK,EAAE;QACL,IAAI,EAAE,MAAM,CAAC;QACb,MAAM,EAAE,MAAM,CAAC;KAChB,CAAC;CACH;AAED,MAAM,WAAW,uBAAuB;IACtC,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,cAAc,CAAC;IACxB,GAAG,CAAC,EAAE,MAAM,IAAI,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAID,wBAAsB,kBAAkB,CACtC,KAAK,EAAE,uBAAuB,GAC7B,OAAO,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,eAAe,CAAA;CAAE,CAAC,CAsBlD;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,MAAM,EACX,MAAM,EAAE,MAAM,EACd,QAAQ,CAAC,EAAE,MAAM,EACjB,OAAO,CAAC,EAAE,MAAM,GACf,OAAO,CAAC,eAAe,GAAG,SAAS,CAAC,CAWtC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import type { ReviewDocInput, ReviewThreadArtifactOptions, ReviewThreadRecord } from './types';
|
|
2
|
-
export declare function renderReviewDoc(input: ReviewDocInput): string;
|
|
3
|
-
export declare function renderThreadArtifact(title: string, target: string, threads: readonly ReviewThreadRecord[], options?: ReviewThreadArtifactOptions): string;
|
|
4
|
-
export declare function parseThreadArtifact(content: string): ReviewThreadRecord[];
|
|
5
|
-
export declare function upsertThreadReply(content: string, threadId: string, body: string, question?: boolean, resolved?: boolean): string;
|
|
6
|
-
//# sourceMappingURL=review-markdown.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"review-markdown.d.ts","sourceRoot":"","sources":["../../src/review/review-markdown.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,cAAc,EAAE,2BAA2B,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AA2B/F,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CA8B7D;AAED,wBAAgB,oBAAoB,CAClC,KAAK,EAAE,MAAM,EACb,MAAM,EAAE,MAAM,EACd,OAAO,EAAE,SAAS,kBAAkB,EAAE,EACtC,OAAO,GAAE,2BAAgC,GACxC,MAAM,CAwDR;AAED,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,EAAE,CAoBzE;AAED,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,IAAI,EAAE,MAAM,EACZ,QAAQ,CAAC,EAAE,OAAO,EAClB,QAAQ,CAAC,EAAE,OAAO,GACjB,MAAM,CAiBR"}
|
package/dist/tools/modes.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"modes.d.ts","sourceRoot":"","sources":["../../src/tools/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,cAAc,EAAE,MAAM,iCAAiC,CAAC;AAGlF,OAAO,KAAK,EAAe,cAAc,EAAE,MAAM,UAAU,CAAC;AAiB5D,wBAAgB,eAAe,CAAC,UAAU,EAAE,cAAc,GAAG,SAAS,cAAc,EAAE,CAiFrF"}
|
package/skills/mode/SKILL.md
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
---
|
|
2
|
-
name: mode
|
|
3
|
-
description: List, select, or clear an inline agent profile. Use when the user invokes /skill:mode or asks to change the current Diffpi mode.
|
|
4
|
-
allowed-tools: ask_user_question diffpi_modes_list diffpi_modes_set diffpi_modes_unset diffpi_modes_status
|
|
5
|
-
---
|
|
6
|
-
|
|
7
|
-
# Mode
|
|
8
|
-
|
|
9
|
-
Pi appends `/skill:mode` arguments as `User: <arguments>`. Route those arguments without manual command parsing in the extension.
|
|
10
|
-
|
|
11
|
-
## Direct requests
|
|
12
|
-
|
|
13
|
-
- If the argument is `help`, `-h`, or `--help`, print the usage and examples below. Do not call a tool.
|
|
14
|
-
- If the argument is `clear`, call `diffpi_modes_unset` and stop.
|
|
15
|
-
- If the argument is one agent id, call `diffpi_modes_set` with that exact id. On the next model turn, call `diffpi_modes_status` to verify the selected model, thinking level, and active tools; if preflight or verification fails, report the exact capability error and do not claim an active mode.
|
|
16
|
-
- A qualified id such as `spec:planner` is one agent id. The tool enables skill-agent discovery for it.
|
|
17
|
-
- If the request contains multiple agent ids or an unsupported flag, print the usage and stop.
|
|
18
|
-
|
|
19
|
-
```text
|
|
20
|
-
/skill:mode [--include-skills] [agent|clear]
|
|
21
|
-
/skill:mode
|
|
22
|
-
/skill:mode --include-skills
|
|
23
|
-
/skill:mode worker
|
|
24
|
-
/skill:mode spec:planner
|
|
25
|
-
/skill:mode clear
|
|
26
|
-
```
|
|
27
|
-
|
|
28
|
-
## Picker
|
|
29
|
-
|
|
30
|
-
Use the picker when there are no arguments or when the only argument is `--include-skills`.
|
|
31
|
-
|
|
32
|
-
1. Call `diffpi_modes_list`. Set `includeSkills` to true only for `--include-skills`.
|
|
33
|
-
2. Call `ask_user_question` with one single-select question. Do not ask as plain chat text.
|
|
34
|
-
3. Put the complete list of valid ids in the question text. Offer Default plus at most three relevant agents as structured options. The custom-answer row lets the user enter any other valid id.
|
|
35
|
-
4. If the user selects Default or enters `clear`, call `diffpi_modes_unset`.
|
|
36
|
-
5. Otherwise, call `diffpi_modes_set` with the selected or entered id. On the next model turn, call `diffpi_modes_status` and verify the selected model, thinking level, and active tools. If selection or post-turn verification fails, report the exact capability error and ensure no ghost active mode is claimed.
|
|
37
|
-
|
|
38
|
-
Do not perform unrelated work. Explain that the selected prompt, preferred available model, thinking level, and tool set start on the next turn. Mode selection is not a security boundary.
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# `/plan annotate`
|
|
2
|
-
|
|
3
|
-
**Owner/tier:** Human, interactive/read-only coordinator. **Tools:** tuicr `--file` or direct-file review plus read. **Children:** none; no automatic reviewer.
|
|
4
|
-
|
|
5
|
-
Open the selected live plan in tuicr with `--file`, or conduct a direct-file human review. Keep comments tied to current PLAN.md/brief paths. The human decides whether to apply edits; if edits are requested, return to `/plan update` or `/plan finalize` explicitly.
|
|
6
|
-
|
|
7
|
-
**Effects:** only the human review artifact/comments may change. **Failure:** report the exact file or tuicr error and leave plan files unchanged. Do not rewrite, dispatch, mark ready, or run an automated second pass.
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# open
|
|
2
|
-
|
|
3
|
-
**Owner/tier:** lifecycle coordinator, read-only.
|
|
4
|
-
|
|
5
|
-
Call `review_context` first with the exact target/backend/local, then call `review_open`. It opens an existing remote PR/MR; it never creates one. With `--local`, preserve the local behavior selected by context. Report unsupported or missing targets and browser/launch failures; do not mutate review state.
|