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.
Files changed (74) hide show
  1. package/bin/explorbot-cli.ts +6 -1
  2. package/boat/api-tester/src/apibot.ts +8 -13
  3. package/boat/api-tester/src/cli.ts +7 -3
  4. package/boat/api-tester/src/config.ts +45 -9
  5. package/boat/prima/src/cli.ts +33 -99
  6. package/boat/prima/src/envelope.ts +3 -1
  7. package/boat/prima/src/help.ts +72 -0
  8. package/boat/prima/src/prima.ts +33 -43
  9. package/dist/bin/explorbot-cli.js +5 -1
  10. package/dist/boat/api-tester/src/apibot.js +7 -6
  11. package/dist/boat/api-tester/src/cli.js +9 -3
  12. package/dist/boat/api-tester/src/config.js +32 -6
  13. package/dist/boat/prima/src/cli.js +30 -86
  14. package/dist/boat/prima/src/envelope.js +2 -1
  15. package/dist/boat/prima/src/help.js +63 -0
  16. package/dist/boat/prima/src/prima.js +29 -41
  17. package/dist/package.json +1 -1
  18. package/dist/src/action-result.d.ts +3 -0
  19. package/dist/src/action-result.js +5 -0
  20. package/dist/src/action.js +12 -1
  21. package/dist/src/ai/fisherman/request-haul.d.ts +1 -0
  22. package/dist/src/ai/fisherman/request-haul.js +3 -0
  23. package/dist/src/ai/fisherman/tools.d.ts +50 -0
  24. package/dist/src/ai/{fisherman-tools.js → fisherman/tools.js} +78 -13
  25. package/dist/src/ai/fisherman.d.ts +12 -3
  26. package/dist/src/ai/fisherman.js +89 -13
  27. package/dist/src/ai/pilot.d.ts +13 -1
  28. package/dist/src/ai/pilot.js +20 -7
  29. package/dist/src/ai/researcher/deep-analysis.d.ts +1 -1
  30. package/dist/src/ai/researcher/deep-analysis.js +4 -1
  31. package/dist/src/ai/researcher/sections.d.ts +1 -1
  32. package/dist/src/ai/researcher/sections.js +2 -1
  33. package/dist/src/ai/researcher.js +25 -11
  34. package/dist/src/ai/rules.js +2 -0
  35. package/dist/src/ai/tester.d.ts +1 -0
  36. package/dist/src/ai/tester.js +27 -33
  37. package/dist/src/ai/tools.js +5 -0
  38. package/dist/src/api/request-result.js +3 -1
  39. package/dist/src/api/request-store.d.ts +6 -1
  40. package/dist/src/api/request-store.js +55 -17
  41. package/dist/src/api/xhr-capture.d.ts +2 -0
  42. package/dist/src/api/xhr-capture.js +35 -10
  43. package/dist/src/commands/config-command.js +6 -2
  44. package/dist/src/commands/help-json-command.d.ts +31 -0
  45. package/dist/src/commands/help-json-command.js +58 -0
  46. package/dist/src/config.d.ts +3 -0
  47. package/dist/src/config.js +14 -0
  48. package/dist/src/state-manager.js +5 -1
  49. package/docs/api-testing/basics.md +12 -4
  50. package/docs/reference/commands.md +2 -0
  51. package/docs/reference/configuration.md +4 -0
  52. package/docs/superpowers/plans/2026-09-03-fisherman-query-api.md +1361 -0
  53. package/docs/workflow/agentic-usage.md +15 -1
  54. package/package.json +1 -1
  55. package/src/action-result.ts +7 -0
  56. package/src/action.ts +14 -2
  57. package/src/ai/fisherman/request-haul.ts +4 -0
  58. package/src/ai/{fisherman-tools.ts → fisherman/tools.ts} +93 -20
  59. package/src/ai/fisherman.ts +104 -15
  60. package/src/ai/pilot.ts +20 -7
  61. package/src/ai/researcher/deep-analysis.ts +4 -2
  62. package/src/ai/researcher/sections.ts +2 -2
  63. package/src/ai/researcher.ts +28 -11
  64. package/src/ai/rules.ts +2 -0
  65. package/src/ai/tester.ts +25 -30
  66. package/src/ai/tools.ts +6 -0
  67. package/src/api/request-result.ts +2 -1
  68. package/src/api/request-store.ts +58 -18
  69. package/src/api/xhr-capture.ts +39 -11
  70. package/src/commands/config-command.ts +4 -1
  71. package/src/commands/help-json-command.ts +74 -0
  72. package/src/config.ts +16 -0
  73. package/src/state-manager.ts +6 -1
  74. 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 {};