@oh-my-pi/pi-coding-agent 16.0.5 → 16.0.6

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 (223) hide show
  1. package/CHANGELOG.md +53 -0
  2. package/dist/cli.js +1927 -1376
  3. package/dist/types/advisor/advise-tool.d.ts +22 -19
  4. package/dist/types/autoresearch/tools/init-experiment.d.ts +13 -17
  5. package/dist/types/autoresearch/tools/log-experiment.d.ts +17 -19
  6. package/dist/types/autoresearch/tools/run-experiment.d.ts +3 -4
  7. package/dist/types/autoresearch/tools/update-notes.d.ts +4 -5
  8. package/dist/types/cli/ttsr-cli.d.ts +39 -0
  9. package/dist/types/commands/ttsr.d.ts +57 -0
  10. package/dist/types/commit/agentic/tools/analyze-file.d.ts +4 -5
  11. package/dist/types/commit/agentic/tools/git-file-diff.d.ts +4 -5
  12. package/dist/types/commit/agentic/tools/git-hunk.d.ts +5 -6
  13. package/dist/types/commit/agentic/tools/git-overview.d.ts +4 -5
  14. package/dist/types/commit/agentic/tools/propose-changelog.d.ts +23 -24
  15. package/dist/types/commit/agentic/tools/propose-commit.d.ts +11 -32
  16. package/dist/types/commit/agentic/tools/recent-commits.d.ts +3 -4
  17. package/dist/types/commit/agentic/tools/schemas.d.ts +6 -27
  18. package/dist/types/commit/agentic/tools/split-commit.d.ts +28 -49
  19. package/dist/types/commit/changelog/generate.d.ts +12 -13
  20. package/dist/types/commit/shared-llm.d.ts +10 -37
  21. package/dist/types/config/config-file.d.ts +4 -4
  22. package/dist/types/config/keybindings.d.ts +5 -0
  23. package/dist/types/config/models-config-schema.d.ts +625 -990
  24. package/dist/types/config/models-config.d.ts +229 -217
  25. package/dist/types/config/settings-schema.d.ts +53 -23
  26. package/dist/types/edit/hashline/params.d.ts +7 -11
  27. package/dist/types/edit/index.d.ts +2 -1
  28. package/dist/types/edit/modes/apply-patch.d.ts +4 -5
  29. package/dist/types/edit/modes/patch.d.ts +15 -24
  30. package/dist/types/edit/modes/replace.d.ts +16 -17
  31. package/dist/types/eval/js/index.d.ts +1 -0
  32. package/dist/types/extensibility/custom-commands/types.d.ts +6 -3
  33. package/dist/types/extensibility/custom-tools/types.d.ts +8 -5
  34. package/dist/types/extensibility/extensions/types.d.ts +6 -3
  35. package/dist/types/extensibility/hooks/types.d.ts +7 -4
  36. package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +13 -5
  37. package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +17 -0
  38. package/dist/types/extensibility/typebox.d.ts +80 -58
  39. package/dist/types/goals/tools/goal-tool.d.ts +11 -24
  40. package/dist/types/index.d.ts +2 -0
  41. package/dist/types/lsp/index.d.ts +11 -26
  42. package/dist/types/lsp/types.d.ts +12 -28
  43. package/dist/types/mcp/client.d.ts +8 -0
  44. package/dist/types/modes/components/btw-panel.d.ts +1 -0
  45. package/dist/types/modes/components/custom-editor.d.ts +3 -1
  46. package/dist/types/modes/controllers/btw-controller.d.ts +2 -0
  47. package/dist/types/modes/controllers/input-controller.d.ts +1 -0
  48. package/dist/types/modes/interactive-mode.d.ts +3 -0
  49. package/dist/types/modes/setup-wizard/index.d.ts +1 -0
  50. package/dist/types/modes/setup-wizard/startup-splash.d.ts +7 -0
  51. package/dist/types/modes/theme/theme.d.ts +1 -1
  52. package/dist/types/modes/types.d.ts +3 -0
  53. package/dist/types/sdk.d.ts +5 -0
  54. package/dist/types/session/agent-session.d.ts +4 -0
  55. package/dist/types/startup-splash.d.ts +12 -0
  56. package/dist/types/task/types.d.ts +47 -48
  57. package/dist/types/tools/ask.d.ts +26 -27
  58. package/dist/types/tools/ast-edit.d.ts +17 -17
  59. package/dist/types/tools/ast-grep.d.ts +12 -13
  60. package/dist/types/tools/bash.d.ts +20 -17
  61. package/dist/types/tools/browser.d.ts +46 -71
  62. package/dist/types/tools/checkpoint.d.ts +14 -15
  63. package/dist/types/tools/debug.d.ts +82 -145
  64. package/dist/types/tools/eval.d.ts +30 -40
  65. package/dist/types/tools/find.d.ts +17 -18
  66. package/dist/types/tools/gh.d.ts +49 -78
  67. package/dist/types/tools/image-gen.d.ts +20 -36
  68. package/dist/types/tools/inspect-image.d.ts +10 -11
  69. package/dist/types/tools/irc.d.ts +22 -33
  70. package/dist/types/tools/job.d.ts +11 -12
  71. package/dist/types/tools/learn.d.ts +21 -28
  72. package/dist/types/tools/manage-skill.d.ts +13 -22
  73. package/dist/types/tools/memory-edit.d.ts +15 -24
  74. package/dist/types/tools/memory-recall.d.ts +7 -8
  75. package/dist/types/tools/memory-reflect.d.ts +9 -10
  76. package/dist/types/tools/memory-retain.d.ts +13 -14
  77. package/dist/types/tools/read.d.ts +7 -8
  78. package/dist/types/tools/resolve.d.ts +11 -18
  79. package/dist/types/tools/review.d.ts +9 -15
  80. package/dist/types/tools/search-tool-bm25.d.ts +9 -10
  81. package/dist/types/tools/search.d.ts +16 -17
  82. package/dist/types/tools/ssh.d.ts +14 -15
  83. package/dist/types/tools/todo.d.ts +27 -43
  84. package/dist/types/tools/tts.d.ts +8 -9
  85. package/dist/types/tools/write.d.ts +9 -10
  86. package/dist/types/tui/index.d.ts +1 -0
  87. package/dist/types/tui/width-aware-text.d.ts +23 -0
  88. package/dist/types/utils/markit.d.ts +10 -1
  89. package/dist/types/web/search/index.d.ts +17 -28
  90. package/dist/types/web/search/providers/perplexity.d.ts +0 -2
  91. package/dist/types/web/search/types.d.ts +32 -26
  92. package/package.json +14 -13
  93. package/scripts/omp +1 -1
  94. package/src/advisor/__tests__/advisor.test.ts +44 -1
  95. package/src/advisor/advise-tool.ts +34 -11
  96. package/src/autoresearch/tools/init-experiment.ts +13 -16
  97. package/src/autoresearch/tools/log-experiment.ts +15 -18
  98. package/src/autoresearch/tools/run-experiment.ts +3 -3
  99. package/src/autoresearch/tools/update-notes.ts +4 -4
  100. package/src/cli/ttsr-cli.ts +995 -0
  101. package/src/cli-commands.ts +1 -0
  102. package/src/cli.ts +7 -1
  103. package/src/commands/ttsr.ts +125 -0
  104. package/src/commit/agentic/tools/analyze-file.ts +4 -4
  105. package/src/commit/agentic/tools/git-file-diff.ts +4 -4
  106. package/src/commit/agentic/tools/git-hunk.ts +7 -5
  107. package/src/commit/agentic/tools/git-overview.ts +4 -4
  108. package/src/commit/agentic/tools/propose-changelog.ts +18 -15
  109. package/src/commit/agentic/tools/propose-commit.ts +6 -6
  110. package/src/commit/agentic/tools/recent-commits.ts +3 -3
  111. package/src/commit/agentic/tools/schemas.ts +8 -20
  112. package/src/commit/agentic/tools/split-commit.ts +19 -23
  113. package/src/commit/analysis/summary.ts +7 -5
  114. package/src/commit/changelog/generate.ts +15 -11
  115. package/src/commit/shared-llm.ts +17 -24
  116. package/src/config/config-file.ts +13 -15
  117. package/src/config/keybindings.ts +6 -0
  118. package/src/config/models-config-schema.ts +206 -179
  119. package/src/config/settings-schema.ts +34 -0
  120. package/src/discovery/builtin-rules/index.ts +2 -0
  121. package/src/discovery/builtin-rules/ts-import-type.md +2 -2
  122. package/src/discovery/builtin-rules/ts-no-any.md +11 -2
  123. package/src/discovery/builtin-rules/ts-no-inline-cast-access.md +55 -0
  124. package/src/edit/hashline/params.ts +12 -11
  125. package/src/edit/index.ts +5 -4
  126. package/src/edit/modes/apply-patch.ts +4 -4
  127. package/src/edit/modes/patch.ts +15 -18
  128. package/src/edit/modes/replace.ts +13 -17
  129. package/src/edit/renderer.ts +0 -1
  130. package/src/eval/agent-bridge.ts +11 -13
  131. package/src/eval/completion-bridge.ts +25 -17
  132. package/src/eval/js/context-manager.ts +17 -2
  133. package/src/eval/js/index.ts +1 -1
  134. package/src/eval/py/executor.ts +2 -2
  135. package/src/extensibility/custom-commands/loader.ts +5 -3
  136. package/src/extensibility/custom-commands/types.ts +6 -3
  137. package/src/extensibility/custom-tools/loader.ts +4 -2
  138. package/src/extensibility/custom-tools/types.ts +8 -5
  139. package/src/extensibility/extensions/loader.ts +4 -2
  140. package/src/extensibility/extensions/types.ts +6 -3
  141. package/src/extensibility/hooks/loader.ts +5 -2
  142. package/src/extensibility/hooks/types.ts +7 -4
  143. package/src/extensibility/legacy-pi-ai-shim.ts +42 -5
  144. package/src/extensibility/legacy-pi-coding-agent-shim.ts +113 -0
  145. package/src/extensibility/plugins/legacy-pi-compat.ts +13 -13
  146. package/src/extensibility/tool-proxy.ts +4 -1
  147. package/src/extensibility/typebox.ts +778 -251
  148. package/src/goals/guided-setup.ts +12 -3
  149. package/src/goals/tools/goal-tool.ts +6 -6
  150. package/src/index.ts +2 -0
  151. package/src/internal-urls/docs-index.generated.ts +11 -9
  152. package/src/lsp/types.ts +13 -27
  153. package/src/main.ts +19 -18
  154. package/src/mcp/client.ts +38 -13
  155. package/src/mcp/render.ts +102 -89
  156. package/src/modes/components/agent-hub.ts +11 -4
  157. package/src/modes/components/btw-panel.ts +5 -1
  158. package/src/modes/components/custom-editor.ts +18 -0
  159. package/src/modes/components/status-line/component.ts +8 -1
  160. package/src/modes/components/tool-execution.ts +17 -10
  161. package/src/modes/controllers/btw-controller.ts +69 -1
  162. package/src/modes/controllers/input-controller.ts +29 -0
  163. package/src/modes/interactive-mode.ts +38 -8
  164. package/src/modes/setup-wizard/index.ts +1 -0
  165. package/src/modes/setup-wizard/scenes/sign-in.ts +77 -5
  166. package/src/modes/setup-wizard/startup-splash.ts +107 -0
  167. package/src/modes/theme/theme.ts +133 -143
  168. package/src/modes/types.ts +3 -0
  169. package/src/modes/utils/context-usage.ts +9 -5
  170. package/src/modes/utils/hotkeys-markdown.ts +1 -0
  171. package/src/prompts/system/system-prompt.md +1 -0
  172. package/src/sdk.ts +21 -4
  173. package/src/session/agent-session.ts +160 -33
  174. package/src/session/session-history-format.ts +11 -2
  175. package/src/session/snapcompact-inline.ts +1 -1
  176. package/src/slash-commands/builtin-registry.ts +4 -11
  177. package/src/startup-splash.ts +19 -0
  178. package/src/task/executor.ts +11 -6
  179. package/src/task/types.ts +44 -41
  180. package/src/tool-discovery/tool-index.ts +17 -4
  181. package/src/tools/ask.ts +14 -14
  182. package/src/tools/ast-edit.ts +17 -14
  183. package/src/tools/ast-grep.ts +10 -9
  184. package/src/tools/bash.ts +15 -10
  185. package/src/tools/browser/launch.ts +13 -0
  186. package/src/tools/browser.ts +26 -32
  187. package/src/tools/checkpoint.ts +7 -7
  188. package/src/tools/debug.ts +72 -69
  189. package/src/tools/eval.ts +18 -19
  190. package/src/tools/find.ts +20 -13
  191. package/src/tools/gh.ts +29 -49
  192. package/src/tools/image-gen.ts +27 -32
  193. package/src/tools/inspect-image.ts +8 -9
  194. package/src/tools/irc.ts +12 -12
  195. package/src/tools/job.ts +6 -6
  196. package/src/tools/learn.ts +11 -14
  197. package/src/tools/manage-skill.ts +19 -23
  198. package/src/tools/memory-edit.ts +8 -8
  199. package/src/tools/memory-recall.ts +4 -4
  200. package/src/tools/memory-reflect.ts +5 -5
  201. package/src/tools/memory-retain.ts +9 -11
  202. package/src/tools/puppeteer/02_stealth_hairline.txt +1 -1
  203. package/src/tools/puppeteer/04_stealth_iframe.txt +4 -4
  204. package/src/tools/puppeteer/05_stealth_webgl.txt +1 -1
  205. package/src/tools/puppeteer/10_stealth_plugins.txt +6 -4
  206. package/src/tools/puppeteer/12_stealth_codecs.txt +2 -2
  207. package/src/tools/puppeteer/13_stealth_worker.txt +1 -1
  208. package/src/tools/read.ts +169 -13
  209. package/src/tools/report-tool-issue.ts +6 -6
  210. package/src/tools/resolve.ts +6 -6
  211. package/src/tools/review.ts +10 -12
  212. package/src/tools/search-tool-bm25.ts +5 -5
  213. package/src/tools/search.ts +20 -29
  214. package/src/tools/ssh.ts +8 -8
  215. package/src/tools/todo.ts +16 -19
  216. package/src/tools/tts.ts +16 -15
  217. package/src/tools/write.ts +5 -5
  218. package/src/tui/index.ts +1 -0
  219. package/src/tui/width-aware-text.ts +58 -0
  220. package/src/utils/markit.ts +17 -2
  221. package/src/web/search/index.ts +9 -9
  222. package/src/web/search/providers/perplexity.ts +373 -126
  223. package/src/web/search/types.ts +28 -48
