@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.
Files changed (162) hide show
  1. package/CHANGELOG.md +23 -1
  2. package/dist/{CHANGELOG-gs76k6wc.md → CHANGELOG-0b0w17se.md} +23 -1
  3. package/dist/cli.js +3850 -3887
  4. package/dist/types/advisor/advise-tool.d.ts +10 -4
  5. package/dist/types/autoresearch/tools/init-experiment.d.ts +19 -7
  6. package/dist/types/autoresearch/tools/log-experiment.d.ts +19 -11
  7. package/dist/types/autoresearch/tools/run-experiment.d.ts +4 -2
  8. package/dist/types/autoresearch/tools/update-notes.d.ts +5 -2
  9. package/dist/types/commit/agentic/tools/analyze-file.d.ts +5 -2
  10. package/dist/types/commit/agentic/tools/git-file-diff.d.ts +5 -2
  11. package/dist/types/commit/agentic/tools/git-hunk.d.ts +6 -2
  12. package/dist/types/commit/agentic/tools/git-overview.d.ts +5 -2
  13. package/dist/types/commit/agentic/tools/propose-changelog.d.ts +29 -7
  14. package/dist/types/commit/agentic/tools/propose-commit.d.ts +14 -4
  15. package/dist/types/commit/agentic/tools/recent-commits.d.ts +4 -2
  16. package/dist/types/commit/agentic/tools/schemas.d.ts +7 -3
  17. package/dist/types/commit/agentic/tools/split-commit.d.ts +37 -10
  18. package/dist/types/commit/changelog/generate.d.ts +13 -3
  19. package/dist/types/commit/shared-llm.d.ts +13 -4
  20. package/dist/types/config/config-file.d.ts +1 -1
  21. package/dist/types/config/models-config-schema-bundle.d.ts +1992 -981
  22. package/dist/types/config/models-config-schema.d.ts +1201 -580
  23. package/dist/types/config/models-config.d.ts +355 -371
  24. package/dist/types/edit/hashline/params.d.ts +4 -2
  25. package/dist/types/edit/modes/apply-patch.d.ts +4 -2
  26. package/dist/types/edit/modes/patch.d.ts +16 -5
  27. package/dist/types/edit/modes/replace.d.ts +8 -3
  28. package/dist/types/eval/bridge-timeout.d.ts +5 -2
  29. package/dist/types/eval/completion-bridge.d.ts +13 -0
  30. package/dist/types/eval/py/tool-bridge.d.ts +12 -0
  31. package/dist/types/extensibility/custom-commands/types.d.ts +4 -4
  32. package/dist/types/extensibility/custom-tools/types.d.ts +4 -4
  33. package/dist/types/extensibility/extensions/types.d.ts +4 -4
  34. package/dist/types/extensibility/hooks/types.d.ts +4 -4
  35. package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +1 -1
  36. package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +1 -1
  37. package/dist/types/extensibility/legacy-typebox.d.ts +8 -0
  38. package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +6 -13
  39. package/dist/types/goals/tools/goal-tool.d.ts +12 -4
  40. package/dist/types/lsp/index.d.ts +15 -5
  41. package/dist/types/lsp/types.d.ts +15 -5
  42. package/dist/types/security/contracts/schemas.d.ts +985 -409
  43. package/dist/types/security/publication.d.ts +92 -34
  44. package/dist/types/session/agent-session-types.d.ts +1 -1
  45. package/dist/types/session/session-entries.d.ts +1 -1
  46. package/dist/types/session/session-manager.d.ts +1 -1
  47. package/dist/types/task/types.d.ts +63 -18
  48. package/dist/types/tools/ask.d.ts +34 -8
  49. package/dist/types/tools/ast-edit.d.ts +16 -4
  50. package/dist/types/tools/ast-grep.d.ts +12 -4
  51. package/dist/types/tools/bash.d.ts +20 -11
  52. package/dist/types/tools/browser.d.ts +64 -20
  53. package/dist/types/tools/checkpoint.d.ts +16 -8
  54. package/dist/types/tools/computer.d.ts +1 -1
  55. package/dist/types/tools/debug.d.ts +118 -48
  56. package/dist/types/tools/eval.d.ts +11 -5
  57. package/dist/types/tools/gh.d.ts +74 -26
  58. package/dist/types/tools/glob.d.ts +16 -6
  59. package/dist/types/tools/grep.d.ts +18 -6
  60. package/dist/types/tools/hub/index.d.ts +116 -46
  61. package/dist/types/tools/image-gen.d.ts +25 -8
  62. package/dist/types/tools/inspect-image.d.ts +10 -4
  63. package/dist/types/tools/learn.d.ts +26 -8
  64. package/dist/types/tools/manage-skill.d.ts +16 -6
  65. package/dist/types/tools/memory-edit.d.ts +18 -6
  66. package/dist/types/tools/memory-recall.d.ts +8 -4
  67. package/dist/types/tools/memory-reflect.d.ts +10 -4
  68. package/dist/types/tools/memory-retain.d.ts +14 -4
  69. package/dist/types/tools/read.d.ts +8 -4
  70. package/dist/types/tools/security-scan.d.ts +82 -30
  71. package/dist/types/tools/todo.d.ts +30 -10
  72. package/dist/types/tools/tts.d.ts +12 -5
  73. package/dist/types/tools/vibe.d.ts +42 -18
  74. package/dist/types/tools/write.d.ts +10 -4
  75. package/dist/types/web/search/index.d.ts +20 -6
  76. package/package.json +13 -13
  77. package/scripts/legacy-pi-virtual-module.ts +2 -2
  78. package/src/advisor/advise-tool.ts +1 -1
  79. package/src/advisor/config.ts +1 -1
  80. package/src/autoresearch/tools/init-experiment.ts +1 -2
  81. package/src/autoresearch/tools/log-experiment.ts +1 -2
  82. package/src/autoresearch/tools/run-experiment.ts +1 -1
  83. package/src/autoresearch/tools/update-notes.ts +1 -1
  84. package/src/commit/agentic/tools/analyze-file.ts +1 -1
  85. package/src/commit/agentic/tools/git-file-diff.ts +1 -1
  86. package/src/commit/agentic/tools/git-hunk.ts +1 -1
  87. package/src/commit/agentic/tools/git-overview.ts +1 -1
  88. package/src/commit/agentic/tools/propose-changelog.ts +1 -1
  89. package/src/commit/agentic/tools/propose-commit.ts +1 -1
  90. package/src/commit/agentic/tools/recent-commits.ts +1 -1
  91. package/src/commit/agentic/tools/schemas.ts +1 -1
  92. package/src/commit/agentic/tools/split-commit.ts +1 -1
  93. package/src/commit/analysis/summary.ts +1 -1
  94. package/src/commit/changelog/generate.ts +1 -1
  95. package/src/config/config-file.ts +2 -2
  96. package/src/config/models-config-schema-bundle.ts +1 -8
  97. package/src/discovery/codex.ts +22 -9
  98. package/src/edit/hashline/params.ts +1 -1
  99. package/src/edit/modes/apply-patch.ts +1 -1
  100. package/src/edit/modes/patch.ts +1 -1
  101. package/src/edit/modes/replace.ts +2 -1
  102. package/src/eval/agent-bridge.ts +4 -2
  103. package/src/eval/bridge-timeout.ts +5 -2
  104. package/src/eval/completion-bridge.ts +3 -2
  105. package/src/eval/executor-base.ts +20 -1
  106. package/src/eval/js/context-manager.ts +94 -6
  107. package/src/eval/py/tool-bridge.ts +29 -9
  108. package/src/extensibility/custom-commands/loader.ts +3 -3
  109. package/src/extensibility/custom-commands/types.ts +4 -4
  110. package/src/extensibility/custom-tools/loader.ts +3 -3
  111. package/src/extensibility/custom-tools/types.ts +5 -4
  112. package/src/extensibility/extensions/loader.ts +3 -3
  113. package/src/extensibility/extensions/types.ts +5 -4
  114. package/src/extensibility/hooks/loader.ts +3 -3
  115. package/src/extensibility/hooks/types.ts +4 -4
  116. package/src/extensibility/legacy-pi-ai-shim.ts +1 -1
  117. package/src/extensibility/legacy-pi-coding-agent-shim.ts +2 -2
  118. package/src/extensibility/legacy-typebox.ts +101 -0
  119. package/src/extensibility/plugins/legacy-pi-compat.ts +13 -22
  120. package/src/goals/tools/goal-tool.ts +1 -1
  121. package/src/lsp/types.ts +1 -1
  122. package/src/modes/theme/theme.ts +3 -3
  123. package/src/security/contracts/schemas.ts +1 -5
  124. package/src/security/contracts/validation.ts +1 -1
  125. package/src/security/publication.ts +1 -1
  126. package/src/session/agent-session-types.ts +1 -1
  127. package/src/session/agent-session.ts +1 -2
  128. package/src/session/session-context.ts +3 -3
  129. package/src/session/session-entries.ts +1 -1
  130. package/src/session/session-manager.ts +1 -1
  131. package/src/slash-commands/builtin-registry.ts +3 -4
  132. package/src/task/types.ts +1 -1
  133. package/src/tools/ask.ts +1 -1
  134. package/src/tools/ast-edit.ts +1 -1
  135. package/src/tools/ast-grep.ts +1 -1
  136. package/src/tools/bash.ts +61 -3
  137. package/src/tools/browser.ts +1 -1
  138. package/src/tools/checkpoint.ts +1 -1
  139. package/src/tools/computer.ts +1 -1
  140. package/src/tools/debug.ts +1 -1
  141. package/src/tools/eval.ts +1 -1
  142. package/src/tools/gh.ts +1 -2
  143. package/src/tools/glob.ts +1 -1
  144. package/src/tools/grep.ts +1 -1
  145. package/src/tools/hub/index.ts +1 -1
  146. package/src/tools/image-gen.ts +1 -1
  147. package/src/tools/inspect-image.ts +1 -1
  148. package/src/tools/learn.ts +1 -1
  149. package/src/tools/manage-skill.ts +1 -1
  150. package/src/tools/memory-edit.ts +1 -1
  151. package/src/tools/memory-recall.ts +1 -1
  152. package/src/tools/memory-reflect.ts +1 -1
  153. package/src/tools/memory-retain.ts +1 -1
  154. package/src/tools/read.ts +1 -1
  155. package/src/tools/security-scan.ts +1 -1
  156. package/src/tools/todo.ts +1 -1
  157. package/src/tools/tts.ts +1 -1
  158. package/src/tools/vibe.ts +2 -1
  159. package/src/tools/write.ts +1 -1
  160. package/src/web/search/index.ts +2 -1
  161. package/dist/types/extensibility/typebox.d.ts +0 -181
  162. 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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
