@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
@@ -17,13 +17,17 @@ export interface CompletedRewindState {
17
17
  /** Timestamp when the rewind completed. */
18
18
  rewoundAt: string;
19
19
  }
20
- declare const checkpointSchema: import("arktype/internal/variants/object.ts").ObjectType<{
20
+ declare const checkpointSchema: import("@oh-my-pi/omptype").FluentType<{
21
21
  goal: string;
22
- }, {}>;
22
+ }, {
23
+ goal: string;
24
+ }>;
23
25
  type CheckpointParams = typeof checkpointSchema.infer;
24
- declare const rewindSchema: import("arktype/internal/variants/object.ts").ObjectType<{
26
+ declare const rewindSchema: import("@oh-my-pi/omptype").FluentType<{
27
+ report: string;
28
+ }, {
25
29
  report: string;
26
- }, {}>;
30
+ }>;
27
31
  type RewindParams = typeof rewindSchema.infer;
28
32
  export interface CheckpointToolDetails {
29
33
  goal: string;
@@ -42,9 +46,11 @@ export declare class CheckpointTool implements AgentTool<typeof checkpointSchema
42
46
  readonly label = "Checkpoint";
43
47
  readonly summary = "Create a git-based checkpoint to save and restore session state";
44
48
  readonly description: string;
45
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
49
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
46
50
  goal: string;
47
- }, {}>;
51
+ }, {
52
+ goal: string;
53
+ }>;
48
54
  readonly strict = true;
49
55
  readonly loadMode = "discoverable";
50
56
  readonly intent: (args: Partial<CheckpointParams>) => string;
@@ -59,9 +65,11 @@ export declare class RewindTool implements AgentTool<typeof rewindSchema, Rewind
59
65
  readonly label = "Rewind";
60
66
  readonly summary = "Rewind to a previously created checkpoint";
61
67
  readonly description: string;
62
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
68
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
69
+ report: string;
70
+ }, {
63
71
  report: string;
64
- }, {}>;
72
+ }>;
65
73
  readonly strict = true;
66
74
  readonly loadMode = "discoverable";
67
75
  readonly intent: () => string;
@@ -1,6 +1,6 @@
1
+ import { type Type } from "@oh-my-pi/omptype";
1
2
  import type { AgentTool, AgentToolContext, AgentToolResult, AgentToolUpdateCallback, ToolApprovalDecision } from "@oh-my-pi/pi-agent-core";
2
3
  import type { DesktopCapabilities } from "@oh-my-pi/pi-natives";
3
- import { type Type } from "arktype";
4
4
  import type { ComputerScreenshot } from "./computer/protocol.js";
5
5
  import { type ComputerController } from "./computer/supervisor.js";
6
6
  import type { ToolSession } from "./index.js";
@@ -11,46 +11,81 @@ import type { OutputMeta } from "./output-meta.js";
11
11
  * `evaluate`, breakpoint mutations, memory writes) are exec-tier.
12
12
  */
13
13
  export declare const DEBUG_READONLY_ACTIONS: ReadonlySet<string>;