@@ -1,44 +1,28 @@
1
1
  import { type Model } from "@oh-my-pi/pi-ai";
2
- import { z } from "zod/v4";
3
2
  import { type ModelRegistry } from "../config/model-registry";
4
3
  import type { CustomTool } from "../extensibility/custom-tools/types";
5
4
  export type ImageProvider = "antigravity" | "gemini" | "openai" | "openai-codex" | "openrouter" | "xai";
6
5
  export type ImageProviderPreference = Exclude<ImageProvider, "openai-codex"> | "auto";
7
- declare const responseModalitySchema: z.ZodEnum<{
8
- IMAGE: "IMAGE";
9
- TEXT: "TEXT";
10
- }>;
11
- export declare const imageGenSchema: z.ZodObject<{
12
- subject: z.ZodString;
13
- action: z.ZodOptional<z.ZodString>;
14
- scene: z.ZodOptional<z.ZodString>;
15
- composition: z.ZodOptional<z.ZodString>;
16
- lighting: z.ZodOptional<z.ZodString>;
17
- style: z.ZodOptional<z.ZodString>;
18
- text: z.ZodOptional<z.ZodString>;
19
- changes: z.ZodOptional<z.ZodArray<z.ZodString>>;
20
- aspect_ratio: z.ZodOptional<z.ZodEnum<{
21
- "16:9": "16:9";
22
- "1:1": "1:1";
23
- "2:3": "2:3";
24
- "3:2": "3:2";
25
- "3:4": "3:4";
26
- "4:3": "4:3";
27
- "9:16": "9:16";
28
- }>>;
29
- image_size: z.ZodOptional<z.ZodEnum<{
30
- "1024x1024": "1024x1024";
31
- "1024x1536": "1024x1536";
32
- "1536x1024": "1536x1024";
33
- }>>;
34
- input: z.ZodOptional<z.ZodArray<z.ZodObject<{
35
- path: z.ZodOptional<z.ZodString>;
36
- data: z.ZodOptional<z.ZodString>;
37
- mime_type: z.ZodOptional<z.ZodString>;
38
- }, z.core.$strict>>>;
39
- }, z.core.$strict>;
40
- export type ImageGenParams = z.infer<typeof imageGenSchema>;
41
- export type GeminiResponseModality = z.infer<typeof responseModalitySchema>;
6
+ declare const responseModalitySchema: import("arktype/internal/variants/string.ts").StringType<"IMAGE" | "TEXT", {}>;
7
+ export declare const imageGenSchema: import("arktype/internal/variants/object.ts").ObjectType<{
8
+ subject: string;
9
+ action?: string | undefined;
10
+ scene?: string | undefined;
11
+ composition?: string | undefined;
12
+ lighting?: string | undefined;
13
+ style?: string | undefined;
14
+ text?: string | undefined;
15
+ changes?: string[] | undefined;
16
+ aspect_ratio?: "16:9" | "1:1" | "2:3" | "3:2" | "3:4" | "4:3" | "9:16" | undefined;
17
+ image_size?: "1024x1024" | "1024x1536" | "1536x1024" | undefined;
18
+ input?: {
19
+ path?: string | undefined;
20
+ data?: string | undefined;
21
+ mime_type?: string | undefined;
22
+ }[] | undefined;
23
+ }, {}>;
24
+ export type ImageGenParams = typeof imageGenSchema.infer;
25
+ export type GeminiResponseModality = typeof responseModalitySchema.infer;
42
26
  interface GeminiSafetyRating {
43
27
  category?: string;
44
28
  probability?: string;
@@ -1,12 +1,11 @@
1
1
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
2
2
  import { completeSimple, type ToolExample } from "@oh-my-pi/pi-ai";
3
- import { z } from "zod/v4";
4
3
  import type { ToolSession } from "./index";
5
- declare const inspectImageSchema: z.ZodObject<{
6
- path: z.ZodString;
7
- question: z.ZodString;
8
- }, z.core.$strict>;
9
- export type InspectImageParams = z.infer<typeof inspectImageSchema>;
4
+ declare const inspectImageSchema: import("arktype/internal/variants/object.ts").ObjectType<{
5
+ path: string;
6
+ question: string;
7
+ }, {}>;
8
+ export type InspectImageParams = typeof inspectImageSchema.infer;
10
9
  export interface InspectImageToolDetails {
11
10
  model: string;
12
11
  imagePath: string;
@@ -21,12 +20,12 @@ export declare class InspectImageTool implements AgentTool<typeof inspectImageSc
21
20
  readonly loadMode = "discoverable";
22
21
  readonly summary = "Describe or analyze an image file";
23
22
  readonly description: string;
24
- readonly parameters: z.ZodObject<{
25
- path: z.ZodString;
26
- question: z.ZodString;
27
- }, z.core.$strict>;
23
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
24
+ path: string;
25
+ question: string;
26
+ }, {}>;
28
27
  readonly strict = false;
29
- readonly examples: readonly ToolExample<z.input<typeof inspectImageSchema>>[];
28
+ readonly examples: readonly ToolExample<typeof inspectImageSchema.infer>[];
30
29
  constructor(session: ToolSession, completeImageRequest?: typeof completeSimple);
31
30
  execute(_toolCallId: string, params: InspectImageParams, signal?: AbortSignal, _onUpdate?: AgentToolUpdateCallback<InspectImageToolDetails>, _context?: AgentToolContext): Promise<AgentToolResult<InspectImageToolDetails>>;
32
31
  }
