@oh-my-pi/pi-coding-agent 17.2.5 → 17.2.7

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 (201) hide show
  1. package/CHANGELOG.md +35 -1
  2. package/dist/{CHANGELOG-q2w43aw3.md → CHANGELOG-1p8yvde7.md} +35 -1
  3. package/dist/cli.js +3340 -3339
  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/cli/gc-cli.d.ts +1 -0
  10. package/dist/types/commit/agentic/tools/analyze-file.d.ts +5 -2
  11. package/dist/types/commit/agentic/tools/git-file-diff.d.ts +5 -2
  12. package/dist/types/commit/agentic/tools/git-hunk.d.ts +6 -2
  13. package/dist/types/commit/agentic/tools/git-overview.d.ts +5 -2
  14. package/dist/types/commit/agentic/tools/propose-changelog.d.ts +29 -7
  15. package/dist/types/commit/agentic/tools/propose-commit.d.ts +14 -4
  16. package/dist/types/commit/agentic/tools/recent-commits.d.ts +4 -2
  17. package/dist/types/commit/agentic/tools/schemas.d.ts +7 -3
  18. package/dist/types/commit/agentic/tools/split-commit.d.ts +37 -10
  19. package/dist/types/commit/changelog/generate.d.ts +13 -3
  20. package/dist/types/commit/shared-llm.d.ts +13 -4
  21. package/dist/types/config/config-file.d.ts +1 -1
  22. package/dist/types/config/models-config-schema-bundle.d.ts +1992 -981
  23. package/dist/types/config/models-config-schema.d.ts +1201 -580
  24. package/dist/types/config/models-config.d.ts +355 -371
  25. package/dist/types/edit/hashline/params.d.ts +4 -2
  26. package/dist/types/edit/modes/apply-patch.d.ts +4 -2
  27. package/dist/types/edit/modes/patch.d.ts +16 -5
  28. package/dist/types/edit/modes/replace.d.ts +8 -3
  29. package/dist/types/eval/bridge-timeout.d.ts +5 -2
  30. package/dist/types/eval/completion-bridge.d.ts +13 -0
  31. package/dist/types/eval/py/tool-bridge.d.ts +12 -0
  32. package/dist/types/extensibility/custom-commands/types.d.ts +4 -4
  33. package/dist/types/extensibility/custom-tools/types.d.ts +4 -4
  34. package/dist/types/extensibility/extensions/types.d.ts +4 -4
  35. package/dist/types/extensibility/hooks/types.d.ts +4 -4
  36. package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +1 -1
  37. package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +1 -1
  38. package/dist/types/extensibility/legacy-typebox.d.ts +8 -0
  39. package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +6 -13
  40. package/dist/types/goals/tools/goal-tool.d.ts +12 -4
  41. package/dist/types/launch/client.d.ts +9 -1
  42. package/dist/types/launch/protocol.d.ts +17 -0
  43. package/dist/types/lsp/index.d.ts +15 -5
  44. package/dist/types/lsp/types.d.ts +15 -5
  45. package/dist/types/modes/components/btw-panel.d.ts +3 -0
  46. package/dist/types/modes/controllers/btw-controller.d.ts +2 -0
  47. package/dist/types/modes/controllers/command-controller.d.ts +1 -0
  48. package/dist/types/modes/interactive-mode.d.ts +4 -1
  49. package/dist/types/modes/types.d.ts +3 -1
  50. package/dist/types/security/contracts/schemas.d.ts +1115 -537
  51. package/dist/types/security/publication.d.ts +92 -34
  52. package/dist/types/session/agent-session-types.d.ts +5 -0
  53. package/dist/types/session/agent-session.d.ts +26 -2
  54. package/dist/types/session/launch-completion.d.ts +10 -0
  55. package/dist/types/session/session-entries.d.ts +15 -1
  56. package/dist/types/session/session-manager.d.ts +7 -0
  57. package/dist/types/session/yield-queue.d.ts +6 -1
  58. package/dist/types/task/types.d.ts +63 -18
  59. package/dist/types/tools/ask.d.ts +34 -8
  60. package/dist/types/tools/ast-edit.d.ts +16 -4
  61. package/dist/types/tools/ast-grep.d.ts +12 -4
  62. package/dist/types/tools/bash.d.ts +20 -11
  63. package/dist/types/tools/browser.d.ts +64 -20
  64. package/dist/types/tools/checkpoint.d.ts +16 -8
  65. package/dist/types/tools/computer.d.ts +1 -1
  66. package/dist/types/tools/debug.d.ts +118 -48
  67. package/dist/types/tools/eval.d.ts +11 -5
  68. package/dist/types/tools/gh.d.ts +74 -26
  69. package/dist/types/tools/glob.d.ts +16 -6
  70. package/dist/types/tools/grep.d.ts +18 -6
  71. package/dist/types/tools/hub/index.d.ts +116 -46
  72. package/dist/types/tools/image-gen.d.ts +25 -8
  73. package/dist/types/tools/index.d.ts +9 -0
  74. package/dist/types/tools/inspect-image.d.ts +10 -4
  75. package/dist/types/tools/learn.d.ts +26 -8
  76. package/dist/types/tools/manage-skill.d.ts +16 -6
  77. package/dist/types/tools/memory-edit.d.ts +18 -6
  78. package/dist/types/tools/memory-recall.d.ts +8 -4
  79. package/dist/types/tools/memory-reflect.d.ts +10 -4
  80. package/dist/types/tools/memory-retain.d.ts +14 -4
  81. package/dist/types/tools/read.d.ts +8 -4
  82. package/dist/types/tools/security-scan.d.ts +82 -30
  83. package/dist/types/tools/todo.d.ts +30 -10
  84. package/dist/types/tools/tts.d.ts +12 -5
  85. package/dist/types/tools/vibe.d.ts +42 -18
  86. package/dist/types/tools/write.d.ts +10 -4
  87. package/dist/types/web/search/index.d.ts +20 -6
  88. package/package.json +13 -13
  89. package/scripts/legacy-pi-virtual-module.ts +2 -2
  90. package/src/advisor/advise-tool.ts +1 -1
  91. package/src/advisor/config.ts +1 -1
  92. package/src/autoresearch/tools/init-experiment.ts +1 -2
  93. package/src/autoresearch/tools/log-experiment.ts +1 -2
  94. package/src/autoresearch/tools/run-experiment.ts +1 -1
  95. package/src/autoresearch/tools/update-notes.ts +1 -1
  96. package/src/cli/gc-cli.ts +641 -21
  97. package/src/commit/agentic/tools/analyze-file.ts +1 -1
  98. package/src/commit/agentic/tools/git-file-diff.ts +1 -1
  99. package/src/commit/agentic/tools/git-hunk.ts +1 -1
  100. package/src/commit/agentic/tools/git-overview.ts +1 -1
  101. package/src/commit/agentic/tools/propose-changelog.ts +1 -1
  102. package/src/commit/agentic/tools/propose-commit.ts +1 -1
  103. package/src/commit/agentic/tools/recent-commits.ts +1 -1
  104. package/src/commit/agentic/tools/schemas.ts +1 -1
  105. package/src/commit/agentic/tools/split-commit.ts +1 -1
  106. package/src/commit/analysis/summary.ts +1 -1
  107. package/src/commit/changelog/generate.ts +1 -1
  108. package/src/config/config-file.ts +2 -2
  109. package/src/config/model-discovery.ts +14 -14
  110. package/src/config/model-registry.ts +10 -8
  111. package/src/config/models-config-schema-bundle.ts +1 -8
  112. package/src/config/settings.ts +1 -1
  113. package/src/discovery/codex.ts +22 -9
  114. package/src/edit/hashline/params.ts +1 -1
  115. package/src/edit/modes/apply-patch.ts +1 -1
  116. package/src/edit/modes/patch.ts +1 -1
  117. package/src/edit/modes/replace.ts +2 -1
  118. package/src/eval/agent-bridge.ts +4 -2
  119. package/src/eval/bridge-timeout.ts +5 -2
  120. package/src/eval/completion-bridge.ts +3 -2
  121. package/src/eval/executor-base.ts +20 -1
  122. package/src/eval/js/context-manager.ts +94 -6
  123. package/src/eval/py/tool-bridge.ts +29 -9
  124. package/src/export/html/index.ts +10 -3
  125. package/src/export/share.ts +4 -0
  126. package/src/extensibility/custom-commands/loader.ts +3 -3
  127. package/src/extensibility/custom-commands/types.ts +4 -4
  128. package/src/extensibility/custom-tools/loader.ts +3 -3
  129. package/src/extensibility/custom-tools/types.ts +5 -4
  130. package/src/extensibility/extensions/loader.ts +3 -3
  131. package/src/extensibility/extensions/types.ts +5 -4
  132. package/src/extensibility/hooks/loader.ts +3 -3
  133. package/src/extensibility/hooks/types.ts +4 -4
  134. package/src/extensibility/legacy-pi-ai-shim.ts +1 -1
  135. package/src/extensibility/legacy-pi-coding-agent-shim.ts +2 -2
  136. package/src/extensibility/legacy-typebox.ts +101 -0
  137. package/src/extensibility/plugins/legacy-pi-compat.ts +13 -22
  138. package/src/goals/tools/goal-tool.ts +1 -1
  139. package/src/launch/broker.ts +222 -6
  140. package/src/launch/client.ts +161 -9
  141. package/src/launch/protocol.ts +52 -0
  142. package/src/lsp/types.ts +1 -1
  143. package/src/main.ts +13 -6
  144. package/src/mcp/config-writer.ts +1 -1
  145. package/src/modes/components/btw-panel.ts +41 -4
  146. package/src/modes/controllers/btw-controller.ts +55 -7
  147. package/src/modes/controllers/command-controller.ts +31 -0
  148. package/src/modes/controllers/input-controller.ts +24 -7
  149. package/src/modes/interactive-mode.ts +16 -2
  150. package/src/modes/theme/theme.ts +3 -3
  151. package/src/modes/types.ts +8 -1
  152. package/src/prompts/session/launch-completion.md +1 -0
  153. package/src/sdk.ts +15 -0
  154. package/src/security/contracts/schemas.ts +202 -184
  155. package/src/security/contracts/validation.ts +6 -2
  156. package/src/security/publication.ts +1 -1
  157. package/src/security/store.ts +2 -2
  158. package/src/session/agent-session-types.ts +6 -0
  159. package/src/session/agent-session.ts +190 -14
  160. package/src/session/launch-completion.ts +37 -0
  161. package/src/session/session-context.ts +26 -0
  162. package/src/session/session-entries.ts +17 -1
  163. package/src/session/session-manager.ts +21 -0
  164. package/src/session/yield-queue.ts +121 -16
  165. package/src/slash-commands/builtin-registry.ts +10 -1
  166. package/src/task/types.ts +1 -1
  167. package/src/tools/ask.ts +1 -1
  168. package/src/tools/ast-edit.ts +1 -1
  169. package/src/tools/ast-grep.ts +1 -1
  170. package/src/tools/bash.ts +61 -3
  171. package/src/tools/browser/cmux/cmux-tab.ts +92 -4
  172. package/src/tools/browser.ts +1 -1
  173. package/src/tools/checkpoint.ts +1 -1
  174. package/src/tools/computer.ts +1 -1
  175. package/src/tools/debug.ts +1 -1
  176. package/src/tools/eval.ts +1 -1
  177. package/src/tools/gh.ts +1 -2
  178. package/src/tools/glob.ts +1 -1
  179. package/src/tools/grep.ts +1 -1
  180. package/src/tools/hub/index.ts +1 -1
  181. package/src/tools/hub/launch.ts +122 -6
  182. package/src/tools/image-gen.ts +1 -1
  183. package/src/tools/index.ts +9 -0
  184. package/src/tools/inspect-image.ts +1 -1
  185. package/src/tools/learn.ts +1 -1
  186. package/src/tools/manage-skill.ts +1 -1
  187. package/src/tools/memory-edit.ts +1 -1
  188. package/src/tools/memory-recall.ts +1 -1
  189. package/src/tools/memory-reflect.ts +1 -1
  190. package/src/tools/memory-retain.ts +1 -1
  191. package/src/tools/read.ts +1 -1
  192. package/src/tools/security-scan.ts +1 -1
  193. package/src/tools/todo.ts +1 -1
  194. package/src/tools/tts.ts +1 -1
  195. package/src/tools/vibe.ts +2 -1
  196. package/src/tools/write.ts +1 -1
  197. package/src/web/search/index.ts +2 -1
  198. package/dist/types/config/file-lock.d.ts +0 -29
  199. package/dist/types/extensibility/typebox.d.ts +0 -181
  200. package/src/config/file-lock.ts +0 -164
  201. package/src/extensibility/typebox.ts +0 -958