14
- declare const debugSchema: import("arktype/internal/variants/object.ts").ObjectType<{
14
+ declare const debugSchema: import("@oh-my-pi/omptype").FluentType<{
15
+ access_type?: "read" | "readWrite" | "write" | undefined;
15
16
  action: "attach" | "continue" | "custom_request" | "data_breakpoint_info" | "disassemble" | "evaluate" | "launch" | "loaded_sources" | "modules" | "output" | "pause" | "read_memory" | "remove_breakpoint" | "remove_data_breakpoint" | "remove_instruction_breakpoint" | "scopes" | "sessions" | "set_breakpoint" | "set_data_breakpoint" | "set_instruction_breakpoint" | "stack_trace" | "step_in" | "step_out" | "step_over" | "terminate" | "threads" | "variables" | "write_memory";
16
- program?: string | undefined;
17
- args?: string[] | undefined;
18
17
  adapter?: string | undefined;
18
+ allow_partial?: boolean | undefined;
19
+ args?: string[] | undefined;
20
+ arguments?: Record<string, unknown> | undefined;
21
+ command?: string | undefined;
22
+ condition?: string | undefined;
23
+ context?: string | undefined;
24
+ count?: number | undefined;
19
25
  cwd?: string | undefined;
26
+ data?: string | undefined;
27
+ data_id?: string | undefined;
28
+ expression?: string | undefined;
20
29
  file?: string | undefined;
21
- line?: number | undefined;
30
+ frame_id?: number | undefined;
22
31
  function?: string | undefined;
23
- name?: string | undefined;
24
- condition?: string | undefined;
25
32
  hit_condition?: string | undefined;
26
- expression?: string | undefined;
27
- context?: string | undefined;
28
- frame_id?: number | undefined;
29
- scope_id?: number | undefined;
30
- variable_ref?: number | undefined;
31
- pid?: number | undefined;
32
- port?: number | undefined;
33
33
  host?: string | undefined;
34
- levels?: number | undefined;
35
- memory_reference?: string | undefined;
36
- instruction_reference?: string | undefined;
37
34
  instruction_count?: number | undefined;
38
35
  instruction_offset?: number | undefined;
36
+ instruction_reference?: string | undefined;
37
+ levels?: number | undefined;
38
+ line?: number | undefined;
39
+ memory_reference?: string | undefined;
40
+ module_count?: number | undefined;
41
+ name?: string | undefined;
42
+ offset?: number | undefined;
43
+ pid?: number | undefined;
44
+ port?: number | undefined;
45
+ program?: string | undefined;
46
+ resolve_symbols?: boolean | undefined;
47
+ scope_id?: number | undefined;
48
+ start_module?: number | undefined;
49
+ timeout?: number | undefined;
50
+ variable_ref?: number | undefined;
51
+ }, {
52
+ access_type?: "read" | "readWrite" | "write" | undefined;
53
+ action: "attach" | "continue" | "custom_request" | "data_breakpoint_info" | "disassemble" | "evaluate" | "launch" | "loaded_sources" | "modules" | "output" | "pause" | "read_memory" | "remove_breakpoint" | "remove_data_breakpoint" | "remove_instruction_breakpoint" | "scopes" | "sessions" | "set_breakpoint" | "set_data_breakpoint" | "set_instruction_breakpoint" | "stack_trace" | "step_in" | "step_out" | "step_over" | "terminate" | "threads" | "variables" | "write_memory";
54
+ adapter?: string | undefined;
55
+ allow_partial?: boolean | undefined;
56
+ args?: string[] | undefined;
57
+ arguments?: Record<string, unknown> | undefined;
58
+ command?: string | undefined;
59
+ condition?: string | undefined;
60
+ context?: string | undefined;
39
61
  count?: number | undefined;
62
+ cwd?: string | undefined;
40
63
  data?: string | undefined;
41
64
  data_id?: string | undefined;
42
- access_type?: "read" | "readWrite" | "write" | undefined;
43
- command?: string | undefined;
44
- arguments?: {
45
- [x: string]: unknown;
46
- } | undefined;
65
+ expression?: string | undefined;
66
+ file?: string | undefined;
67
+ frame_id?: number | undefined;
68
+ function?: string | undefined;
69
+ hit_condition?: string | undefined;
70
+ host?: string | undefined;
71
+ instruction_count?: number | undefined;
72
+ instruction_offset?: number | undefined;
73
+ instruction_reference?: string | undefined;
74
+ levels?: number | undefined;
75
+ line?: number | undefined;
76
+ memory_reference?: string | undefined;
77
+ module_count?: number | undefined;
78
+ name?: string | undefined;
47
79
  offset?: number | undefined;
80
+ pid?: number | undefined;
81
+ port?: number | undefined;
82
+ program?: string | undefined;
48
83
  resolve_symbols?: boolean | undefined;
49
- allow_partial?: boolean | undefined;
84
+ scope_id?: number | undefined;
50
85
  start_module?: number | undefined;
51
- module_count?: number | undefined;
52
86
  timeout?: number | undefined;
53
- }, {}>;
87
+ variable_ref?: number | undefined;
88
+ }>;
54
89
  export type DebugParams = typeof debugSchema.infer;
55
90
  export type DebugAction = DebugParams["action"];