@@ -11,7 +11,6 @@
11
11
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
12
12
  import type { ToolExample } from "@oh-my-pi/pi-ai";
13
13
  import { type Component } from "@oh-my-pi/pi-tui";
14
- import { z } from "zod/v4";
15
14
  import type { Settings } from "../config/settings";
16
15
  import type { RenderResultOptions } from "../extensibility/custom-tools/types";
17
16
  import { type IrcDeliveryReceipt, type IrcMessage } from "../irc/bus";
@@ -24,22 +23,17 @@ import type { ToolSession } from ".";
24
23
  * top-level session with task spawning unavailable has no peers — no irc.
25
24
  */
26
25
  export declare function isIrcEnabled(settings: Settings, taskDepth: number): boolean;
27
- declare const ircSchema: z.ZodObject<{
28
- op: z.ZodEnum<{
29
- inbox: "inbox";
30
- list: "list";
31
- send: "send";
32
- wait: "wait";
33
- }>;
34
- to: z.ZodOptional<z.ZodString>;
35
- message: z.ZodOptional<z.ZodString>;
36
- replyTo: z.ZodOptional<z.ZodString>;
37
- await: z.ZodOptional<z.ZodBoolean>;
38
- from: z.ZodOptional<z.ZodString>;
39
- timeoutMs: z.ZodOptional<z.ZodNumber>;
40
- peek: z.ZodOptional<z.ZodBoolean>;
41
- }, z.core.$strip>;
42
- type IrcParams = z.infer<typeof ircSchema>;
26
+ declare const ircSchema: import("arktype/internal/variants/object.ts").ObjectType<{
27
+ op: "inbox" | "list" | "send" | "wait";
28
+ to?: string | undefined;
29
+ message?: string | undefined;
30
+ replyTo?: string | undefined;
31
+ await?: boolean | undefined;
32
+ from?: string | undefined;
33
+ timeoutMs?: number | undefined;
34
+ peek?: boolean | undefined;
35
+ }, {}>;
36
+ type IrcParams = typeof ircSchema.infer;
43
37
  interface IrcPeerInfo {
44
38
  id: string;
45
39
  displayName: string;
@@ -68,23 +62,18 @@ export declare class IrcTool implements AgentTool<typeof ircSchema, IrcDetails>
68
62
  readonly label = "IRC";
69
63
  readonly summary = "Send and receive messages between agents";
70
64
  readonly description: string;
71
- readonly parameters: z.ZodObject<{
72
- op: z.ZodEnum<{
73
- inbox: "inbox";
74
- list: "list";
75
- send: "send";
76
- wait: "wait";
77
- }>;
78
- to: z.ZodOptional<z.ZodString>;
79
- message: z.ZodOptional<z.ZodString>;
80
- replyTo: z.ZodOptional<z.ZodString>;
81
- await: z.ZodOptional<z.ZodBoolean>;
82
- from: z.ZodOptional<z.ZodString>;
83
- timeoutMs: z.ZodOptional<z.ZodNumber>;
84
- peek: z.ZodOptional<z.ZodBoolean>;
85
- }, z.core.$strip>;
65
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
66
+ op: "inbox" | "list" | "send" | "wait";
67
+ to?: string | undefined;
68
+ message?: string | undefined;
69
+ replyTo?: string | undefined;
70
+ await?: boolean | undefined;
71
+ from?: string | undefined;
72
+ timeoutMs?: number | undefined;
73
+ peek?: boolean | undefined;
74
+ }, {}>;
86
75
  readonly strict = true;
