explorbot 0.4.2 → 0.4.4
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/bin/explorbot-cli.ts +6 -1
- package/boat/api-tester/src/apibot.ts +8 -13
- package/boat/api-tester/src/cli.ts +7 -3
- package/boat/api-tester/src/config.ts +45 -9
- package/boat/prima/src/cli.ts +33 -99
- package/boat/prima/src/envelope.ts +3 -1
- package/boat/prima/src/help.ts +72 -0
- package/boat/prima/src/prima.ts +33 -43
- package/dist/bin/explorbot-cli.js +5 -1
- package/dist/boat/api-tester/src/apibot.js +7 -6
- package/dist/boat/api-tester/src/cli.js +9 -3
- package/dist/boat/api-tester/src/config.js +32 -6
- package/dist/boat/prima/src/cli.js +30 -86
- package/dist/boat/prima/src/envelope.js +2 -1
- package/dist/boat/prima/src/help.js +63 -0
- package/dist/boat/prima/src/prima.js +29 -41
- package/dist/package.json +1 -1
- package/dist/src/action-result.d.ts +3 -0
- package/dist/src/action-result.js +5 -0
- package/dist/src/action.js +12 -1
- package/dist/src/ai/fisherman/request-haul.d.ts +1 -0
- package/dist/src/ai/fisherman/request-haul.js +3 -0
- package/dist/src/ai/fisherman/tools.d.ts +50 -0
- package/dist/src/ai/{fisherman-tools.js → fisherman/tools.js} +78 -13
- package/dist/src/ai/fisherman.d.ts +12 -3
- package/dist/src/ai/fisherman.js +89 -13
- package/dist/src/ai/pilot.d.ts +13 -1
- package/dist/src/ai/pilot.js +20 -7
- package/dist/src/ai/researcher/deep-analysis.d.ts +1 -1
- package/dist/src/ai/researcher/deep-analysis.js +4 -1
- package/dist/src/ai/researcher/sections.d.ts +1 -1
- package/dist/src/ai/researcher/sections.js +2 -1
- package/dist/src/ai/researcher.js +25 -11
- package/dist/src/ai/rules.js +2 -0
- package/dist/src/ai/tester.d.ts +1 -0
- package/dist/src/ai/tester.js +27 -33
- package/dist/src/ai/tools.js +5 -0
- package/dist/src/api/request-result.js +3 -1
- package/dist/src/api/request-store.d.ts +6 -1
- package/dist/src/api/request-store.js +55 -17
- package/dist/src/api/xhr-capture.d.ts +2 -0
- package/dist/src/api/xhr-capture.js +35 -10
- package/dist/src/commands/config-command.js +6 -2
- package/dist/src/commands/help-json-command.d.ts +31 -0
- package/dist/src/commands/help-json-command.js +58 -0
- package/dist/src/config.d.ts +3 -0
- package/dist/src/config.js +14 -0
- package/dist/src/state-manager.js +5 -1
- package/docs/api-testing/basics.md +12 -4
- package/docs/reference/commands.md +2 -0
- package/docs/reference/configuration.md +4 -0
- package/docs/superpowers/plans/2026-09-03-fisherman-query-api.md +1361 -0
- package/docs/workflow/agentic-usage.md +15 -1
- package/package.json +1 -1
- package/src/action-result.ts +7 -0
- package/src/action.ts +14 -2
- package/src/ai/fisherman/request-haul.ts +4 -0
- package/src/ai/{fisherman-tools.ts → fisherman/tools.ts} +93 -20
- package/src/ai/fisherman.ts +104 -15
- package/src/ai/pilot.ts +20 -7
- package/src/ai/researcher/deep-analysis.ts +4 -2
- package/src/ai/researcher/sections.ts +2 -2
- package/src/ai/researcher.ts +28 -11
- package/src/ai/rules.ts +2 -0
- package/src/ai/tester.ts +25 -30
- package/src/ai/tools.ts +6 -0
- package/src/api/request-result.ts +2 -1
- package/src/api/request-store.ts +58 -18
- package/src/api/xhr-capture.ts +39 -11
- package/src/commands/config-command.ts +4 -1
- package/src/commands/help-json-command.ts +74 -0
- package/src/config.ts +16 -0
- package/src/state-manager.ts +6 -1
- package/dist/src/ai/fisherman-tools.d.ts +0 -147
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import type { ApiClient } from '../api/api-client.js';
|
|
2
|
-
import type { RequestStore } from '../api/request-store.js';
|
|
3
|
-
import type { RequestHaul } from './fisherman/request-haul.js';
|
|
4
|
-
export declare function createFishermanTools(apiClient: ApiClient, requestStore: RequestStore, haul: RequestHaul, opts: {
|
|
5
|
-
spec?: any;
|
|
6
|
-
baseEndpoint?: string;
|
|
7
|
-
}): {
|
|
8
|
-
tools: {
|
|
9
|
-
getEndpointSpec: import("@ai-sdk/provider-utils").ExecutableTool<import("ai").Tool<{
|
|
10
|
-
method: any;
|
|
11
|
-
path: any;
|
|
12
|
-
}, {
|
|
13
|
-
source: string;
|
|
14
|
-
method: any;
|
|
15
|
-
path: any;
|
|
16
|
-
definition: string;
|
|
17
|
-
rejectedCapture: {
|
|
18
|
-
status: number;
|
|
19
|
-
requestBody: any;
|
|
20
|
-
};
|
|
21
|
-
usable?: undefined;
|
|
22
|
-
rejectedRequestBody?: undefined;
|
|
23
|
-
status?: undefined;
|
|
24
|
-
requestBody?: undefined;
|
|
25
|
-
error?: undefined;
|
|
26
|
-
} | {
|
|
27
|
-
source: string;
|
|
28
|
-
method: any;
|
|
29
|
-
path: any;
|
|
30
|
-
usable: boolean;
|
|
31
|
-
rejectedRequestBody: any;
|
|
32
|
-
status: number;
|
|
33
|
-
definition?: undefined;
|
|
34
|
-
rejectedCapture?: undefined;
|
|
35
|
-
requestBody?: undefined;
|
|
36
|
-
error?: undefined;
|
|
37
|
-
} | {
|
|
38
|
-
source: string;
|
|
39
|
-
method: string;
|
|
40
|
-
path: string;
|
|
41
|
-
status: number;
|
|
42
|
-
requestBody: any;
|
|
43
|
-
definition?: undefined;
|
|
44
|
-
rejectedCapture?: undefined;
|
|
45
|
-
usable?: undefined;
|
|
46
|
-
rejectedRequestBody?: undefined;
|
|
47
|
-
error?: undefined;
|
|
48
|
-
} | {
|
|
49
|
-
source: string;
|
|
50
|
-
definition: string;
|
|
51
|
-
method?: undefined;
|
|
52
|
-
path?: undefined;
|
|
53
|
-
rejectedCapture?: undefined;
|
|
54
|
-
usable?: undefined;
|
|
55
|
-
rejectedRequestBody?: undefined;
|
|
56
|
-
status?: undefined;
|
|
57
|
-
requestBody?: undefined;
|
|
58
|
-
error?: undefined;
|
|
59
|
-
} | {
|
|
60
|
-
source: string;
|
|
61
|
-
error: any;
|
|
62
|
-
method?: undefined;
|
|
63
|
-
path?: undefined;
|
|
64
|
-
definition?: undefined;
|
|
65
|
-
rejectedCapture?: undefined;
|
|
66
|
-
usable?: undefined;
|
|
67
|
-
rejectedRequestBody?: undefined;
|
|
68
|
-
status?: undefined;
|
|
69
|
-
requestBody?: undefined;
|
|
70
|
-
}, import("@ai-sdk/provider-utils").Context>>;
|
|
71
|
-
request: import("@ai-sdk/provider-utils").ExecutableTool<import("ai").Tool<any, {
|
|
72
|
-
success: boolean;
|
|
73
|
-
error: string;
|
|
74
|
-
status?: undefined;
|
|
75
|
-
statusText?: undefined;
|
|
76
|
-
category?: undefined;
|
|
77
|
-
errorPreview?: undefined;
|
|
78
|
-
extracted?: undefined;
|
|
79
|
-
} | {
|
|
80
|
-
success: boolean;
|
|
81
|
-
status: number;
|
|
82
|
-
statusText: string;
|
|
83
|
-
category: ResponseCategory;
|
|
84
|
-
errorPreview: string;
|
|
85
|
-
error?: undefined;
|
|
86
|
-
extracted?: undefined;
|
|
87
|
-
} | {
|
|
88
|
-
success: boolean;
|
|
89
|
-
status: number;
|
|
90
|
-
extracted: Record<string, any>;
|
|
91
|
-
error?: undefined;
|
|
92
|
-
statusText?: undefined;
|
|
93
|
-
category?: undefined;
|
|
94
|
-
errorPreview?: undefined;
|
|
95
|
-
}, import("@ai-sdk/provider-utils").Context>>;
|
|
96
|
-
finish: import("@ai-sdk/provider-utils").ExecutableTool<import("ai").Tool<{
|
|
97
|
-
summary: string;
|
|
98
|
-
created: {
|
|
99
|
-
type: string;
|
|
100
|
-
id?: string | number;
|
|
101
|
-
title?: string;
|
|
102
|
-
}[];
|
|
103
|
-
failed?: {
|
|
104
|
-
type: string;
|
|
105
|
-
reason: string;
|
|
106
|
-
}[];
|
|
107
|
-
}, {
|
|
108
|
-
finished: boolean;
|
|
109
|
-
error: string;
|
|
110
|
-
} | {
|
|
111
|
-
finished: boolean;
|
|
112
|
-
error?: undefined;
|
|
113
|
-
}, import("@ai-sdk/provider-utils").Context>>;
|
|
114
|
-
stop: import("@ai-sdk/provider-utils").ExecutableTool<import("ai").Tool<{
|
|
115
|
-
reason: any;
|
|
116
|
-
}, {
|
|
117
|
-
stopped: boolean;
|
|
118
|
-
}, import("@ai-sdk/provider-utils").Context>>;
|
|
119
|
-
};
|
|
120
|
-
getResult: () => FishermanResult;
|
|
121
|
-
isFinished: () => boolean;
|
|
122
|
-
finishFromText: (text?: string) => void;
|
|
123
|
-
};
|
|
124
|
-
export declare function verifyFinish(haul: RequestHaul, input: {
|
|
125
|
-
summary: string;
|
|
126
|
-
created: FishermanResult['created'];
|
|
127
|
-
failed?: FishermanResult['failed'];
|
|
128
|
-
}): {
|
|
129
|
-
result: FishermanResult | null;
|
|
130
|
-
error?: string;
|
|
131
|
-
};
|
|
132
|
-
export interface FishermanResult {
|
|
133
|
-
success: boolean;
|
|
134
|
-
summary: string;
|
|
135
|
-
created: Array<{
|
|
136
|
-
type: string;
|
|
137
|
-
id?: string | number;
|
|
138
|
-
title?: string;
|
|
139
|
-
request?: string;
|
|
140
|
-
}>;
|
|
141
|
-
failed: Array<{
|
|
142
|
-
type: string;
|
|
143
|
-
reason: string;
|
|
144
|
-
}>;
|
|
145
|
-
}
|
|
146
|
-
type ResponseCategory = 'validation' | 'authorization' | 'not_found' | 'conflict' | 'temporary' | 'server' | 'client';
|
|
147
|
-
export {};
|