56
91
  interface DebugToolDetails {
@@ -106,46 +141,81 @@ export declare class DebugTool implements AgentTool<typeof debugSchema, DebugToo
106
141
  readonly label = "Debug";
107
142
  readonly summary = "Debug a running process with DAP (debugger adapter protocol)";
108
143
  readonly description: string;
109
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
144
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
145
+ access_type?: "read" | "readWrite" | "write" | undefined;
110
146
  action: "attach" | "continue" | "custom_request" | "data_breakpoint_info" | "disassemble" | "evaluate" | "launch" | "loaded_sources" | "modules" | "output" | "pause" | "read_memory" | "remove_breakpoint" | "remove_data_breakpoint" | "remove_instruction_breakpoint" | "scopes" | "sessions" | "set_breakpoint" | "set_data_breakpoint" | "set_instruction_breakpoint" | "stack_trace" | "step_in" | "step_out" | "step_over" | "terminate" | "threads" | "variables" | "write_memory";
111
- program?: string | undefined;
112
- args?: string[] | undefined;
113
147
  adapter?: string | undefined;
148
+ allow_partial?: boolean | undefined;
149
+ args?: string[] | undefined;
150
+ arguments?: Record<string, unknown> | undefined;
151
+ command?: string | undefined;
152
+ condition?: string | undefined;
153
+ context?: string | undefined;
154
+ count?: number | undefined;
114
155
  cwd?: string | undefined;
156
+ data?: string | undefined;
157
+ data_id?: string | undefined;
158
+ expression?: string | undefined;
115
159
  file?: string | undefined;
116
- line?: number | undefined;
160
+ frame_id?: number | undefined;
117
161
  function?: string | undefined;
118
- name?: string | undefined;
119
- condition?: string | undefined;
120
162
  hit_condition?: string | undefined;
121
- expression?: string | undefined;
122
- context?: string | undefined;
123
- frame_id?: number | undefined;
124
- scope_id?: number | undefined;
125
- variable_ref?: number | undefined;
126
- pid?: number | undefined;
127
- port?: number | undefined;
128
163
  host?: string | undefined;
129
- levels?: number | undefined;
130
- memory_reference?: string | undefined;
131
- instruction_reference?: string | undefined;
132
164
  instruction_count?: number | undefined;
133
165
  instruction_offset?: number | undefined;
166
+ instruction_reference?: string | undefined;
167
+ levels?: number | undefined;
168
+ line?: number | undefined;
169
+ memory_reference?: string | undefined;
170
+ module_count?: number | undefined;
171
+ name?: string | undefined;
172
+ offset?: number | undefined;
173
+ pid?: number | undefined;
174
+ port?: number | undefined;
175
+ program?: string | undefined;
176
+ resolve_symbols?: boolean | undefined;
177
+ scope_id?: number | undefined;
178
+ start_module?: number | undefined;
179
+ timeout?: number | undefined;
180
+ variable_ref?: number | undefined;
181
+ }, {
182
+ access_type?: "read" | "readWrite" | "write" | undefined;
183
+ action: "attach" | "continue" | "custom_request" | "data_breakpoint_info" | "disassemble" | "evaluate" | "launch" | "loaded_sources" | "modules" | "output" | "pause" | "read_memory" | "remove_breakpoint" | "remove_data_breakpoint" | "remove_instruction_breakpoint" | "scopes" | "sessions" | "set_breakpoint" | "set_data_breakpoint" | "set_instruction_breakpoint" | "stack_trace" | "step_in" | "step_out" | "step_over" | "terminate" | "threads" | "variables" | "write_memory";
184
+ adapter?: string | undefined;
185
+ allow_partial?: boolean | undefined;
186
+ args?: string[] | undefined;
187
+ arguments?: Record<string, unknown> | undefined;
188
+ command?: string | undefined;
189
+ condition?: string | undefined;
190
+ context?: string | undefined;
134
191
  count?: number | undefined;
192
+ cwd?: string | undefined;
135
193
  data?: string | undefined;
136
194
  data_id?: string | undefined;
137
- access_type?: "read" | "readWrite" | "write" | undefined;
138
- command?: string | undefined;
139
- arguments?: {
140
- [x: string]: unknown;
141
- } | undefined;
195
+ expression?: string | undefined;
196
+ file?: string | undefined;
197
+ frame_id?: number | undefined;
198
+ function?: string | undefined;
199
+ hit_condition?: string | undefined;
200
+ host?: string | undefined;
201
+ instruction_count?: number | undefined;
202
+ instruction_offset?: number | undefined;
203
+ instruction_reference?: string | undefined;
204
+ levels?: number | undefined;
205
+ line?: number | undefined;
206
+ memory_reference?: string | undefined;
207
+ module_count?: number | undefined;
208
+ name?: string | undefined;
142
209
  offset?: number | undefined;
210
+ pid?: number | undefined;
211
+ port?: number | undefined;
212
+ program?: string | undefined;
143
213
  resolve_symbols?: boolean | undefined;
144
- allow_partial?: boolean | undefined;
214
+ scope_id?: number | undefined;
145
215
  start_module?: number | undefined;
146
- module_count?: number | undefined;
147
216
  timeout?: number | undefined;
148
- }, {}>;
217
+ variable_ref?: number | undefined;
218
+ }>;
149
219
  readonly strict = true;