87
- readonly examples: readonly ToolExample<z.input<typeof ircSchema>>[];
76
+ readonly examples: readonly ToolExample<typeof ircSchema.infer>[];
88
77
  readonly loadMode = "discoverable";
89
78
  constructor(session: ToolSession);
90
79
  static createIf(session: ToolSession): IrcTool | null;
@@ -1,15 +1,14 @@
1
1
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
2
2
  import type { Component } from "@oh-my-pi/pi-tui";
3
- import { z } from "zod/v4";
4
3
  import type { RenderResultOptions } from "../extensibility/custom-tools/types";
5
4
  import type { Theme } from "../modes/theme/theme";
6
5
  import type { ToolSession } from "./index";
7
- declare const jobSchema: z.ZodObject<{
8
- poll: z.ZodOptional<z.ZodArray<z.ZodString>>;
9
- cancel: z.ZodOptional<z.ZodArray<z.ZodString>>;
10
- list: z.ZodOptional<z.ZodBoolean>;
11
- }, z.core.$strip>;
12
- type JobParams = z.infer<typeof jobSchema>;
6
+ declare const jobSchema: import("arktype/internal/variants/object.ts").ObjectType<{
7
+ poll?: string[] | undefined;
8
+ cancel?: string[] | undefined;
9
+ list?: boolean | undefined;
10
+ }, {}>;
11
+ type JobParams = typeof jobSchema.infer;
13
12
  interface JobSnapshot {
14
13
  id: string;
15
14
  type: "bash" | "task";
@@ -42,11 +41,11 @@ export declare class JobTool implements AgentTool<typeof jobSchema, JobToolDetai
42
41
  readonly label = "Job";
43
42
  readonly summary = "Manage long-running background jobs (async bash/python)";
44
43
  readonly description: string;
45
- readonly parameters: z.ZodObject<{
46
- poll: z.ZodOptional<z.ZodArray<z.ZodString>>;
47
- cancel: z.ZodOptional<z.ZodArray<z.ZodString>>;
48
- list: z.ZodOptional<z.ZodBoolean>;
49
- }, z.core.$strip>;
44
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
45
+ poll?: string[] | undefined;
46
+ cancel?: string[] | undefined;
47
+ list?: boolean | undefined;
48
+ }, {}>;
50
49
  readonly strict = true;