@@ -41,25 +41,34 @@ export declare function wrapShellLineForClientTerminal(line: string, shellConfig
41
41
  * New patterns should target shapes that are virtually never legitimate in automation.
42
42
  */
43
43
  export declare const CRITICAL_BASH_PATTERNS: readonly [RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp, RegExp];
44
- declare const bashSchemaBase: import("arktype/internal/variants/object.ts").ObjectType<{
44
+ declare const bashSchemaBase: import("@oh-my-pi/omptype").FluentType<{
45
45
  command: string;
46
- env?: {
47
- [x: string]: string;
48
- } | undefined;
49
- timeout?: number | undefined;
50
46
  cwd?: string | undefined;
47
+ env?: Record<string, string> | undefined;
51
48
  pty?: boolean | undefined;
52
- }, {}>;
53
- declare const bashSchemaWithAsync: import("arktype/internal/variants/object.ts").ObjectType<{
49
+ timeout?: number | undefined;
50
+ }, {
54
51
  command: string;
55
- env?: {
56
- [x: string]: string;
57
- } | undefined;
52
+ cwd?: string | undefined;
53
+ env?: Record<string, string> | undefined;
54
+ pty?: boolean | undefined;
58
55
  timeout?: number | undefined;
56
+ }>;
57
+ declare const bashSchemaWithAsync: import("@oh-my-pi/omptype").FluentType<{
58
+ async?: boolean | undefined;
59
+ command: string;
59
60
  cwd?: string | undefined;
61
+ env?: Record<string, string> | undefined;
60
62
  pty?: boolean | undefined;
63
+ timeout?: number | undefined;
64
+ }, {
61
65
  async?: boolean | undefined;
62
- }, {}>;
66
+ command: string;
67
+ cwd?: string | undefined;
68
+ env?: Record<string, string> | undefined;
69
+ pty?: boolean | undefined;
70
+ timeout?: number | undefined;
71
+ }>;
63
72
  type BashToolSchema = typeof bashSchemaBase | typeof bashSchemaWithAsync;
64
73
  export interface BashToolInput {
65
74
  command: string;
@@ -10,29 +10,51 @@ export { CmuxSocketClient } from "./browser/cmux/socket-client.js";
10
10
  export { extractReadableFromHtml, type ReadableFormat, type ReadableResult } from "./browser/readable.js";
11
11
  export { DEFAULT_RELAY_URL, type RelayKind, resolveRelayKind } from "./browser/relay/kind.js";
12
12
  export type { Observation, ObservationEntry } from "./browser/tab-protocol.js";
13
- declare const browserSchema: import("arktype/internal/variants/object.ts").ObjectType<{
13
+ declare const browserSchema: import("@oh-my-pi/omptype").FluentType<{
14
14
  action: "close" | "open" | "run";
15
- name?: string | undefined;
16
- url?: string | undefined;
15
+ all?: boolean | undefined;
17
16
  app?: {
18
- path?: string | undefined;
17
+ args?: string[] | undefined;
19
18
  cdp_url?: string | undefined;
19
+ path?: string | undefined;
20
20
  relay?: boolean | undefined;
21
- args?: string[] | undefined;
22
21
  target?: string | undefined;
23
22
  } | undefined;
23
+ code?: string | undefined;
24
+ dialogs?: "accept" | "dismiss" | undefined;
25
+ kill?: boolean | undefined;
26
+ name?: string | undefined;
27
+ timeout?: number | undefined;
28
+ url?: string | undefined;
24
29
  viewport?: {
25
- width: number;
26
30
  height: number;
27
31
  scale?: number | undefined;
32
+ width: number;
28
33
  } | undefined;
29
34
  wait_until?: "domcontentloaded" | "load" | "networkidle0" | "networkidle2" | undefined;
30
- dialogs?: "accept" | "dismiss" | undefined;
31
- code?: string | undefined;
32
- timeout?: number | undefined;
35
+ }, {
36
+ action: "close" | "open" | "run";
33
37
  all?: boolean | undefined;
38
+ app?: {
39
+ args?: string[] | undefined;
40
+ cdp_url?: string | undefined;
41
+ path?: string | undefined;
42
+ relay?: boolean | undefined;
43
+ target?: string | undefined;
44
+ } | undefined;
45
+ code?: string | undefined;
46
+ dialogs?: "accept" | "dismiss" | undefined;
34
47
  kill?: boolean | undefined;
35
- }, {}>;
48
+ name?: string | undefined;
49
+ timeout?: number | undefined;
50
+ url?: string | undefined;
51
+ viewport?: {
52
+ height: number;
53
+ scale?: number | undefined;
54
+ width: number;
55
+ } | undefined;
56
+ wait_until?: "domcontentloaded" | "load" | "networkidle0" | "networkidle2" | undefined;
57
+ }>;
36
58
  /** Input schema for the browser tool. */
37
59
  export type BrowserParams = typeof browserSchema.infer;
38
60
  /** Details describing a browser tool execution result (for renderers + transcript). */
@@ -66,29 +88,51 @@ export declare class BrowserTool implements AgentTool<typeof browserSchema, Brow
66
88
  readonly label = "Browser";
67
89
  readonly loadMode = "discoverable";
68
90
  readonly summary = "Control a headless browser to navigate and interact with web pages";
69
- readonly parameters: import("arktype/internal/variants/object.ts").ObjectType<{
91
+ readonly parameters: import("@oh-my-pi/omptype").FluentType<{
70
92
  action: "close" | "open" | "run";
71
- name?: string | undefined;
72
- url?: string | undefined;
93
+ all?: boolean | undefined;
73
94
  app?: {
74
- path?: string | undefined;
95
+ args?: string[] | undefined;
75
96
  cdp_url?: string | undefined;
97
+ path?: string | undefined;
76
98
  relay?: boolean | undefined;
77
- args?: string[] | undefined;
78
99
  target?: string | undefined;
79
100
  } | undefined;
101
+ code?: string | undefined;
102
+ dialogs?: "accept" | "dismiss" | undefined;
103
+ kill?: boolean | undefined;
104
+ name?: string | undefined;
105
+ timeout?: number | undefined;
106
+ url?: string | undefined;
80
107
  viewport?: {
81
- width: number;
82
108
  height: number;
83
109
  scale?: number | undefined;
110
+ width: number;
84
111
  } | undefined;
85
112
  wait_until?: "domcontentloaded" | "load" | "networkidle0" | "networkidle2" | undefined;
86
- dialogs?: "accept" | "dismiss" | undefined;
87
- code?: string | undefined;
88
- timeout?: number | undefined;
113
+ }, {
114
+ action: "close" | "open" | "run";
89
115
  all?: boolean | undefined;
116
+ app?: {
117
+ args?: string[] | undefined;
118
+ cdp_url?: string | undefined;
119
+ path?: string | undefined;
120
+ relay?: boolean | undefined;
121
+ target?: string | undefined;
122
+ } | undefined;
123
+ code?: string | undefined;
124
+ dialogs?: "accept" | "dismiss" | undefined;
90
125
  kill?: boolean | undefined;
91
- }, {}>;
126
+ name?: string | undefined;
127
+ timeout?: number | undefined;
128
+ url?: string | undefined;
129
+ viewport?: {
130
+ height: number;
131
+ scale?: number | undefined;
132
+ width: number;
133
+ } | undefined;
134
+ wait_until?: "domcontentloaded" | "load" | "networkidle0" | "networkidle2" | undefined;
135
+ }>;
92
136
  readonly strict = true;
93
137
  readonly examples: readonly ToolExample<typeof browserSchema.infer>[];
94
138
  constructor(session: ToolSession);
@@ -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);