150
220
  readonly examples: readonly ToolExample<typeof debugSchema.infer>[];
151
221
  readonly concurrency = "exclusive";
@@ -12,13 +12,19 @@ export type EvalLanguageToken = "py" | "js" | "rb" | "jl";
12
12
  * the full language union for typing; {@link buildEvalSchema} narrows the wire
13
13
  * copy per session so disabled backends are never advertised to the model.
14
14
  */
15
- export declare const evalSchema: import("arktype/internal/variants/object.ts").ObjectType<{
16
- title?: string | undefined;
17
- timeout?: number | undefined;
18
- reset?: boolean | undefined;
15
+ export declare const evalSchema: import("@oh-my-pi/omptype").FluentType<{
16
+ code: string;
19
17
  language: "jl" | "js" | "py" | "rb";
18
+ reset?: boolean | undefined;
19
+ timeout?: number | undefined;
20
+ title?: string | undefined;
21
+ }, {
20
22
  code: string;
21
- }, {}>;
23
+ language: "jl" | "js" | "py" | "rb";
24
+ reset?: boolean | undefined;
25
+ timeout?: number | undefined;
26
+ title?: string | undefined;
27
+ }>;
22
28
  export type EvalToolParams = typeof evalSchema.infer;
23
29
  export type EvalCellInput = EvalToolParams;