51
50
  readonly interruptible = true;
52
51
  readonly loadMode = "discoverable";
@@ -1,20 +1,16 @@
1
1
  import type { AgentTool, AgentToolResult } from "@oh-my-pi/pi-agent-core";
2
- import { z } from "zod/v4";
3
2
  import type { ToolSession } from ".";
4
- declare const learnSchema: z.ZodObject<{
5
- memory: z.ZodString;
6
- context: z.ZodOptional<z.ZodString>;
7
- skill: z.ZodOptional<z.ZodObject<{
8
- action: z.ZodEnum<{
9
- create: "create";
10
- update: "update";
11
- }>;
12
- name: z.ZodString;
13
- description: z.ZodString;
14
- body: z.ZodString;
15
- }, z.core.$strip>>;
16
- }, z.core.$strip>;
17
- export type LearnParams = z.infer<typeof learnSchema>;
3
+ declare const learnSchema: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ memory: string;
5
+ context?: string | undefined;
6
+ skill?: {
7
+ action: "create" | "update";
8
+ name: string;
9
+ description: string;
10
+ body: string;
11
+ } | undefined;
12
+ }, {}>;
13
+ export type LearnParams = typeof learnSchema.infer;
18
14
  /**
19
15
  * Orchestrating "learn" tool: persists a lesson to long-term memory and,
20
16
  * given a `skill` payload, mints/enhances a managed skill via the shared
@@ -28,19 +24,16 @@ export declare class LearnTool implements AgentTool<typeof learnSchema> {
28
24
  readonly approval: (args: unknown) => "read" | "write";
29
25
  readonly label = "Learn";
30
26
  readonly description: string;
31
- readonly parameters: z.ZodObject<{
32
- memory: z.ZodString;
33
- context: z.ZodOptional<z.ZodString>;
34
- skill: z.ZodOptional<z.ZodObject<{
35
- action: z.ZodEnum<{
36
- create: "create";
37
- update: "update";
38
- }>;
39
- name: z.ZodString;
40
- description: z.ZodString;
41
- body: z.ZodString;
42
- }, z.core.$strip>>;
43
- }, z.core.$strip>;
27
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
28
+ memory: string;
29
+ context?: string | undefined;
30
+ skill?: {
31
+ action: "create" | "update";
32
+ name: string;
33
+ description: string;
34
+ body: string;
35
+ } | undefined;
36
+ }, {}>;
44
37
  readonly strict = true;
45
38
  readonly loadMode: "essential";
46
39
  readonly summary = "Capture a reusable lesson to memory (and optionally a managed skill)";
@@ -1,17 +1,12 @@
1
1
  import type { AgentTool, AgentToolResult } from "@oh-my-pi/pi-agent-core";
2
- import { z } from "zod/v4";
3
2
  import type { ToolSession } from ".";
4
- declare const manageSkillSchema: z.ZodObject<{
5
- action: z.ZodEnum<{
6
- create: "create";
7
- delete: "delete";
8
- update: "update";
9
- }>;
10
- name: z.ZodString;
11
- description: z.ZodOptional<z.ZodString>;
12
- body: z.ZodOptional<z.ZodString>;
13
- }, z.core.$strip>;
14
- export type ManageSkillParams = z.infer<typeof manageSkillSchema>;
3
+ declare const manageSkillSchema: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ action: "create" | "delete" | "update";
5
+ name: string;
6
+ description?: string | undefined;
7
+ body?: string | undefined;
8
+ }, {}>;
9
+ export type ManageSkillParams = typeof manageSkillSchema.infer;
15
10
  /**
16
11
  * Direct create/update/delete of isolated managed skills. Gated behind
17
12
  * `autolearn.enabled`; backend-independent (the skill side is standalone).
@@ -21,16 +16,12 @@ export declare class ManageSkillTool implements AgentTool<typeof manageSkillSche
21
16
  readonly approval: "write";
22
17
  readonly label = "Manage Skill";
23
18
  readonly description: string;
24
- readonly parameters: z.ZodObject<{
25
- action: z.ZodEnum<{
26
- create: "create";
27
- delete: "delete";
28
- update: "update";
29
- }>;
30
- name: z.ZodString;
31
- description: z.ZodOptional<z.ZodString>;
32
- body: z.ZodOptional<z.ZodString>;
33
- }, z.core.$strip>;
19
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
20
+ action: "create" | "delete" | "update";
21
+ name: string;
22
+ description?: string | undefined;
23
+ body?: string | undefined;
24
+ }, {}>;
34
25
  readonly strict = true;
35
26
  readonly loadMode: "essential";
36
27
  readonly summary = "Create, update, or delete an isolated managed skill";
@@ -1,35 +1,26 @@
1
1
  import type { AgentTool, AgentToolResult } from "@oh-my-pi/pi-agent-core";
2
- import { z } from "zod/v4";
3
2
  import type { ToolSession } from ".";
4
- declare const memoryEditSchema: z.ZodObject<{
5
- op: z.ZodEnum<{
6
- forget: "forget";
7
- invalidate: "invalidate";
8
- update: "update";
9
- }>;
10
- id: z.ZodString;
11
- content: z.ZodOptional<z.ZodString>;
12
- importance: z.ZodOptional<z.ZodNumber>;
13
- replacement_id: z.ZodOptional<z.ZodString>;
14
- }, z.core.$strip>;
15
- export type MemoryEditParams = z.infer<typeof memoryEditSchema>;
3
+ declare const memoryEditSchema: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ op: "forget" | "invalidate" | "update";
5
+ id: string;
6
+ content?: string | undefined;
7
+ importance?: number | undefined;
8
+ replacement_id?: string | undefined;
9
+ }, {}>;
10
+ export type MemoryEditParams = typeof memoryEditSchema.infer;
16
11
  export declare class MemoryEditTool implements AgentTool<typeof memoryEditSchema> {
17
12
  private readonly session;
18
13
  readonly name = "memory_edit";
19
14
  readonly approval: "read";
20
15
  readonly label = "Memory Edit";
21
16
  readonly description: string;
22
- readonly parameters: z.ZodObject<{
23
- op: z.ZodEnum<{
24
- forget: "forget";
25
- invalidate: "invalidate";
26
- update: "update";
27
- }>;
28
- id: z.ZodString;
29
- content: z.ZodOptional<z.ZodString>;
30
- importance: z.ZodOptional<z.ZodNumber>;
31
- replacement_id: z.ZodOptional<z.ZodString>;
32
- }, z.core.$strip>;
17
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
18
+ op: "forget" | "invalidate" | "update";
19
+ id: string;
20
+ content?: string | undefined;
21
+ importance?: number | undefined;
22
+ replacement_id?: string | undefined;
23
+ }, {}>;
33
24
  readonly strict = true;
34
25
  readonly loadMode = "discoverable";
35
26
  readonly summary = "Update, forget, or invalidate Mnemopi memories";
@@ -1,19 +1,18 @@
1
1
  import type { AgentTool, AgentToolResult } from "@oh-my-pi/pi-agent-core";
2
- import { z } from "zod/v4";
3
2
  import type { ToolSession } from ".";
4
- declare const memoryRecallSchema: z.ZodObject<{
5
- query: z.ZodString;
6
- }, z.core.$strip>;
7
- export type MemoryRecallParams = z.infer<typeof memoryRecallSchema>;
3
+ declare const memoryRecallSchema: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ query: string;
5
+ }, {}>;
6
+ export type MemoryRecallParams = typeof memoryRecallSchema.infer;
8
7
  export declare class MemoryRecallTool implements AgentTool<typeof memoryRecallSchema> {
9
8
  private readonly session;
10
9
  readonly name = "recall";
11
10
  readonly approval: "read";
12
11
  readonly label = "Recall";
13
12
  readonly description: string;
14
- readonly parameters: z.ZodObject<{
15
- query: z.ZodString;
16
- }, z.core.$strip>;
13
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
14
+ query: string;
15
+ }, {}>;
17
16
  readonly strict = true;
18
17
  readonly loadMode = "discoverable";
19
18
  readonly summary = "Search memory for relevant prior context";
@@ -1,21 +1,20 @@
1
1
  import type { AgentTool, AgentToolResult } from "@oh-my-pi/pi-agent-core";
2
- import { z } from "zod/v4";
3
2
  import type { ToolSession } from ".";
4
- declare const memoryReflectSchema: z.ZodObject<{
5
- query: z.ZodString;
6
- context: z.ZodOptional<z.ZodString>;
7
- }, z.core.$strip>;
8
- export type MemoryReflectParams = z.infer<typeof memoryReflectSchema>;
3
+ declare const memoryReflectSchema: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ query: string;
5
+ context?: string | undefined;
6
+ }, {}>;
7
+ export type MemoryReflectParams = typeof memoryReflectSchema.infer;
9
8
  export declare class MemoryReflectTool implements AgentTool<typeof memoryReflectSchema> {
10
9
  private readonly session;
11
10
  readonly name = "reflect";
12
11
  readonly approval: "read";
13
12
  readonly label = "Reflect";
14
13
  readonly description: string;
15
- readonly parameters: z.ZodObject<{
16
- query: z.ZodString;
17
- context: z.ZodOptional<z.ZodString>;
18
- }, z.core.$strip>;
14
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
15
+ query: string;
16
+ context?: string | undefined;
17
+ }, {}>;
19
18
  readonly strict = true;
20
19
  readonly loadMode = "discoverable";
21
20
  readonly summary = "Synthesize an answer from long-term memory";
@@ -1,25 +1,24 @@
1
1
  import type { AgentTool, AgentToolResult } from "@oh-my-pi/pi-agent-core";
2
- import { z } from "zod/v4";
3
2
  import type { ToolSession } from ".";
4
- declare const memoryRetainSchema: z.ZodObject<{
5
- items: z.ZodArray<z.ZodObject<{
6
- content: z.ZodString;
7
- context: z.ZodOptional<z.ZodString>;
8
- }, z.core.$strip>>;
9
- }, z.core.$strip>;
10
- export type MemoryRetainParams = z.infer<typeof memoryRetainSchema>;
3
+ declare const memoryRetainSchema: import("arktype/internal/variants/object.ts").ObjectType<{
4
+ items: {
5
+ content: string;
6
+ context?: string | undefined;
7
+ }[];
8
+ }, {}>;
9
+ export type MemoryRetainParams = typeof memoryRetainSchema.infer;
11
10
  export declare class MemoryRetainTool implements AgentTool<typeof memoryRetainSchema> {
12
11
  private readonly session;
13
12
  readonly name = "retain";
14
13
  readonly approval: "read";
15
14
  readonly label = "Retain";
16
15
  readonly description: string;
17
- readonly parameters: z.ZodObject<{
18
- items: z.ZodArray<z.ZodObject<{
19
- content: z.ZodString;
20
- context: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>>;
22
- }, z.core.$strip>;
16
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
17
+ items: {
18
+ content: string;
19
+ context?: string | undefined;
20
+ }[];
21
+ }, {}>;
23
22
  readonly strict = true;
24
23
  readonly loadMode = "discoverable";
25
24
  readonly summary = "Store important facts in long-term memory";
@@ -1,15 +1,14 @@
1
1
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
2
2
  import type { Component } from "@oh-my-pi/pi-tui";
3
- import { z } from "zod/v4";
4
3
  import type { RenderResultOptions } from "../extensibility/custom-tools/types";
5
4
  import { type Theme } from "../modes/theme/theme";
6
5
  import type { ToolSession } from "../sdk";
7
6
  import { type TruncationResult } from "../session/streaming-output";
8
7
  import { type OutputMeta } from "./output-meta";
9
- declare const readSchema: z.ZodObject<{
10
- path: z.ZodString;
11
- }, z.core.$strict>;
12
- export type ReadToolInput = z.infer<typeof readSchema>;
8
+ declare const readSchema: import("arktype/internal/variants/object.ts").ObjectType<{
9
+ path: string;
10
+ }, {}>;
11
+ export type ReadToolInput = typeof readSchema.infer;
13
12
  export interface ReadToolDetails {
14
13
  kind?: "file" | "url";
15
14
  truncation?: TruncationResult;
@@ -58,9 +57,9 @@ export declare class ReadTool implements AgentTool<typeof readSchema, ReadToolDe
58
57
  readonly label = "Read";
59
58
  readonly loadMode = "essential";
60
59
  readonly description: string;
61
- readonly parameters: z.ZodObject<{
62
- path: z.ZodString;
63
- }, z.core.$strict>;
60
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
61
+ path: string;
62
+ }, {}>;
64
63
  readonly strict = true;
65
64
  constructor(session: ToolSession);
66
65
  execute(_toolCallId: string, params: ReadParams, signal?: AbortSignal, _onUpdate?: AgentToolUpdateCallback<ReadToolDetails>, _toolContext?: AgentToolContext): Promise<AgentToolResult<ReadToolDetails>>;
@@ -1,18 +1,14 @@
1
1
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
2
2
  import type { Component } from "@oh-my-pi/pi-tui";
3
- import { z } from "zod/v4";
4
3
  import type { RenderResultOptions } from "../extensibility/custom-tools/types";
5
4
  import type { Theme } from "../modes/theme/theme";
6
5
  import type { ToolSession } from ".";
7
- declare const resolveSchema: z.ZodObject<{
8
- action: z.ZodEnum<{
9
- apply: "apply";
10
- discard: "discard";
11
- }>;
12
- reason: z.ZodString;
13
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
14
- }, z.core.$strip>;
15
- type ResolveParams = z.infer<typeof resolveSchema>;
6
+ declare const resolveSchema: import("arktype/internal/variants/object.ts").ObjectType<{
7
+ action: "apply" | "discard";
8
+ reason: string;
9
+ extra?: Record<string, unknown> | undefined;
10
+ }, {}>;
11
+ type ResolveParams = typeof resolveSchema.infer;
16
12
  export interface ResolveToolDetails {
17
13
  action: "apply" | "discard";
18
14
  reason: string;
@@ -62,14 +58,11 @@ export declare class ResolveTool implements AgentTool<typeof resolveSchema, Reso
62
58
  readonly label = "Resolve";
63
59
  readonly hidden = true;
64
60
  readonly description: string;
65
- readonly parameters: z.ZodObject<{
66
- action: z.ZodEnum<{
67
- apply: "apply";
68
- discard: "discard";
69
- }>;
70
- reason: z.ZodString;
71
- extra: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
72
- }, z.core.$strip>;
61
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
62
+ action: "apply" | "discard";
63
+ reason: string;
64
+ extra?: Record<string, unknown> | undefined;
65
+ }, {}>;
73
66
  readonly strict = true;
74
67
  readonly intent: (args: Partial<ResolveParams>) => string;
75
68
  constructor(session: ToolSession);
@@ -6,7 +6,6 @@
6
6
  * Reviewers finish via `yield` tool with SubmitReviewDetails schema.
7
7
  */