6
- name: string;
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
- primary_metric: string;
9
+ max_iterations?: number | undefined;
9
10
  metric_unit?: string | undefined;
10
- direction?: "higher" | "lower" | undefined;
11
- secondary_metrics?: string[] | undefined;
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("arktype/internal/variants/object.ts").ObjectType<{
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
- description: string;
7
- metrics?: {
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
- justification?: string | undefined;
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
3
+ declare const proposeChangelogSchema: import("@oh-my-pi/omptype").FluentType<{
4
4
  entries: {
5
- path: string;
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("arktype/internal/variants/object.ts").ObjectType<{
4
- type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/string.ts").StringType<"build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test", {}>;
2
- export declare const detailSchema: import("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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
- type: "build" | "chore" | "ci" | "docs" | "feat" | "fix" | "perf" | "refactor" | "revert" | "style" | "test";
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
- dependencies?: number[] | undefined;
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("arktype/internal/variants/object.ts").ObjectType<{
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("arktype/internal/variants/object.ts").ObjectType<{
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;
@@ -1,4 +1,4 @@
1
- import { type Type } from "arktype";
1
+ import { type Type } from "@oh-my-pi/omptype";
2
2
  /** Minimal subset of the AJV ConfigSchemaError shape this module actually relies on. */
3
3
  interface ConfigSchemaError {
4
4
  instancePath: string;