24
30
  export type EvalToolResult = {
@@ -6,31 +6,55 @@ import { type CacheStatus } from "./github-cache.js";
6
6
  import type { OutputMeta } from "./output-meta.js";
7
7
  /** Runs `gh --json` for issue data, retrying without optional stateReason on older gh releases. */
8
8
  export declare function githubIssueJsonWithStateReasonFallback<T>(cwd: string, args: readonly string[], signal: AbortSignal | undefined, options?: git.GhCommandOptions): Promise<T>;
9
- declare const githubSchema: import("arktype/internal/variants/object.ts").ObjectType<{
10
- op: "file_read" | "pr_checkout" | "pr_create" | "pr_push" | "repo_view" | "run_watch" | "search_code" | "search_commits" | "search_issues" | "search_prs" | "search_repos";
11
- repo?: string | undefined;
9
+ declare const githubSchema: import("@oh-my-pi/omptype").FluentType<{
10
+ assignee?: string[] | undefined;
11
+ base?: string | undefined;
12
+ body?: string | undefined;
12
13
  branch?: string | undefined;
13
- path?: string | undefined;
14
- pr?: string | string[] | undefined;
14
+ dateField?: "created" | "updated" | undefined;
15
+ draft?: boolean | undefined;
16
+ fill?: boolean | undefined;
15
17
  force?: boolean | undefined;
16
18
  forceWithLease?: boolean | undefined;
17
- title?: string | undefined;
18
- body?: string | undefined;
19
- base?: string | undefined;
20
19
  head?: string | undefined;
21
- draft?: boolean | undefined;
22
- fill?: boolean | undefined;
23
- reviewer?: string[] | undefined;
24
- assignee?: string[] | undefined;
25
20
  label?: string[] | undefined;
21
+ limit?: number | undefined;
22
+ op: "file_read" | "pr_checkout" | "pr_create" | "pr_push" | "repo_view" | "run_watch" | "search_code" | "search_commits" | "search_issues" | "search_prs" | "search_repos";
23
+ path?: string | undefined;
24
+ pr?: string | string[] | undefined;
26
25
  query?: string | undefined;
26
+ repo?: string | undefined;
27
+ reviewer?: string[] | undefined;
28
+ run?: string | undefined;
27
29
  since?: string | undefined;
30
+ tail?: number | undefined;
31
+ title?: string | undefined;
28
32
  until?: string | undefined;
33
+ }, {
34
+ assignee?: string[] | undefined;
35
+ base?: string | undefined;
36
+ body?: string | undefined;
37
+ branch?: string | undefined;
29
38
  dateField?: "created" | "updated" | undefined;
39
+ draft?: boolean | undefined;
40
+ fill?: boolean | undefined;
41
+ force?: boolean | undefined;
42
+ forceWithLease?: boolean | undefined;
43
+ head?: string | undefined;
44
+ label?: string[] | undefined;
30
45
  limit?: number | undefined;
46
+ op: "file_read" | "pr_checkout" | "pr_create" | "pr_push" | "repo_view" | "run_watch" | "search_code" | "search_commits" | "search_issues" | "search_prs" | "search_repos";
47
+ path?: string | undefined;
48
+ pr?: string | string[] | undefined;
49
+ query?: string | undefined;
50
+ repo?: string | undefined;
51
+ reviewer?: string[] | undefined;
31
52
  run?: string | undefined;
53
+ since?: string | undefined;
32
54
  tail?: number | undefined;
33
- }, {}>;
55
+ title?: string | undefined;
56
+ until?: string | undefined;
57
+ }>;
34
58
  type GithubInput = typeof githubSchema.infer;
35
59
  export interface GhToolDetails {
36
60
  meta?: OutputMeta;
@@ -224,31 +248,55 @@ export declare class GithubTool implements AgentTool<typeof githubSchema, GhTool
224
248
  readonly loadMode = "discoverable";
225
249
  readonly label = "GitHub";
226
250
  readonly description: string;
227
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
228
- op: "file_read" | "pr_checkout" | "pr_create" | "pr_push" | "repo_view" | "run_watch" | "search_code" | "search_commits" | "search_issues" | "search_prs" | "search_repos";
229
- repo?: string | undefined;
251
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
252
+ assignee?: string[] | undefined;
253
+ base?: string | undefined;
254
+ body?: string | undefined;
230
255
  branch?: string | undefined;
231
- path?: string | undefined;
232
- pr?: string | string[] | undefined;
256
+ dateField?: "created" | "updated" | undefined;
257
+ draft?: boolean | undefined;
258
+ fill?: boolean | undefined;
233
259
  force?: boolean | undefined;
234
260
  forceWithLease?: boolean | undefined;
235
- title?: string | undefined;
236
- body?: string | undefined;
237
- base?: string | undefined;
238
261
  head?: string | undefined;
239
- draft?: boolean | undefined;
240
- fill?: boolean | undefined;
241
- reviewer?: string[] | undefined;
242
- assignee?: string[] | undefined;
243
262
  label?: string[] | undefined;
263
+ limit?: number | undefined;
264
+ op: "file_read" | "pr_checkout" | "pr_create" | "pr_push" | "repo_view" | "run_watch" | "search_code" | "search_commits" | "search_issues" | "search_prs" | "search_repos";
265
+ path?: string | undefined;
266
+ pr?: string | string[] | undefined;
244
267
  query?: string | undefined;
268
+ repo?: string | undefined;
269
+ reviewer?: string[] | undefined;
270
+ run?: string | undefined;
245
271
  since?: string | undefined;
272
+ tail?: number | undefined;
273
+ title?: string | undefined;
246
274
  until?: string | undefined;
275
+ }, {
276
+ assignee?: string[] | undefined;
277
+ base?: string | undefined;
278
+ body?: string | undefined;
279
+ branch?: string | undefined;
247
280
  dateField?: "created" | "updated" | undefined;
281
+ draft?: boolean | undefined;
282
+ fill?: boolean | undefined;
283
+ force?: boolean | undefined;
284
+ forceWithLease?: boolean | undefined;
285
+ head?: string | undefined;
286
+ label?: string[] | undefined;
248
287
  limit?: number | undefined;
288
+ op: "file_read" | "pr_checkout" | "pr_create" | "pr_push" | "repo_view" | "run_watch" | "search_code" | "search_commits" | "search_issues" | "search_prs" | "search_repos";
289
+ path?: string | undefined;
290
+ pr?: string | string[] | undefined;
291
+ query?: string | undefined;
292
+ repo?: string | undefined;
293
+ reviewer?: string[] | undefined;
249
294
  run?: string | undefined;
295
+ since?: string | undefined;
250
296
  tail?: number | undefined;
251
- }, {}>;
297
+ title?: string | undefined;
298
+ until?: string | undefined;
299
+ }>;
252
300
  readonly strict = true;