8
8
  import type { AgentTool } from "@oh-my-pi/pi-agent-core";
9
- import { z } from "zod/v4";
10
9
  import type { Theme, ThemeColor } from "../modes/theme/theme";
11
10
  import type { ReviewFinding } from "../task/types";
12
11
  export type FindingPriority = "P0" | "P1" | "P2" | "P3";
@@ -17,20 +16,15 @@ export interface FindingPriorityInfo {
17
16
  }
18
17
  export declare const PRIORITY_LABELS: FindingPriority[];
19
18
  export declare function getPriorityInfo(priority: FindingPriority): FindingPriorityInfo;
20
- declare const ReportFindingParams: z.ZodObject<{
21
- title: z.ZodString;
22
- body: z.ZodString;
23
- priority: z.ZodEnum<{
24
- P0: "P0";
25
- P1: "P1";
26
- P2: "P2";
27
- P3: "P3";
28
- }>;
29
- confidence: z.ZodNumber;
30
- file_path: z.ZodString;
31
- line_start: z.ZodNumber;
32
- line_end: z.ZodNumber;
33
- }, z.core.$strict>;
19
+ declare const ReportFindingParams: import("arktype/internal/variants/object.ts").ObjectType<{
20
+ title: string;
21
+ body: string;
22
+ priority: "P0" | "P1" | "P2" | "P3";
23
+ confidence: number;
24
+ file_path: string;
25
+ line_start: number;
26
+ line_end: number;
27
+ }, {}>;
34
28
  interface ReportFindingDetails {
35
29
  title: string;
36
30
  body: string;
@@ -1,15 +1,14 @@
1
1
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback } from "@oh-my-pi/pi-agent-core";
2
2
  import type { Component } from "@oh-my-pi/pi-tui";
