@difflab/pi 0.1.0 → 0.2.0-rc.202609170717.9cb91d1
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 +32 -1
- package/agents/diffpi-autonomous.md +15 -0
- package/agents/diffpi-copilot.md +22 -0
- package/agents/diffpi-orchestrator.md +23 -0
- package/agents/diffpi-planner.md +15 -0
- package/agents/diffpi-reviewer.md +27 -0
- package/agents/diffpi-tutor.md +20 -0
- package/agents/diffpi-worker.md +19 -0
- package/dist/assets.d.ts +2 -0
- package/dist/assets.d.ts.map +1 -0
- package/dist/config.d.ts +28 -0
- package/dist/config.d.ts.map +1 -0
- package/dist/environment.d.ts +40 -0
- package/dist/environment.d.ts.map +1 -0
- package/dist/extensions/index.js +2054 -182
- package/dist/forge.d.ts +48 -0
- package/dist/forge.d.ts.map +1 -0
- package/dist/fsx.d.ts +6 -0
- package/dist/fsx.d.ts.map +1 -0
- package/dist/gates.d.ts +12 -0
- package/dist/gates.d.ts.map +1 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +1528 -149
- package/dist/modes.d.ts +59 -0
- package/dist/modes.d.ts.map +1 -0
- package/dist/pi.d.ts +21 -5
- package/dist/pi.d.ts.map +1 -1
- package/dist/process.d.ts +2 -0
- package/dist/process.d.ts.map +1 -1
- package/dist/review.d.ts +57 -0
- package/dist/review.d.ts.map +1 -0
- package/dist/setup.d.ts +11 -0
- package/dist/setup.d.ts.map +1 -1
- package/dist/store.d.ts +15 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/tools/index.d.ts +5 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1763 -171
- package/dist/tools/modes.d.ts +4 -0
- package/dist/tools/modes.d.ts.map +1 -0
- package/dist/tools/review.d.ts +7 -0
- package/dist/tools/review.d.ts.map +1 -0
- package/dist/tools/setup.d.ts.map +1 -1
- package/dist/tuicr.d.ts +43 -0
- package/dist/tuicr.d.ts.map +1 -0
- package/dist/zed.d.ts +11 -0
- package/dist/zed.d.ts.map +1 -0
- package/package.json +2 -1
- package/skills/diffpi-setup/SKILL.md +15 -1
- package/skills/mode/SKILL.md +38 -0
- package/skills/review/SKILL.md +13 -0
- package/skills/review/references/workflows/address.md +6 -0
- package/skills/review/references/workflows/complete.md +6 -0
- package/skills/review/references/workflows/help.md +12 -0
- package/skills/review/references/workflows/merge.md +6 -0
- package/skills/review/references/workflows/new.md +6 -0
- package/skills/review/references/workflows/open.md +6 -0
- package/skills/review/references/workflows/publish.md +5 -0
package/dist/modes.d.ts
ADDED
|
@@ -0,0 +1,59 @@
|
|
|
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
|
+
tools: string[];
|
|
13
|
+
source: string;
|
|
14
|
+
sourcePath: string;
|
|
15
|
+
}
|
|
16
|
+
export interface ModeCatalog {
|
|
17
|
+
modes: AgentMode[];
|
|
18
|
+
diagnostics: string[];
|
|
19
|
+
}
|
|
20
|
+
export interface ModeListOptions {
|
|
21
|
+
includeSkills?: boolean;
|
|
22
|
+
}
|
|
23
|
+
export interface ModeController {
|
|
24
|
+
list(ctx: ExtensionContext, options?: ModeListOptions): Promise<ModeCatalog>;
|
|
25
|
+
set(agent: string, ctx: ExtensionContext): Promise<ModeSelectionResult>;
|
|
26
|
+
unset(ctx: ExtensionContext): Promise<ModeSelectionResult>;
|
|
27
|
+
restore(ctx: ExtensionContext): Promise<void>;
|
|
28
|
+
apply(systemPrompt: string): string;
|
|
29
|
+
getActive(): AgentMode | undefined;
|
|
30
|
+
}
|
|
31
|
+
export type ModeSelectionResult = {
|
|
32
|
+
ok: true;
|
|
33
|
+
active?: AgentMode;
|
|
34
|
+
message: string;
|
|
35
|
+
} | {
|
|
36
|
+
ok: false;
|
|
37
|
+
message: string;
|
|
38
|
+
};
|
|
39
|
+
export interface ModeDiscoveryOptions extends ModeListOptions {
|
|
40
|
+
cwd: string;
|
|
41
|
+
agentDir?: string;
|
|
42
|
+
bundledAgentsDir?: string;
|
|
43
|
+
homeDir?: string;
|
|
44
|
+
projectTrusted: boolean;
|
|
45
|
+
}
|
|
46
|
+
export interface ModeControllerOptions {
|
|
47
|
+
agentDir?: string;
|
|
48
|
+
bundledAgentsDir?: string;
|
|
49
|
+
homeDir?: string;
|
|
50
|
+
}
|
|
51
|
+
type ModeRuntime = Pick<ExtensionAPI, 'appendEntry' | 'getActiveTools' | 'getAllTools' | 'getThinkingLevel' | 'setActiveTools' | 'setModel' | 'setThinkingLevel'>;
|
|
52
|
+
/** Discover standard agents and, when requested, qualified skill agents. */
|
|
53
|
+
export declare function discoverAgentModes(options: ModeDiscoveryOptions): Promise<ModeCatalog>;
|
|
54
|
+
/** Resolve an agent id without guessing an unqualified skill-agent name. */
|
|
55
|
+
export declare function resolveAgentMode(modes: readonly AgentMode[], requested: string): ModeSelectionResult;
|
|
56
|
+
/** Create the session-scoped controller that applies and restores complete mode profiles. */
|
|
57
|
+
export declare function createModeController(pi: ModeRuntime, options?: ModeControllerOptions): ModeController;
|
|
58
|
+
export {};
|
|
59
|
+
//# sourceMappingURL=modes.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"modes.d.ts","sourceRoot":"","sources":["../src/modes.ts"],"names":[],"mappings":"AAAA,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,gBAAgB,EACtB,MAAM,iCAAiC,CAAC;AAUzC,MAAM,MAAM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AAC,MAAM,CAAC,EAAE,SAAS,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,EAAE,EAAE,KAAK,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC;AAErH,MAAM,WAAW,oBAAqB,SAAQ,eAAe;IAC3D,GAAG,EAAE,MAAM,CAAC;IACZ,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,cAAc,EAAE,OAAO,CAAC;CACzB;AAED,MAAM,WAAW,qBAAqB;IACpC,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,OAAO,CAAC,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;AA6BF,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,CA8EzG"}
|
package/dist/pi.d.ts
CHANGED
|
@@ -1,19 +1,35 @@
|
|
|
1
|
-
|
|
1
|
+
/** Result of an idempotent Pi file or configuration update. */
|
|
2
2
|
export interface PiConfigResult {
|
|
3
|
+
/** File that was inspected or changed. */
|
|
3
4
|
path: string;
|
|
5
|
+
/** Whether the desired content differs from the current content. */
|
|
4
6
|
changed: boolean;
|
|
7
|
+
/** Whether the target existed before the operation. */
|
|
5
8
|
existed: boolean;
|
|
9
|
+
/** Whether dry-run mode reported a change without writing it. */
|
|
6
10
|
planned: boolean;
|
|
7
11
|
}
|
|
8
|
-
|
|
12
|
+
/** Public Pi environment operations used by setup. */
|
|
13
|
+
export interface PiOperations {
|
|
14
|
+
/** Find the Pi executable on the current PATH. */
|
|
9
15
|
executableCheck(): Promise<string | undefined>;
|
|
16
|
+
/** Return the text produced by `pi list`. */
|
|
10
17
|
packageList(executable: string): Promise<string>;
|
|
18
|
+
/** Match one package source against `pi list` output. */
|
|
11
19
|
packageCheck(listOutput: string, source: string): boolean;
|
|
20
|
+
/** Install one Pi package source. */
|
|
12
21
|
packageInstall(executable: string, source: string): Promise<void>;
|
|
22
|
+
/** Resolve Pi's user-level agent directory. */
|
|
13
23
|
agentDir(homeDir?: string): string;
|
|
24
|
+
/** Create or update one package-managed agent file. */
|
|
25
|
+
agentEnsure(filename: string, content: string, agentDir?: string, dryRun?: boolean): Promise<PiConfigResult>;
|
|
26
|
+
/** Report whether a skill exists in either supported global skill root. */
|
|
14
27
|
skillCheckGlobal(name: string, agentDir?: string, sharedSkillsDir?: string): Promise<boolean>;
|
|
28
|
+
/** Install selected upstream skills into Pi's global skill roots. */
|
|
15
29
|
skillInstallGlobal(miseExecutable: string, source: string, names: readonly string[]): Promise<void>;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
30
|
+
/** Apply an idempotent update to one Pi JSON configuration file. */
|
|
31
|
+
configEnsure(path: string, update: (config: Record<string, unknown>) => Record<string, unknown>, dryRun?: boolean): Promise<PiConfigResult>;
|
|
32
|
+
}
|
|
33
|
+
/** Focused operations for Pi packages, agents, skills, and JSON configuration. */
|
|
34
|
+
export declare const pi: PiOperations;
|
|
19
35
|
//# sourceMappingURL=pi.d.ts.map
|
package/dist/pi.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pi.d.ts","sourceRoot":"","sources":["../src/pi.ts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M,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,CAAC;IACpG,oEAAoE;IACpE,YAAY,CACV,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAAK,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpE,MAAM,CAAC,EAAE,OAAO,GACf,OAAO,CAAC,cAAc,CAAC,CAAC;CAC5B;AAID,kFAAkF;AAClF,eAAO,MAAM,EAAE,EAAE,YAUhB,CAAC"}
|
package/dist/process.d.ts
CHANGED
|
@@ -6,6 +6,8 @@ export interface CommandResult {
|
|
|
6
6
|
export interface CommandOptions {
|
|
7
7
|
cwd?: string;
|
|
8
8
|
env?: NodeJS.ProcessEnv;
|
|
9
|
+
input?: string;
|
|
10
|
+
capture?: 'bounded' | 'unbounded';
|
|
9
11
|
}
|
|
10
12
|
export declare function findExecutable(name: string): Promise<string | undefined>;
|
|
11
13
|
export declare function run(command: string, args: string[], options?: CommandOptions): Promise<CommandResult>;
|
package/dist/process.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../src/process.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;
|
|
1
|
+
{"version":3,"file":"process.d.ts","sourceRoot":"","sources":["../src/process.ts"],"names":[],"mappings":"AAWA,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,GAAG,CAAC,EAAE,MAAM,CAAC,UAAU,CAAC;IACxB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,OAAO,CAAC,EAAE,SAAS,GAAG,WAAW,CAAC;CACnC;AAID,wBAAsB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC,CAsB9E;AAED,wBAAgB,GAAG,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,EAAE,OAAO,GAAE,cAAmB,GAAG,OAAO,CAAC,aAAa,CAAC,CAiCzG;AAED,wBAAsB,UAAU,CAC9B,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,MAAM,EAAE,EACd,OAAO,GAAE,cAAmB,GAC3B,OAAO,CAAC,aAAa,CAAC,CAMxB"}
|
package/dist/review.d.ts
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import type { ReviewComment } from './forge';
|
|
3
|
+
import type { GateResult } from './gates';
|
|
4
|
+
export declare const severitySchema: z.ZodEnum<{
|
|
5
|
+
BLOCKING: "BLOCKING";
|
|
6
|
+
CONSIDER: "CONSIDER";
|
|
7
|
+
NOTE: "NOTE";
|
|
8
|
+
}>;
|
|
9
|
+
export type Severity = z.infer<typeof severitySchema>;
|
|
10
|
+
export declare const findingSchema: z.ZodObject<{
|
|
11
|
+
file: z.ZodString;
|
|
12
|
+
line: z.ZodNumber;
|
|
13
|
+
severity: z.ZodEnum<{
|
|
14
|
+
BLOCKING: "BLOCKING";
|
|
15
|
+
CONSIDER: "CONSIDER";
|
|
16
|
+
NOTE: "NOTE";
|
|
17
|
+
}>;
|
|
18
|
+
body: z.ZodString;
|
|
19
|
+
reference: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type Finding = z.infer<typeof findingSchema>;
|
|
22
|
+
export declare const findingsSchema: z.ZodArray<z.ZodObject<{
|
|
23
|
+
file: z.ZodString;
|
|
24
|
+
line: z.ZodNumber;
|
|
25
|
+
severity: z.ZodEnum<{
|
|
26
|
+
BLOCKING: "BLOCKING";
|
|
27
|
+
CONSIDER: "CONSIDER";
|
|
28
|
+
NOTE: "NOTE";
|
|
29
|
+
}>;
|
|
30
|
+
body: z.ZodString;
|
|
31
|
+
reference: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
}, z.core.$strip>>;
|
|
33
|
+
export declare function reviewSlug(input: string): string;
|
|
34
|
+
export declare function mmddyy(date?: Date): string;
|
|
35
|
+
export declare function reviewRecordName(branch: string, date?: Date): string;
|
|
36
|
+
export declare function dedupeFindings(findings: Finding[]): Finding[];
|
|
37
|
+
export declare function toReviewComments(findings: Finding[]): ReviewComment[];
|
|
38
|
+
export interface ReviewDocInput {
|
|
39
|
+
title: string;
|
|
40
|
+
number?: number;
|
|
41
|
+
url?: string;
|
|
42
|
+
author?: string;
|
|
43
|
+
baseRef?: string;
|
|
44
|
+
headRef?: string;
|
|
45
|
+
additions?: number;
|
|
46
|
+
deletions?: number;
|
|
47
|
+
changedFiles?: number;
|
|
48
|
+
findings: Finding[];
|
|
49
|
+
overallIssues: string[];
|
|
50
|
+
gates: GateResult[];
|
|
51
|
+
notVerified: string[];
|
|
52
|
+
timestamp?: string;
|
|
53
|
+
}
|
|
54
|
+
export declare function renderReviewDoc(input: ReviewDocInput): string;
|
|
55
|
+
export declare function renderPrBody(intent: string, changes: string[], validation: string[]): string;
|
|
56
|
+
export declare function reviewWorkingDir(storeReviewsDir: string, slug: string): string;
|
|
57
|
+
//# sourceMappingURL=review.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"review.d.ts","sourceRoot":"","sources":["../src/review.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,SAAS,CAAC;AAC7C,OA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,wBAAgB,eAAe,CAAC,KAAK,EAAE,cAAc,GAAG,MAAM,CA6B7D;AAED,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE,UAAU,EAAE,MAAM,EAAE,GAAG,MAAM,CAO5F;AAED,wBAAgB,gBAAgB,CAAC,eAAe,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,CAE9E"}
|
package/dist/setup.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export type IssueTracker = 'none' | 'linear' | 'jira';
|
|
2
|
+
export type Forge = 'none' | 'github' | 'gitlab';
|
|
2
3
|
export type SetupStatus = 'ready' | 'installed' | 'updated' | 'skipped' | 'planned';
|
|
3
4
|
export interface SetupAction {
|
|
4
5
|
name: string;
|
|
@@ -7,13 +8,20 @@ export interface SetupAction {
|
|
|
7
8
|
}
|
|
8
9
|
export interface SetupOptions {
|
|
9
10
|
issueTracker?: IssueTracker;
|
|
11
|
+
forge?: Forge;
|
|
12
|
+
bindZedKey?: boolean;
|
|
10
13
|
installMiseHook?: boolean;
|
|
11
14
|
dryRun?: boolean;
|
|
12
15
|
homeDir?: string;
|
|
13
16
|
agentDir?: string;
|
|
17
|
+
bundledAgentsDir?: string;
|
|
14
18
|
shell?: string;
|
|
15
19
|
platform?: NodeJS.Platform;
|
|
16
20
|
projectDir?: string;
|
|
21
|
+
availableModels?: readonly {
|
|
22
|
+
provider: string;
|
|
23
|
+
id: string;
|
|
24
|
+
}[];
|
|
17
25
|
onProgress?: (message: string) => void;
|
|
18
26
|
}
|
|
19
27
|
export interface SetupResult {
|
|
@@ -27,7 +35,10 @@ export declare function ensureMise(options?: SetupOptions): Promise<{
|
|
|
27
35
|
export declare function ensureMiseHooks(miseExecutable: string, options?: SetupOptions): Promise<SetupAction>;
|
|
28
36
|
export declare function ensureMiseDeps(miseExecutable: string, options?: SetupOptions): Promise<SetupAction[]>;
|
|
29
37
|
export declare function ensurePiPlugins(options?: SetupOptions): Promise<SetupAction[]>;
|
|
38
|
+
export declare function ensurePiAgents(options?: SetupOptions): Promise<SetupAction[]>;
|
|
30
39
|
export declare function ensurePiSkills(miseExecutable: string, options?: SetupOptions): Promise<SetupAction[]>;
|
|
31
40
|
export declare function ensureMcpAdapters(miseExecutable: string, options?: SetupOptions): Promise<SetupAction[]>;
|
|
32
41
|
export declare function setupPi(options?: SetupOptions): Promise<SetupResult>;
|
|
42
|
+
export declare function setupRequiresRestart(actions: readonly SetupAction[]): boolean;
|
|
43
|
+
export declare function ensureZedIntegration(options?: SetupOptions): Promise<SetupAction[]>;
|
|
33
44
|
//# sourceMappingURL=setup.d.ts.map
|
package/dist/setup.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"setup.d.ts","sourceRoot":"","sources":["../src/setup.ts"],"names":[],"mappings":"AAqDA,MAAM,MAAM,YAAY,GAAG,MAAM,GAAG,QAAQ,GAAG,MAAM,CAAC;AACtD,MAAM,MAAM,KAAK,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;AACjD,MAAM,MAAM,WAAW,GAAG,OAAO,GAAG,WAAW,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;AAEpF,MAAM,WAAW,WAAW;IAC1B,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,WAAW,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,YAAY;IAC3B,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,KAAK,CAAC,EAAE,KAAK,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC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,wBAAsB,OAAO,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,CAAC,CAgB9E;AAED,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,SAAS,WAAW,EAAE,GAAG,OAAO,CAW7E;AA6CD,wBAAsB,oBAAoB,CAAC,OAAO,GAAE,YAAiB,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CA0B7F"}
|
package/dist/store.d.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export interface StoreInfo {
|
|
2
|
+
slug: string;
|
|
3
|
+
root: string;
|
|
4
|
+
dest: string;
|
|
5
|
+
link: string;
|
|
6
|
+
linked: boolean;
|
|
7
|
+
}
|
|
8
|
+
export declare function gitToplevel(cwd: string): Promise<string>;
|
|
9
|
+
export declare function computeProjectSlug(cwd: string): Promise<string>;
|
|
10
|
+
export declare function storeGlobalRoot(homeDir?: string): string;
|
|
11
|
+
export declare function ensureStore(cwd: string, homeDir?: string): Promise<StoreInfo>;
|
|
12
|
+
export declare function storeDir(cwd: string, homeDir?: string): Promise<string>;
|
|
13
|
+
export declare function reviewsDir(cwd: string, homeDir?: string): Promise<string>;
|
|
14
|
+
export declare function sessionsDir(cwd: string, homeDir?: string): Promise<string>;
|
|
15
|
+
//# sourceMappingURL=store.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["../src/store.ts"],"names":[],"mappings":"AASA,MAAM,WAAW,SAAS;IACxB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAI9D;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAqBrE;AAED,wBAAgB,eAAe,CAAC,OAAO,SAAY,GAAG,MAAM,CAE3D;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAY,GAAG,OAAO,CAAC,SAAS,CAAC,CAUtF;AAED,wBAAsB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAEhF;AAED,wBAAsB,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAIlF;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,SAAY,GAAG,OAAO,CAAC,MAAM,CAAC,CAInF"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
|
-
import type { ExtensionAPI } from '@earendil-works/pi-coding-agent';
|
|
1
|
+
import type { ExtensionAPI, ToolDefinition } from '@earendil-works/pi-coding-agent';
|
|
2
|
+
import type { ModeController } from '../modes';
|
|
2
3
|
export { createDiffpiReloadTool } from './reload';
|
|
4
|
+
export { createModeTools } from './modes';
|
|
5
|
+
export { createReviewTools } from './review';
|
|
3
6
|
export { diffpiSetupTool, diffpiValidateTool } from './setup';
|
|
4
|
-
export declare function createPiTools(pi: Pick<ExtensionAPI, 'sendUserMessage'
|
|
7
|
+
export declare function createPiTools(pi: Pick<ExtensionAPI, 'sendUserMessage'>, modes: ModeController): readonly ToolDefinition[];
|
|
5
8
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,cAAc,EAAE,MAAM,iCAAiC,CAAC;AACpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,UAAU,CAAC;AAQ/C,OAAO,EAAE,sBAAsB,EAAE,MAAM,UAAU,CAAC;AAClD,OAAO,EAAE,eAAe,EAAE,MAAM,SAAS,CAAC;AAC1C,OAAO,EAAE,iBAAiB,EAAE,MAAM,UAAU,CAAC;AAC7C,OAAO,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAI9D,wBAAgB,aAAa,CAC3B,EAAE,EAAE,IAAI,CAAC,YAAY,EAAE,iBAAiB,CAAC,EACzC,KAAK,EAAE,cAAc,GACpB,SAAS,cAAc,EAAE,CAQ3B"}
|