@oh-my-pi/pi-coding-agent 17.2.6 → 17.2.8
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/CHANGELOG.md +23 -1
- package/dist/{CHANGELOG-gs76k6wc.md → CHANGELOG-0b0w17se.md} +23 -1
- package/dist/cli.js +3850 -3887
- package/dist/types/advisor/advise-tool.d.ts +10 -4
- package/dist/types/autoresearch/tools/init-experiment.d.ts +19 -7
- package/dist/types/autoresearch/tools/log-experiment.d.ts +19 -11
- package/dist/types/autoresearch/tools/run-experiment.d.ts +4 -2
- package/dist/types/autoresearch/tools/update-notes.d.ts +5 -2
- package/dist/types/commit/agentic/tools/analyze-file.d.ts +5 -2
- package/dist/types/commit/agentic/tools/git-file-diff.d.ts +5 -2
- package/dist/types/commit/agentic/tools/git-hunk.d.ts +6 -2
- package/dist/types/commit/agentic/tools/git-overview.d.ts +5 -2
- package/dist/types/commit/agentic/tools/propose-changelog.d.ts +29 -7
- package/dist/types/commit/agentic/tools/propose-commit.d.ts +14 -4
- package/dist/types/commit/agentic/tools/recent-commits.d.ts +4 -2
- package/dist/types/commit/agentic/tools/schemas.d.ts +7 -3
- package/dist/types/commit/agentic/tools/split-commit.d.ts +37 -10
- package/dist/types/commit/changelog/generate.d.ts +13 -3
- package/dist/types/commit/shared-llm.d.ts +13 -4
- package/dist/types/config/config-file.d.ts +1 -1
- package/dist/types/config/models-config-schema-bundle.d.ts +1992 -981
- package/dist/types/config/models-config-schema.d.ts +1201 -580
- package/dist/types/config/models-config.d.ts +355 -371
- package/dist/types/edit/hashline/params.d.ts +4 -2
- package/dist/types/edit/modes/apply-patch.d.ts +4 -2
- package/dist/types/edit/modes/patch.d.ts +16 -5
- package/dist/types/edit/modes/replace.d.ts +8 -3
- package/dist/types/eval/bridge-timeout.d.ts +5 -2
- package/dist/types/eval/completion-bridge.d.ts +13 -0
- package/dist/types/eval/py/tool-bridge.d.ts +12 -0
- package/dist/types/extensibility/custom-commands/types.d.ts +4 -4
- package/dist/types/extensibility/custom-tools/types.d.ts +4 -4
- package/dist/types/extensibility/extensions/types.d.ts +4 -4
- package/dist/types/extensibility/hooks/types.d.ts +4 -4
- package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +1 -1
- package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +1 -1
- package/dist/types/extensibility/legacy-typebox.d.ts +8 -0
- package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +6 -13
- package/dist/types/goals/tools/goal-tool.d.ts +12 -4
- package/dist/types/lsp/index.d.ts +15 -5
- package/dist/types/lsp/types.d.ts +15 -5
- package/dist/types/security/contracts/schemas.d.ts +985 -409
- package/dist/types/security/publication.d.ts +92 -34
- package/dist/types/session/agent-session-types.d.ts +1 -1
- package/dist/types/session/session-entries.d.ts +1 -1
- package/dist/types/session/session-manager.d.ts +1 -1
- package/dist/types/task/types.d.ts +63 -18
- package/dist/types/tools/ask.d.ts +34 -8
- package/dist/types/tools/ast-edit.d.ts +16 -4
- package/dist/types/tools/ast-grep.d.ts +12 -4
- package/dist/types/tools/bash.d.ts +20 -11
- package/dist/types/tools/browser.d.ts +64 -20
- package/dist/types/tools/checkpoint.d.ts +16 -8
- package/dist/types/tools/computer.d.ts +1 -1
- package/dist/types/tools/debug.d.ts +118 -48
- package/dist/types/tools/eval.d.ts +11 -5
- package/dist/types/tools/gh.d.ts +74 -26
- package/dist/types/tools/glob.d.ts +16 -6
- package/dist/types/tools/grep.d.ts +18 -6
- package/dist/types/tools/hub/index.d.ts +116 -46
- package/dist/types/tools/image-gen.d.ts +25 -8
- package/dist/types/tools/inspect-image.d.ts +10 -4
- package/dist/types/tools/learn.d.ts +26 -8
- package/dist/types/tools/manage-skill.d.ts +16 -6
- package/dist/types/tools/memory-edit.d.ts +18 -6
- package/dist/types/tools/memory-recall.d.ts +8 -4
- package/dist/types/tools/memory-reflect.d.ts +10 -4
- package/dist/types/tools/memory-retain.d.ts +14 -4
- package/dist/types/tools/read.d.ts +8 -4
- package/dist/types/tools/security-scan.d.ts +82 -30
- package/dist/types/tools/todo.d.ts +30 -10
- package/dist/types/tools/tts.d.ts +12 -5
- package/dist/types/tools/vibe.d.ts +42 -18
- package/dist/types/tools/write.d.ts +10 -4
- package/dist/types/web/search/index.d.ts +20 -6
- package/package.json +13 -13
- package/scripts/legacy-pi-virtual-module.ts +2 -2
- package/src/advisor/advise-tool.ts +1 -1
- package/src/advisor/config.ts +1 -1
- package/src/autoresearch/tools/init-experiment.ts +1 -2
- package/src/autoresearch/tools/log-experiment.ts +1 -2
- package/src/autoresearch/tools/run-experiment.ts +1 -1
- package/src/autoresearch/tools/update-notes.ts +1 -1
- package/src/commit/agentic/tools/analyze-file.ts +1 -1
- package/src/commit/agentic/tools/git-file-diff.ts +1 -1
- package/src/commit/agentic/tools/git-hunk.ts +1 -1
- package/src/commit/agentic/tools/git-overview.ts +1 -1
- package/src/commit/agentic/tools/propose-changelog.ts +1 -1
- package/src/commit/agentic/tools/propose-commit.ts +1 -1
- package/src/commit/agentic/tools/recent-commits.ts +1 -1
- package/src/commit/agentic/tools/schemas.ts +1 -1
- package/src/commit/agentic/tools/split-commit.ts +1 -1
- package/src/commit/analysis/summary.ts +1 -1
- package/src/commit/changelog/generate.ts +1 -1
- package/src/config/config-file.ts +2 -2
- package/src/config/models-config-schema-bundle.ts +1 -8
- package/src/discovery/codex.ts +22 -9
- package/src/edit/hashline/params.ts +1 -1
- package/src/edit/modes/apply-patch.ts +1 -1
- package/src/edit/modes/patch.ts +1 -1
- package/src/edit/modes/replace.ts +2 -1
- package/src/eval/agent-bridge.ts +4 -2
- package/src/eval/bridge-timeout.ts +5 -2
- package/src/eval/completion-bridge.ts +3 -2
- package/src/eval/executor-base.ts +20 -1
- package/src/eval/js/context-manager.ts +94 -6
- package/src/eval/py/tool-bridge.ts +29 -9
- package/src/extensibility/custom-commands/loader.ts +3 -3
- package/src/extensibility/custom-commands/types.ts +4 -4
- package/src/extensibility/custom-tools/loader.ts +3 -3
- package/src/extensibility/custom-tools/types.ts +5 -4
- package/src/extensibility/extensions/loader.ts +3 -3
- package/src/extensibility/extensions/types.ts +5 -4
- package/src/extensibility/hooks/loader.ts +3 -3
- package/src/extensibility/hooks/types.ts +4 -4
- package/src/extensibility/legacy-pi-ai-shim.ts +1 -1
- package/src/extensibility/legacy-pi-coding-agent-shim.ts +2 -2
- package/src/extensibility/legacy-typebox.ts +101 -0
- package/src/extensibility/plugins/legacy-pi-compat.ts +13 -22
- package/src/goals/tools/goal-tool.ts +1 -1
- package/src/lsp/types.ts +1 -1
- package/src/modes/theme/theme.ts +3 -3
- package/src/security/contracts/schemas.ts +1 -5
- package/src/security/contracts/validation.ts +1 -1
- package/src/security/publication.ts +1 -1
- package/src/session/agent-session-types.ts +1 -1
- package/src/session/agent-session.ts +1 -2
- package/src/session/session-context.ts +3 -3
- package/src/session/session-entries.ts +1 -1
- package/src/session/session-manager.ts +1 -1
- package/src/slash-commands/builtin-registry.ts +3 -4
- package/src/task/types.ts +1 -1
- package/src/tools/ask.ts +1 -1
- package/src/tools/ast-edit.ts +1 -1
- package/src/tools/ast-grep.ts +1 -1
- package/src/tools/bash.ts +61 -3
- package/src/tools/browser.ts +1 -1
- package/src/tools/checkpoint.ts +1 -1
- package/src/tools/computer.ts +1 -1
- package/src/tools/debug.ts +1 -1
- package/src/tools/eval.ts +1 -1
- package/src/tools/gh.ts +1 -2
- package/src/tools/glob.ts +1 -1
- package/src/tools/grep.ts +1 -1
- package/src/tools/hub/index.ts +1 -1
- package/src/tools/image-gen.ts +1 -1
- package/src/tools/inspect-image.ts +1 -1
- package/src/tools/learn.ts +1 -1
- package/src/tools/manage-skill.ts +1 -1
- package/src/tools/memory-edit.ts +1 -1
- package/src/tools/memory-recall.ts +1 -1
- package/src/tools/memory-reflect.ts +1 -1
- package/src/tools/memory-retain.ts +1 -1
- package/src/tools/read.ts +1 -1
- package/src/tools/security-scan.ts +1 -1
- package/src/tools/todo.ts +1 -1
- package/src/tools/tts.ts +1 -1
- package/src/tools/vibe.ts +2 -1
- package/src/tools/write.ts +1 -1
- package/src/web/search/index.ts +2 -1
- package/dist/types/extensibility/typebox.d.ts +0 -181
- package/src/extensibility/typebox.ts +0 -958
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { AgentIdentity, AgentTelemetryConfig, AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
|
|
2
|
-
declare const adviseSchema: import("
|
|
2
|
+
declare const adviseSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
3
3
|
note: string;
|
|
4
4
|
severity?: "blocker" | "concern" | "nit" | undefined;
|
|
5
|
-
}, {
|
|
5
|
+
}, {
|
|
6
|
+
note: string;
|
|
7
|
+
severity?: "blocker" | "concern" | "nit" | undefined;
|
|
8
|
+
}>;
|
|
6
9
|
export type AdviseParams = typeof adviseSchema.infer;
|
|
7
10
|
export type AdvisorSeverity = "nit" | "concern" | "blocker";
|
|
8
11
|
export interface AdviseDetails {
|
|
@@ -103,10 +106,13 @@ export declare class AdviseTool implements AgentTool<typeof adviseSchema, Advise
|
|
|
103
106
|
readonly name = "advise";
|
|
104
107
|
readonly label = "Advise";
|
|
105
108
|
readonly description: string;
|
|
106
|
-
readonly parameters: import("
|
|
109
|
+
readonly parameters: import("@oh-my-pi/omptype").FluentType<{
|
|
110
|
+
note: string;
|
|
111
|
+
severity?: "blocker" | "concern" | "nit" | undefined;
|
|
112
|
+
}, {
|
|
107
113
|
note: string;
|
|
108
114
|
severity?: "blocker" | "concern" | "nit" | undefined;
|
|
109
|
-
}
|
|
115
|
+
}>;
|
|
110
116
|
readonly intent: "omit";
|
|
111
117
|
constructor(onAdvice: (note: string, severity?: AdviseDetails["severity"]) => void);
|
|
112
118
|
/**
|
|
@@ -2,19 +2,31 @@ import type { ToolDefinition } from "../../extensibility/extensions/index.js";
|
|
|
2
2
|
import type { AutoresearchToolFactoryOptions, ExperimentState } from "../types.js";
|
|
3
3
|
export declare const HARNESS_FILENAME = "autoresearch.sh";
|
|
4
4
|
export declare const DEFAULT_HARNESS_COMMAND = "bash autoresearch.sh";
|
|
5
|
-
declare const initExperimentSchema: import("
|
|
6
|
-
|
|
5
|
+
declare const initExperimentSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
6
|
+
constraints?: string[] | undefined;
|
|
7
|
+
direction?: "higher" | "lower" | undefined;
|
|
7
8
|
goal?: string | undefined;
|
|
8
|
-
|
|
9
|
+
max_iterations?: number | undefined;
|
|
9
10
|
metric_unit?: string | undefined;
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
scope_paths?: string[] | undefined;
|
|
11
|
+
name: string;
|
|
12
|
+
new_segment?: boolean | undefined;
|
|
13
13
|
off_limits?: string[] | undefined;
|
|
14
|
+
primary_metric: string;
|
|
15
|
+
scope_paths?: string[] | undefined;
|
|
16
|
+
secondary_metrics?: string[] | undefined;
|
|
17
|
+
}, {
|
|
14
18
|
constraints?: string[] | undefined;
|
|
19
|
+
direction?: "higher" | "lower" | undefined;
|
|
20
|
+
goal?: string | undefined;
|
|
15
21
|
max_iterations?: number | undefined;
|
|
22
|
+
metric_unit?: string | undefined;
|
|
23
|
+
name: string;
|
|
16
24
|
new_segment?: boolean | undefined;
|
|
17
|
-
|
|
25
|
+
off_limits?: string[] | undefined;
|
|
26
|
+
primary_metric: string;
|
|
27
|
+
scope_paths?: string[] | undefined;
|
|
28
|
+
secondary_metrics?: string[] | undefined;
|
|
29
|
+
}>;
|
|
18
30
|
interface InitExperimentDetails {
|
|
19
31
|
state: ExperimentState;
|
|
20
32
|
createdSession: boolean;
|
|
@@ -1,21 +1,29 @@
|
|
|
1
1
|
import type { ToolDefinition } from "../../extensibility/extensions/index.js";
|
|
2
2
|
import type { AutoresearchToolFactoryOptions, LogDetails } from "../types.js";
|
|
3
|
-
declare const logExperimentSchema: import("
|
|
3
|
+
declare const logExperimentSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
|
+
asi?: Record<string, unknown> | undefined;
|
|
5
|
+
commit?: string | undefined;
|
|
6
|
+
description: string;
|
|
7
|
+
flag_runs?: {
|
|
8
|
+
reason: string;
|
|
9
|
+
run_id: number;
|
|
10
|
+
}[] | undefined;
|
|
11
|
+
justification?: string | undefined;
|
|
4
12
|
metric: number;
|
|
13
|
+
metrics?: Record<string, number> | undefined;
|
|
5
14
|
status: "checks_failed" | "crash" | "discard" | "keep";
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
[x: string]: number;
|
|
9
|
-
} | undefined;
|
|
10
|
-
asi?: {
|
|
11
|
-
[x: string]: unknown;
|
|
12
|
-
} | undefined;
|
|
15
|
+
}, {
|
|
16
|
+
asi?: Record<string, unknown> | undefined;
|
|
13
17
|
commit?: string | undefined;
|
|
14
|
-
|
|
18
|
+
description: string;
|
|
15
19
|
flag_runs?: {
|
|
16
|
-
run_id: number;
|
|
17
20
|
reason: string;
|
|
21
|
+
run_id: number;
|
|
18
22
|
}[] | undefined;
|
|
19
|
-
|
|
23
|
+
justification?: string | undefined;
|
|
24
|
+
metric: number;
|
|
25
|
+
metrics?: Record<string, number> | undefined;
|
|
26
|
+
status: "checks_failed" | "crash" | "discard" | "keep";
|
|
27
|
+
}>;
|
|
20
28
|
export declare function createLogExperimentTool(options: AutoresearchToolFactoryOptions): ToolDefinition<typeof logExperimentSchema, LogDetails>;
|
|
21
29
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import type { ToolDefinition } from "../../extensibility/extensions/index.js";
|
|
2
2
|
import type { AutoresearchToolFactoryOptions, RunDetails, RunExperimentProgressDetails } from "../types.js";
|
|
3
|
-
declare const runExperimentSchema: import("
|
|
3
|
+
declare const runExperimentSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
4
|
timeout_seconds?: number | undefined;
|
|
5
|
-
}, {
|
|
5
|
+
}, {
|
|
6
|
+
timeout_seconds?: number | undefined;
|
|
7
|
+
}>;
|
|
6
8
|
export declare function createRunExperimentTool(options: AutoresearchToolFactoryOptions): ToolDefinition<typeof runExperimentSchema, RunDetails | RunExperimentProgressDetails>;
|
|
7
9
|
export {};
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { ToolDefinition } from "../../extensibility/extensions/index.js";
|
|
2
2
|
import type { AutoresearchToolFactoryOptions } from "../types.js";
|
|
3
|
-
declare const updateNotesSchema: import("
|
|
3
|
+
declare const updateNotesSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
|
+
append_idea?: string | undefined;
|
|
4
5
|
body: string;
|
|
6
|
+
}, {
|
|
5
7
|
append_idea?: string | undefined;
|
|
6
|
-
|
|
8
|
+
body: string;
|
|
9
|
+
}>;
|
|
7
10
|
interface UpdateNotesDetails {
|
|
8
11
|
notes: string;
|
|
9
12
|
}
|
|
@@ -3,10 +3,13 @@ import type { ModelRegistry } from "../../../config/model-registry.js";
|
|
|
3
3
|
import type { Settings } from "../../../config/settings.js";
|
|
4
4
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
5
5
|
import type { AuthStorage } from "../../../session/auth-storage.js";
|
|
6
|
-
declare const analyzeFileSchema: import("
|
|
6
|
+
declare const analyzeFileSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
7
7
|
files: string[];
|
|
8
8
|
goal?: string | undefined;
|
|
9
|
-
}, {
|
|
9
|
+
}, {
|
|
10
|
+
files: string[];
|
|
11
|
+
goal?: string | undefined;
|
|
12
|
+
}>;
|
|
10
13
|
export declare function createAnalyzeFileTool(options: {
|
|
11
14
|
cwd: string;
|
|
12
15
|
authStorage: AuthStorage;
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
import type { CommitAgentState } from "../../../commit/agentic/state.js";
|
|
2
2
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
3
3
|
export declare function getFilePriority(filename: string): number;
|
|
4
|
-
declare const gitFileDiffSchema: import("
|
|
4
|
+
declare const gitFileDiffSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
5
5
|
files: string[];
|
|
6
6
|
staged?: boolean | undefined;
|
|
7
|
-
}, {
|
|
7
|
+
}, {
|
|
8
|
+
files: string[];
|
|
9
|
+
staged?: boolean | undefined;
|
|
10
|
+
}>;
|
|
8
11
|
export declare function createGitFileDiffTool(cwd: string, state: CommitAgentState): CustomTool<typeof gitFileDiffSchema>;
|
|
9
12
|
export {};
|
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
2
|
-
declare const gitHunkSchema: import("
|
|
2
|
+
declare const gitHunkSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
3
3
|
file: string;
|
|
4
4
|
hunks?: number[] | undefined;
|
|
5
5
|
staged?: boolean | undefined;
|
|
6
|
-
}, {
|
|
6
|
+
}, {
|
|
7
|
+
file: string;
|
|
8
|
+
hunks?: number[] | undefined;
|
|
9
|
+
staged?: boolean | undefined;
|
|
10
|
+
}>;
|
|
7
11
|
export declare function createGitHunkTool(cwd: string): CustomTool<typeof gitHunkSchema>;
|
|
8
12
|
export {};
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import type { CommitAgentState } from "../../../commit/agentic/state.js";
|
|
2
2
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
3
|
-
declare const gitOverviewSchema: import("
|
|
3
|
+
declare const gitOverviewSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
|
+
include_untracked?: boolean | undefined;
|
|
4
5
|
staged?: boolean | undefined;
|
|
6
|
+
}, {
|
|
5
7
|
include_untracked?: boolean | undefined;
|
|
6
|
-
|
|
8
|
+
staged?: boolean | undefined;
|
|
9
|
+
}>;
|
|
7
10
|
export declare function createGitOverviewTool(cwd: string, state: CommitAgentState): CustomTool<typeof gitOverviewSchema>;
|
|
8
11
|
export {};
|
|
@@ -1,27 +1,49 @@
|
|
|
1
1
|
import type { CommitAgentState } from "../../../commit/agentic/state.js";
|
|
2
2
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
3
|
-
declare const proposeChangelogSchema: import("
|
|
3
|
+
declare const proposeChangelogSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
4
|
entries: {
|
|
5
|
-
|
|
6
|
-
entries: {
|
|
7
|
-
"Breaking Changes"?: string[] | undefined;
|
|
5
|
+
deletions?: {
|
|
8
6
|
Added?: string[] | undefined;
|
|
7
|
+
"Breaking Changes"?: string[] | undefined;
|
|
9
8
|
Changed?: string[] | undefined;
|
|
10
9
|
Deprecated?: string[] | undefined;
|
|
10
|
+
Fixed?: string[] | undefined;
|
|
11
11
|
Removed?: string[] | undefined;
|
|
12
|
+
Security?: string[] | undefined;
|
|
13
|
+
} | undefined;
|
|
14
|
+
entries: {
|
|
15
|
+
Added?: string[] | undefined;
|
|
16
|
+
"Breaking Changes"?: string[] | undefined;
|
|
17
|
+
Changed?: string[] | undefined;
|
|
18
|
+
Deprecated?: string[] | undefined;
|
|
12
19
|
Fixed?: string[] | undefined;
|
|
20
|
+
Removed?: string[] | undefined;
|
|
13
21
|
Security?: string[] | undefined;
|
|
14
22
|
};
|
|
23
|
+
path: string;
|
|
24
|
+
}[];
|
|
25
|
+
}, {
|
|
26
|
+
entries: {
|
|
15
27
|
deletions?: {
|
|
16
|
-
"Breaking Changes"?: string[] | undefined;
|
|
17
28
|
Added?: string[] | undefined;
|
|
29
|
+
"Breaking Changes"?: string[] | undefined;
|
|
18
30
|
Changed?: string[] | undefined;
|
|
19
31
|
Deprecated?: string[] | undefined;
|
|
20
|
-
Removed?: string[] | undefined;
|
|
21
32
|
Fixed?: string[] | undefined;
|
|
33
|
+
Removed?: string[] | undefined;
|
|
22
34
|
Security?: string[] | undefined;
|
|
23
35
|
} | undefined;
|
|
36
|
+
entries: {
|
|
37
|
+
Added?: string[] | undefined;
|
|
38
|
+
"Breaking Changes"?: string[] | undefined;
|
|
39
|
+
Changed?: string[] | undefined;
|
|
40
|
+
Deprecated?: string[] | undefined;
|
|
41
|
+
Fixed?: string[] | undefined;
|
|
42
|
+
Removed?: string[] | undefined;
|
|
43
|
+
Security?: string[] | undefined;
|
|
44
|
+
};
|
|
45
|
+
path: string;
|
|
24
46
|
}[];
|
|
25
|
-
}
|
|
47
|
+
}>;
|
|
26
48
|
export declare function createProposeChangelogTool(state: CommitAgentState, changelogTargets: string[]): CustomTool<typeof proposeChangelogSchema>;
|
|
27
49
|
export {};
|
|
@@ -1,15 +1,25 @@
|
|
|
1
1
|
import type { CommitAgentState } from "../../../commit/agentic/state.js";
|
|
2
2
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
3
|
-
declare const proposeCommitSchema: import("
|
|
4
|
-
|
|
3
|
+
declare const proposeCommitSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
|
+
details: {
|
|
5
|
+
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
6
|
+
text: string;
|
|
7
|
+
user_visible?: boolean | undefined;
|
|
8
|
+
}[];
|
|
9
|
+
issue_refs: string[];
|
|
5
10
|
scope: string | null;
|
|
6
11
|
summary: string;
|
|
12
|
+
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
13
|
+
}, {
|
|
7
14
|
details: {
|
|
8
|
-
text: string;
|
|
9
15
|
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
16
|
+
text: string;
|
|
10
17
|
user_visible?: boolean | undefined;
|
|
11
18
|
}[];
|
|
12
19
|
issue_refs: string[];
|
|
13
|
-
|
|
20
|
+
scope: string | null;
|
|
21
|
+
summary: string;
|
|
22
|
+
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
23
|
+
}>;
|
|
14
24
|
export declare function createProposeCommitTool(cwd: string, state: CommitAgentState): CustomTool<typeof proposeCommitSchema>;
|
|
15
25
|
export {};
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
2
|
-
declare const recentCommitsSchema: import("
|
|
2
|
+
declare const recentCommitsSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
3
3
|
count?: number | undefined;
|
|
4
|
-
}, {
|
|
4
|
+
}, {
|
|
5
|
+
count?: number | undefined;
|
|
6
|
+
}>;
|
|
5
7
|
export declare function createRecentCommitsTool(cwd: string): CustomTool<typeof recentCommitsSchema>;
|
|
6
8
|
export {};
|
|
@@ -1,6 +1,10 @@
|
|
|
1
|
-
export declare const commitTypeSchema: import("
|
|
2
|
-
export declare const detailSchema: import("
|
|
1
|
+
export declare const commitTypeSchema: import("@oh-my-pi/omptype").FluentType<"build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test", "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test">;
|
|
2
|
+
export declare const detailSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
3
|
+
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
3
4
|
text: string;
|
|
5
|
+
user_visible?: boolean | undefined;
|
|
6
|
+
}, {
|
|
4
7
|
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
8
|
+
text: string;
|
|
5
9
|
user_visible?: boolean | undefined;
|
|
6
|
-
}
|
|
10
|
+
}>;
|
|
@@ -1,32 +1,59 @@
|
|
|
1
1
|
import type { CommitAgentState } from "../../../commit/agentic/state.js";
|
|
2
2
|
import type { CustomTool } from "../../../extensibility/custom-tools/types.js";
|
|
3
|
-
declare const splitCommitSchema: import("
|
|
3
|
+
declare const splitCommitSchema: import("@oh-my-pi/omptype").FluentType<{
|
|
4
4
|
commits: {
|
|
5
5
|
changes: {
|
|
6
|
+
hunks: {
|
|
7
|
+
indices: number[];
|
|
8
|
+
type: "indices";
|
|
9
|
+
} | {
|
|
10
|
+
end: number;
|
|
11
|
+
start: number;
|
|
12
|
+
type: "lines";
|
|
13
|
+
} | {
|
|
14
|
+
type: "all";
|
|
15
|
+
};
|
|
6
16
|
path: string;
|
|
17
|
+
}[];
|
|
18
|
+
dependencies?: number[] | undefined;
|
|
19
|
+
details?: {
|
|
20
|
+
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
21
|
+
text: string;
|
|
22
|
+
user_visible?: boolean | undefined;
|
|
23
|
+
}[] | undefined;
|
|
24
|
+
issue_refs?: string[] | undefined;
|
|
25
|
+
rationale?: string | undefined;
|
|
26
|
+
scope: string | null;
|
|
27
|
+
summary: string;
|
|
28
|
+
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
29
|
+
}[];
|
|
30
|
+
}, {
|
|
31
|
+
commits: {
|
|
32
|
+
changes: {
|
|
7
33
|
hunks: {
|
|
8
34
|
type: "all";
|
|
9
35
|
} | {
|
|
10
|
-
type: "indices";
|
|
11
36
|
indices: number[];
|
|
37
|
+
type: "indices";
|
|
12
38
|
} | {
|
|
13
|
-
type: "lines";
|
|
14
|
-
start: number;
|
|
15
39
|
end: number;
|
|
40
|
+
start: number;
|
|
41
|
+
type: "lines";
|
|
16
42
|
};
|
|
43
|
+
path: string;
|
|
17
44
|
}[];
|
|
18
|
-
|
|
19
|
-
scope: string | null;
|
|
20
|
-
summary: string;
|
|
45
|
+
dependencies?: number[] | undefined;
|
|
21
46
|
details?: {
|
|
22
|
-
text: string;
|
|
23
47
|
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
48
|
+
text: string;
|
|
24
49
|
user_visible?: boolean | undefined;
|
|
25
50
|
}[] | undefined;
|
|
26
51
|
issue_refs?: string[] | undefined;
|
|
27
52
|
rationale?: string | undefined;
|
|
28
|
-
|
|
53
|
+
scope: string | null;
|
|
54
|
+
summary: string;
|
|
55
|
+
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
29
56
|
}[];
|
|
30
|
-
}
|
|
57
|
+
}>;
|
|
31
58
|
export declare function createSplitCommitTool(cwd: string, state: CommitAgentState, changelogTargets: string[]): CustomTool<typeof splitCommitSchema>;
|
|
32
59
|
export {};
|
|
@@ -4,17 +4,27 @@ import type { ChangelogGenerationResult } from "../../commit/types.js";
|
|
|
4
4
|
export declare const changelogTool: {
|
|
5
5
|
name: string;
|
|
6
6
|
description: string;
|
|
7
|
-
parameters: import("
|
|
7
|
+
parameters: import("@oh-my-pi/omptype").FluentType<{
|
|
8
8
|
entries: {
|
|
9
|
-
"Breaking Changes"?: string[] | undefined;
|
|
10
9
|
Added?: string[] | undefined;
|
|
10
|
+
"Breaking Changes"?: string[] | undefined;
|
|
11
11
|
Changed?: string[] | undefined;
|
|
12
12
|
Deprecated?: string[] | undefined;
|
|
13
|
+
Fixed?: string[] | undefined;
|
|
13
14
|
Removed?: string[] | undefined;
|
|
15
|
+
Security?: string[] | undefined;
|
|
16
|
+
};
|
|
17
|
+
}, {
|
|
18
|
+
entries: {
|
|
19
|
+
Added?: string[] | undefined;
|
|
20
|
+
"Breaking Changes"?: string[] | undefined;
|
|
21
|
+
Changed?: string[] | undefined;
|
|
22
|
+
Deprecated?: string[] | undefined;
|
|
14
23
|
Fixed?: string[] | undefined;
|
|
24
|
+
Removed?: string[] | undefined;
|
|
15
25
|
Security?: string[] | undefined;
|
|
16
26
|
};
|
|
17
|
-
}
|
|
27
|
+
}>;
|
|
18
28
|
};
|
|
19
29
|
export interface ChangelogPromptInput {
|
|
20
30
|
model: Model<Api>;
|
|
@@ -1,15 +1,24 @@
|
|
|
1
1
|
import type { AssistantMessage } from "@oh-my-pi/pi-ai";
|
|
2
2
|
import type { ConventionalAnalysis } from "./types.js";
|
|
3
|
-
export declare const conventionalAnalysisParameters: import("
|
|
4
|
-
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
5
|
-
scope: string | null;
|
|
3
|
+
export declare const conventionalAnalysisParameters: import("@oh-my-pi/omptype").FluentType<{
|
|
6
4
|
details: {
|
|
5
|
+
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
7
6
|
text: string;
|
|
7
|
+
user_visible?: boolean | undefined;
|
|
8
|
+
}[];
|
|
9
|
+
issue_refs: string[];
|
|
10
|
+
scope: string | null;
|
|
11
|
+
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
12
|
+
}, {
|
|
13
|
+
details: {
|
|
8
14
|
changelog_category?: "Added" | "Breaking Changes" | "Changed" | "Deprecated" | "Fixed" | "Removed" | "Security" | undefined;
|
|
15
|
+
text: string;
|
|
9
16
|
user_visible?: boolean | undefined;
|
|
10
17
|
}[];
|
|
11
18
|
issue_refs: string[];
|
|
12
|
-
|
|
19
|
+
scope: string | null;
|
|
20
|
+
type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
|
|
21
|
+
}>;
|
|
13
22
|
export interface ConventionalAnalysisTool {
|
|
14
23
|
name: "create_conventional_analysis";
|
|
15
24
|
description: string;
|