253
301
  constructor(session: ToolSession);
254
302
  static createIf(session: ToolSession): GithubTool | null;
@@ -6,12 +6,17 @@ import type { Theme } from "../modes/theme/theme.js";
6
6
  import { type TruncationResult } from "../session/streaming-output.js";
7
7
  import type { ToolSession } from "./index.js";
8
8
  import { type OutputMeta } from "./output-meta.js";
9
- declare const findSchema: import("arktype/internal/variants/object.ts").ObjectType<{
10
- path?: string | undefined;
9
+ declare const findSchema: import("@oh-my-pi/omptype").FluentType<{
10
+ gitignore?: boolean | undefined;
11
11
  hidden?: boolean | undefined;
12
+ limit?: number | undefined;
13
+ path?: string | undefined;
14
+ }, {
12
15
  gitignore?: boolean | undefined;
16
+ hidden?: boolean | undefined;
13
17
  limit?: number | undefined;
14
- }, {}>;
18
+ path?: string | undefined;
19
+ }>;
15
20
  export type GlobToolInput = typeof findSchema.infer;
16
21
  export interface GlobToolDetails {
17
22
  truncation?: TruncationResult;
@@ -65,12 +70,17 @@ export declare class GlobTool implements AgentTool<typeof findSchema, GlobToolDe
65
70
  readonly loadMode = "essential";
66
71
  readonly label = "Glob";
67
72
  get description(): string;
68
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
69
- path?: string | undefined;
73
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
74
+ gitignore?: boolean | undefined;
70
75
  hidden?: boolean | undefined;
76
+ limit?: number | undefined;
77
+ path?: string | undefined;
78
+ }, {
71
79
  gitignore?: boolean | undefined;
80
+ hidden?: boolean | undefined;
72
81
  limit?: number | undefined;
73
- }, {}>;
82
+ path?: string | undefined;
83
+ }>;
74
84
  readonly examples: readonly ToolExample<typeof findSchema.infer>[];
75
85
  readonly strict = true;
76
86
  constructor(session: ToolSession, options?: GlobToolOptions);
@@ -5,13 +5,19 @@ import type { Theme } from "../modes/theme/theme.js";
5
5
  import { type TruncationResult } from "../session/streaming-output.js";
6
6
  import type { ToolSession } from "./index.js";
7
7
  import type { OutputMeta } from "./output-meta.js";
8
- declare const searchSchema: import("arktype/internal/variants/object.ts").ObjectType<{
9
- pattern: string;
8
+ declare const searchSchema: import("@oh-my-pi/omptype").FluentType<{
9
+ case?: boolean | undefined;
10
+ gitignore?: boolean | undefined;
10
11
  path?: string | undefined;
12
+ pattern: string;
13
+ skip?: number | null | undefined;
14
+ }, {
11
15
  case?: boolean | undefined;
12
16
  gitignore?: boolean | undefined;
17
+ path?: string | undefined;
18
+ pattern: string;
13
19
  skip?: number | null | undefined;
14
- }, {}>;
20
+ }>;
15
21
  export type GrepToolInput = typeof searchSchema.infer;
16
22
  /** Maximum number of distinct files surfaced in a single response. The
17
23
  * agent paginates further pages via `skip`. */
@@ -79,13 +85,19 @@ export declare class GrepTool implements AgentTool<typeof searchSchema, GrepTool
79
85
  readonly loadMode = "discoverable";
80
86
  readonly summary = "Grep file contents using ripgrep (fast regex search)";
81
87
  get description(): string;
82
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
83
- pattern: string;
88
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
89
+ case?: boolean | undefined;
90
+ gitignore?: boolean | undefined;
84
91
  path?: string | undefined;
92
+ pattern: string;
93
+ skip?: number | null | undefined;
94
+ }, {
85
95
  case?: boolean | undefined;
86
96
  gitignore?: boolean | undefined;
97
+ path?: string | undefined;
98
+ pattern: string;
87
99
  skip?: number | null | undefined;
88
- }, {}>;
100
+ }>;
89
101
  readonly strict = true;
90
102
  constructor(session: ToolSession, options?: GrepToolOptions);
91
103
  execute(_toolCallId: string, params: SearchParams, signal?: AbortSignal, _onUpdate?: AgentToolUpdateCallback<GrepToolDetails>, _toolContext?: AgentToolContext): Promise<AgentToolResult<GrepToolDetails>>;