3
- import { z } from "zod/v4";
4
3
  import type { RenderResultOptions } from "../extensibility/custom-tools/types";
5
4
  import type { Theme } from "../modes/theme/theme";
6
5
  import { type DiscoverableTool } from "../tool-discovery/tool-index";
7
6
  import type { ToolSession } from ".";
8
- declare const searchToolBm25Schema: z.ZodObject<{
9
- query: z.ZodString;
10
- limit: z.ZodOptional<z.ZodNumber>;
11
- }, z.core.$strip>;
12
- type SearchToolBm25Params = z.infer<typeof searchToolBm25Schema>;
7
+ declare const searchToolBm25Schema: import("arktype/internal/variants/object.ts").ObjectType<{
8
+ query: string;
9
+ limit?: number | undefined;
10
+ }, {}>;
11
+ type SearchToolBm25Params = typeof searchToolBm25Schema.infer;
13
12
  interface SearchToolBm25Match {
14
13
  name: string;
15
14
  label: string;
@@ -41,10 +40,10 @@ export declare class SearchToolBm25Tool implements AgentTool<typeof searchToolBm
41
40
  readonly label = "SearchTools";
42
41
  readonly loadMode = "essential";
43
42
  get description(): string;
44
- readonly parameters: z.ZodObject<{
45
- query: z.ZodString;
46
- limit: z.ZodOptional<z.ZodNumber>;
47
- }, z.core.$strip>;
43
+ readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
44
+ query: string;
45
+ limit?: number | undefined;
46
+ }, {}>;
48
47
  readonly strict = true;
49
48
  constructor(session: ToolSession);
50
49
  static createIf(session: ToolSession): SearchToolBm25Tool | null;