@oh-my-pi/pi-coding-agent 17.2.6 → 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.
- package/CHANGELOG.md +17 -1
- package/dist/{CHANGELOG-gs76k6wc.md → CHANGELOG-1p8yvde7.md} +17 -1
- package/dist/cli.js +3645 -3689
- package/dist/types/advisor/advise-tool.d.ts +10 -4
- package/dist/types/autoresearch/tools/init-experiment.d.ts +19 -7
- package/dist/types/autoresearch/tools/log-experiment.d.ts +19 -11
- package/dist/types/autoresearch/tools/run-experiment.d.ts +4 -2
- package/dist/types/autoresearch/tools/update-notes.d.ts +5 -2
- package/dist/types/commit/agentic/tools/analyze-file.d.ts +5 -2
- package/dist/types/commit/agentic/tools/git-file-diff.d.ts +5 -2
- package/dist/types/commit/agentic/tools/git-hunk.d.ts +6 -2
- package/dist/types/commit/agentic/tools/git-overview.d.ts +5 -2
- package/dist/types/commit/agentic/tools/propose-changelog.d.ts +29 -7
- package/dist/types/commit/agentic/tools/propose-commit.d.ts +14 -4
- package/dist/types/commit/agentic/tools/recent-commits.d.ts +4 -2
- package/dist/types/commit/agentic/tools/schemas.d.ts +7 -3
- package/dist/types/commit/agentic/tools/split-commit.d.ts +37 -10
- package/dist/types/commit/changelog/generate.d.ts +13 -3
- package/dist/types/commit/shared-llm.d.ts +13 -4
- package/dist/types/config/config-file.d.ts +1 -1
- package/dist/types/config/models-config-schema-bundle.d.ts +1992 -981
- package/dist/types/config/models-config-schema.d.ts +1201 -580
- package/dist/types/config/models-config.d.ts +355 -371
- package/dist/types/edit/hashline/params.d.ts +4 -2
- package/dist/types/edit/modes/apply-patch.d.ts +4 -2
- package/dist/types/edit/modes/patch.d.ts +16 -5
- package/dist/types/edit/modes/replace.d.ts +8 -3
- package/dist/types/eval/bridge-timeout.d.ts +5 -2
- package/dist/types/eval/completion-bridge.d.ts +13 -0
- package/dist/types/eval/py/tool-bridge.d.ts +12 -0
- package/dist/types/extensibility/custom-commands/types.d.ts +4 -4
- package/dist/types/extensibility/custom-tools/types.d.ts +4 -4
- package/dist/types/extensibility/extensions/types.d.ts +4 -4
- package/dist/types/extensibility/hooks/types.d.ts +4 -4
- package/dist/types/extensibility/legacy-pi-ai-shim.d.ts +1 -1
- package/dist/types/extensibility/legacy-pi-coding-agent-shim.d.ts +1 -1
- package/dist/types/extensibility/legacy-typebox.d.ts +8 -0
- package/dist/types/extensibility/plugins/legacy-pi-compat.d.ts +6 -13
- package/dist/types/goals/tools/goal-tool.d.ts +12 -4
- package/dist/types/lsp/index.d.ts +15 -5
- package/dist/types/lsp/types.d.ts +15 -5
- package/dist/types/security/contracts/schemas.d.ts +985 -409
- package/dist/types/security/publication.d.ts +92 -34
- package/dist/types/session/agent-session-types.d.ts +1 -1
- package/dist/types/session/session-entries.d.ts +1 -1
- package/dist/types/session/session-manager.d.ts +1 -1
- package/dist/types/task/types.d.ts +63 -18
- package/dist/types/tools/ask.d.ts +34 -8
- package/dist/types/tools/ast-edit.d.ts +16 -4
- package/dist/types/tools/ast-grep.d.ts +12 -4
- package/dist/types/tools/bash.d.ts +20 -11
- package/dist/types/tools/browser.d.ts +64 -20
- package/dist/types/tools/checkpoint.d.ts +16 -8
- package/dist/types/tools/computer.d.ts +1 -1
- package/dist/types/tools/debug.d.ts +118 -48
- package/dist/types/tools/eval.d.ts +11 -5
- package/dist/types/tools/gh.d.ts +74 -26
- package/dist/types/tools/glob.d.ts +16 -6
- package/dist/types/tools/grep.d.ts +18 -6
- package/dist/types/tools/hub/index.d.ts +116 -46
- package/dist/types/tools/image-gen.d.ts +25 -8
- package/dist/types/tools/inspect-image.d.ts +10 -4
- package/dist/types/tools/learn.d.ts +26 -8
- package/dist/types/tools/manage-skill.d.ts +16 -6
- package/dist/types/tools/memory-edit.d.ts +18 -6
- package/dist/types/tools/memory-recall.d.ts +8 -4
- package/dist/types/tools/memory-reflect.d.ts +10 -4
- package/dist/types/tools/memory-retain.d.ts +14 -4
- package/dist/types/tools/read.d.ts +8 -4
- package/dist/types/tools/security-scan.d.ts +82 -30
- package/dist/types/tools/todo.d.ts +30 -10
- package/dist/types/tools/tts.d.ts +12 -5
- package/dist/types/tools/vibe.d.ts +42 -18
- package/dist/types/tools/write.d.ts +10 -4
- package/dist/types/web/search/index.d.ts +20 -6
- package/package.json +13 -13
- package/scripts/legacy-pi-virtual-module.ts +2 -2
- package/src/advisor/advise-tool.ts +1 -1
- package/src/advisor/config.ts +1 -1
- package/src/autoresearch/tools/init-experiment.ts +1 -2
- package/src/autoresearch/tools/log-experiment.ts +1 -2
- package/src/autoresearch/tools/run-experiment.ts +1 -1
- package/src/autoresearch/tools/update-notes.ts +1 -1
- package/src/commit/agentic/tools/analyze-file.ts +1 -1
- package/src/commit/agentic/tools/git-file-diff.ts +1 -1
- package/src/commit/agentic/tools/git-hunk.ts +1 -1
- package/src/commit/agentic/tools/git-overview.ts +1 -1
- package/src/commit/agentic/tools/propose-changelog.ts +1 -1
- package/src/commit/agentic/tools/propose-commit.ts +1 -1
- package/src/commit/agentic/tools/recent-commits.ts +1 -1
- package/src/commit/agentic/tools/schemas.ts +1 -1
- package/src/commit/agentic/tools/split-commit.ts +1 -1
- package/src/commit/analysis/summary.ts +1 -1
- package/src/commit/changelog/generate.ts +1 -1
- package/src/config/config-file.ts +2 -2
- package/src/config/models-config-schema-bundle.ts +1 -8
- package/src/discovery/codex.ts +22 -9
- package/src/edit/hashline/params.ts +1 -1
- package/src/edit/modes/apply-patch.ts +1 -1
- package/src/edit/modes/patch.ts +1 -1
- package/src/edit/modes/replace.ts +2 -1
- package/src/eval/agent-bridge.ts +4 -2
- package/src/eval/bridge-timeout.ts +5 -2
- package/src/eval/completion-bridge.ts +3 -2
- package/src/eval/executor-base.ts +20 -1
- package/src/eval/js/context-manager.ts +94 -6
- package/src/eval/py/tool-bridge.ts +29 -9
- package/src/extensibility/custom-commands/loader.ts +3 -3
- package/src/extensibility/custom-commands/types.ts +4 -4
- package/src/extensibility/custom-tools/loader.ts +3 -3
- package/src/extensibility/custom-tools/types.ts +5 -4
- package/src/extensibility/extensions/loader.ts +3 -3
- package/src/extensibility/extensions/types.ts +5 -4
- package/src/extensibility/hooks/loader.ts +3 -3
- package/src/extensibility/hooks/types.ts +4 -4
- package/src/extensibility/legacy-pi-ai-shim.ts +1 -1
- package/src/extensibility/legacy-pi-coding-agent-shim.ts +2 -2
- package/src/extensibility/legacy-typebox.ts +101 -0
- package/src/extensibility/plugins/legacy-pi-compat.ts +13 -22
- package/src/goals/tools/goal-tool.ts +1 -1
- package/src/lsp/types.ts +1 -1
- package/src/modes/theme/theme.ts +3 -3
- package/src/security/contracts/schemas.ts +1 -5
- package/src/security/contracts/validation.ts +1 -1
- package/src/security/publication.ts +1 -1
- package/src/session/agent-session-types.ts +1 -1
- package/src/session/agent-session.ts +1 -2
- package/src/session/session-context.ts +3 -3
- package/src/session/session-entries.ts +1 -1
- package/src/session/session-manager.ts +1 -1
- package/src/slash-commands/builtin-registry.ts +3 -4
- package/src/task/types.ts +1 -1
- package/src/tools/ask.ts +1 -1
- package/src/tools/ast-edit.ts +1 -1
- package/src/tools/ast-grep.ts +1 -1
- package/src/tools/bash.ts +61 -3
- package/src/tools/browser.ts +1 -1
- package/src/tools/checkpoint.ts +1 -1
- package/src/tools/computer.ts +1 -1
- package/src/tools/debug.ts +1 -1
- package/src/tools/eval.ts +1 -1
- package/src/tools/gh.ts +1 -2
- package/src/tools/glob.ts +1 -1
- package/src/tools/grep.ts +1 -1
- package/src/tools/hub/index.ts +1 -1
- package/src/tools/image-gen.ts +1 -1
- package/src/tools/inspect-image.ts +1 -1
- package/src/tools/learn.ts +1 -1
- package/src/tools/manage-skill.ts +1 -1
- package/src/tools/memory-edit.ts +1 -1
- package/src/tools/memory-recall.ts +1 -1
- package/src/tools/memory-reflect.ts +1 -1
- package/src/tools/memory-retain.ts +1 -1
- package/src/tools/read.ts +1 -1
- package/src/tools/security-scan.ts +1 -1
- package/src/tools/todo.ts +1 -1
- package/src/tools/tts.ts +1 -1
- package/src/tools/vibe.ts +2 -1
- package/src/tools/write.ts +1 -1
- package/src/web/search/index.ts +2 -1
- package/dist/types/extensibility/typebox.d.ts +0 -181
- package/src/extensibility/typebox.ts +0 -958
|
@@ -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("
|
|
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("
|
|
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("
|
|
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("
|
|
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("
|
|
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
|
-
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
-
|
|
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("
|
|
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
|
-
|
|
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
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
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
|
-
|
|
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("
|
|
16
|
-
|
|
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 = {
|
package/dist/types/tools/gh.d.ts
CHANGED
|
@@ -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("
|
|
10
|
-
|
|
11
|
-
|
|
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
|
-
|
|
14
|
-
|
|
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("
|
|
228
|
-
|
|
229
|
-
|
|
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
|
-
|
|
232
|
-
|
|
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("
|
|
10
|
-
|
|
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("
|
|
69
|
-
|
|
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("
|
|
9
|
-
|
|
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("
|
|
83
|
-
|
|
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>>;
|