@deepagents/toolbox 7.0.2 → 7.1.1
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/dist/index.js +127 -90
- package/dist/index.js.map +4 -4
- package/dist/lib/ddg-search.d.ts.map +1 -1
- package/dist/lib/ddg-search.js +7 -2
- package/dist/lib/ddg-search.js.map +2 -2
- package/dist/lib/filesystem.d.ts +155 -150
- package/dist/lib/filesystem.d.ts.map +1 -1
- package/dist/lib/filesystem.js +12 -21
- package/dist/lib/filesystem.js.map +3 -3
- package/dist/lib/hackernews-search.d.ts +804 -775
- package/dist/lib/hackernews-search.d.ts.map +1 -1
- package/dist/lib/hackernews-search.js +78 -64
- package/dist/lib/hackernews-search.js.map +3 -3
- package/dist/lib/scratchbad.d.ts +91 -30
- package/dist/lib/scratchbad.d.ts.map +1 -1
- package/dist/lib/scratchbad.js +1 -9
- package/dist/lib/scratchbad.js.map +3 -3
- package/dist/lib/user-story-formatter.d.ts +118 -30
- package/dist/lib/user-story-formatter.d.ts.map +1 -1
- package/dist/lib/user-story-formatter.js +1 -9
- package/dist/lib/user-story-formatter.js.map +3 -3
- package/dist/lib/weather.d.ts.map +1 -1
- package/dist/lib/weather.js +28 -6
- package/dist/lib/weather.js.map +2 -2
- package/dist/lib/web-search.js +7 -2
- package/dist/lib/web-search.js.map +2 -2
- package/package.json +2 -3
- package/dist/lib/state.d.ts +0 -3
- package/dist/lib/state.d.ts.map +0 -1
- package/dist/lib/state.js +0 -8
- package/dist/lib/state.js.map +0 -7
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hackernews-search.d.ts","sourceRoot":"","sources":["../../src/lib/hackernews-search.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAe3B,CAAC"}
|
|
@@ -1,13 +1,42 @@
|
|
|
1
1
|
// packages/toolbox/src/lib/hackernews-search.ts
|
|
2
2
|
import { tool } from "ai";
|
|
3
3
|
import { z } from "zod";
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
4
|
+
var hnSearchItem = z.object({
|
|
5
|
+
objectID: z.string(),
|
|
6
|
+
title: z.string().nullish(),
|
|
7
|
+
url: z.string().nullish(),
|
|
8
|
+
author: z.string(),
|
|
9
|
+
points: z.number().nullish(),
|
|
10
|
+
story_text: z.string().nullish(),
|
|
11
|
+
comment_text: z.string().nullish(),
|
|
12
|
+
num_comments: z.number().nullish(),
|
|
13
|
+
created_at_i: z.number(),
|
|
14
|
+
_tags: z.array(z.string())
|
|
15
|
+
});
|
|
16
|
+
var hnSearchResponse = z.object({
|
|
17
|
+
query: z.string(),
|
|
18
|
+
hits: z.array(hnSearchItem),
|
|
19
|
+
nbHits: z.number(),
|
|
20
|
+
page: z.number(),
|
|
21
|
+
nbPages: z.number(),
|
|
22
|
+
hitsPerPage: z.number()
|
|
23
|
+
});
|
|
24
|
+
var hnItemResponse = z.object({
|
|
25
|
+
id: z.number(),
|
|
26
|
+
created_at_i: z.number(),
|
|
27
|
+
type: z.enum(["story", "comment", "poll", "pollopt", "show", "ask", "job"]),
|
|
28
|
+
author: z.string(),
|
|
29
|
+
title: z.string().nullish(),
|
|
30
|
+
url: z.string().nullish(),
|
|
31
|
+
text: z.string().nullish(),
|
|
32
|
+
points: z.number().nullish(),
|
|
33
|
+
story_title: z.string().nullish()
|
|
34
|
+
});
|
|
35
|
+
var hnUserResponse = z.object({
|
|
36
|
+
username: z.string(),
|
|
37
|
+
about: z.string().nullish(),
|
|
38
|
+
karma: z.number()
|
|
39
|
+
});
|
|
11
40
|
function buildTags(options) {
|
|
12
41
|
const tags = [];
|
|
13
42
|
if (options.type && options.type !== "all") {
|
|
@@ -84,8 +113,7 @@ async function searchHackerNewsAPI(params) {
|
|
|
84
113
|
`HN API error: ${response.status} ${response.statusText}`
|
|
85
114
|
);
|
|
86
115
|
}
|
|
87
|
-
|
|
88
|
-
return data;
|
|
116
|
+
return hnSearchResponse.parse(await response.json());
|
|
89
117
|
} catch (error) {
|
|
90
118
|
throw new Error(
|
|
91
119
|
`Failed to search HackerNews: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
@@ -105,8 +133,7 @@ async function fetchHNItem(id) {
|
|
|
105
133
|
`HN API error: ${response.status} ${response.statusText}`
|
|
106
134
|
);
|
|
107
135
|
}
|
|
108
|
-
|
|
109
|
-
return data;
|
|
136
|
+
return hnItemResponse.parse(await response.json());
|
|
110
137
|
} catch (error) {
|
|
111
138
|
throw new Error(
|
|
112
139
|
`Failed to fetch HN item: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
@@ -126,8 +153,7 @@ async function fetchHNUser(username) {
|
|
|
126
153
|
`HN API error: ${response.status} ${response.statusText}`
|
|
127
154
|
);
|
|
128
155
|
}
|
|
129
|
-
|
|
130
|
-
return data;
|
|
156
|
+
return hnUserResponse.parse(await response.json());
|
|
131
157
|
} catch (error) {
|
|
132
158
|
throw new Error(
|
|
133
159
|
`Failed to fetch HN user: ${error instanceof Error ? error.message : "Unknown error"}`
|
|
@@ -152,7 +178,7 @@ ${itemNumber}. ${hit.title || "(No title)"}`);
|
|
|
152
178
|
if (hit.url) {
|
|
153
179
|
lines.push(` URL: ${hit.url}`);
|
|
154
180
|
}
|
|
155
|
-
if (hit.points
|
|
181
|
+
if (typeof hit.points === "number") {
|
|
156
182
|
lines.push(
|
|
157
183
|
` ${hit.points} points | by ${hit.author} | ${hit.num_comments || 0} comments`
|
|
158
184
|
);
|
|
@@ -190,7 +216,7 @@ ${itemNumber}. [${type}] ${hit.title || "Comment"}`);
|
|
|
190
216
|
if (hit.url) {
|
|
191
217
|
lines.push(` URL: ${hit.url}`);
|
|
192
218
|
}
|
|
193
|
-
if (hit.points
|
|
219
|
+
if (typeof hit.points === "number") {
|
|
194
220
|
lines.push(` ${hit.points} points | ${hit.num_comments || 0} comments`);
|
|
195
221
|
}
|
|
196
222
|
if (hit.story_text) {
|
|
@@ -251,7 +277,7 @@ function formatItemDetails(item) {
|
|
|
251
277
|
lines.push(`URL: ${item.url}`);
|
|
252
278
|
}
|
|
253
279
|
lines.push(`By: ${item.author}`);
|
|
254
|
-
if (item.points
|
|
280
|
+
if (typeof item.points === "number") {
|
|
255
281
|
lines.push(`Points: ${item.points}`);
|
|
256
282
|
}
|
|
257
283
|
lines.push(`Date: ${formatDate(item.created_at_i)}`);
|
|
@@ -281,7 +307,6 @@ function formatUserProfile(user) {
|
|
|
281
307
|
const lines = [];
|
|
282
308
|
lines.push(`User: ${user.username}`);
|
|
283
309
|
lines.push(`Karma: ${user.karma.toLocaleString()}`);
|
|
284
|
-
lines.push(`Member since: ${formatDate(user.created_at_i)}`);
|
|
285
310
|
if (user.about) {
|
|
286
311
|
lines.push(`
|
|
287
312
|
About:
|
|
@@ -334,9 +359,8 @@ var search_by_query = tool({
|
|
|
334
359
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
335
360
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
336
361
|
}),
|
|
337
|
-
execute: async (input,
|
|
338
|
-
const
|
|
339
|
-
context.hackernews_sources ??= [];
|
|
362
|
+
execute: async (input, { context }) => {
|
|
363
|
+
const sources = context.hackernews_sources ??= [];
|
|
340
364
|
const numericFilters = buildNumericFilters({
|
|
341
365
|
timeFilter: input.timeFilter,
|
|
342
366
|
minPoints: input.minPoints,
|
|
@@ -350,7 +374,7 @@ var search_by_query = tool({
|
|
|
350
374
|
page: input.page,
|
|
351
375
|
hitsPerPage: input.hitsPerPage
|
|
352
376
|
});
|
|
353
|
-
fillContext(
|
|
377
|
+
fillContext(sources, response);
|
|
354
378
|
return formatStoryResults(response);
|
|
355
379
|
}
|
|
356
380
|
});
|
|
@@ -365,9 +389,8 @@ var search_by_author = tool({
|
|
|
365
389
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
366
390
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
367
391
|
}),
|
|
368
|
-
execute: async (input,
|
|
369
|
-
const
|
|
370
|
-
context.hackernews_sources ??= [];
|
|
392
|
+
execute: async (input, { context }) => {
|
|
393
|
+
const sources = context.hackernews_sources ??= [];
|
|
371
394
|
const tags = buildTags({ type: input.type, author: input.author });
|
|
372
395
|
const numericFilters = buildNumericFilters({
|
|
373
396
|
timeFilter: input.timeFilter,
|
|
@@ -380,7 +403,7 @@ var search_by_author = tool({
|
|
|
380
403
|
page: input.page,
|
|
381
404
|
hitsPerPage: input.hitsPerPage
|
|
382
405
|
});
|
|
383
|
-
fillContext(
|
|
406
|
+
fillContext(sources, response);
|
|
384
407
|
return formatAuthorResults(response);
|
|
385
408
|
}
|
|
386
409
|
});
|
|
@@ -389,16 +412,15 @@ var get_story_item = tool({
|
|
|
389
412
|
inputSchema: z.object({
|
|
390
413
|
storyId: z.string().describe('HackerNews story ID. Example: "38709478"')
|
|
391
414
|
}),
|
|
392
|
-
execute: async (input,
|
|
393
|
-
const
|
|
394
|
-
context.hackernews_sources ??= [];
|
|
415
|
+
execute: async (input, { context }) => {
|
|
416
|
+
const sources = context.hackernews_sources ??= [];
|
|
395
417
|
const item = await fetchHNItem(input.storyId);
|
|
396
418
|
if (item.type !== "story") {
|
|
397
419
|
throw new Error(
|
|
398
420
|
`Item ${input.storyId} is not a story (type: ${item.type})`
|
|
399
421
|
);
|
|
400
422
|
}
|
|
401
|
-
|
|
423
|
+
sources.push({
|
|
402
424
|
title: item.title || "Untitled",
|
|
403
425
|
hn_url: `https://news.ycombinator.com/item?id=${item.id}`,
|
|
404
426
|
story_url: item.url || ""
|
|
@@ -427,16 +449,15 @@ var get_front_page_stories = tool({
|
|
|
427
449
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
428
450
|
hitsPerPage: z.number().int().min(1).max(50).default(30).describe("Results per page (max 50)")
|
|
429
451
|
}),
|
|
430
|
-
execute: async (input,
|
|
431
|
-
const
|
|
432
|
-
context.hackernews_sources ??= [];
|
|
452
|
+
execute: async (input, { context }) => {
|
|
453
|
+
const sources = context.hackernews_sources ??= [];
|
|
433
454
|
const response = await searchHackerNewsAPI({
|
|
434
455
|
tags: "front_page",
|
|
435
456
|
sortBy: "date",
|
|
436
457
|
page: input.page,
|
|
437
458
|
hitsPerPage: input.hitsPerPage
|
|
438
459
|
});
|
|
439
|
-
fillContext(
|
|
460
|
+
fillContext(sources, response);
|
|
440
461
|
return formatStoryResults(response);
|
|
441
462
|
}
|
|
442
463
|
});
|
|
@@ -471,9 +492,8 @@ var search_ask_hn = tool({
|
|
|
471
492
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
472
493
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
473
494
|
}),
|
|
474
|
-
execute: async (input,
|
|
475
|
-
const
|
|
476
|
-
context.hackernews_sources ??= [];
|
|
495
|
+
execute: async (input, { context }) => {
|
|
496
|
+
const sources = context.hackernews_sources ??= [];
|
|
477
497
|
const numericFilters = buildNumericFilters({
|
|
478
498
|
timeFilter: input.timeFilter,
|
|
479
499
|
minPoints: input.minPoints,
|
|
@@ -487,7 +507,7 @@ var search_ask_hn = tool({
|
|
|
487
507
|
page: input.page,
|
|
488
508
|
hitsPerPage: input.hitsPerPage
|
|
489
509
|
});
|
|
490
|
-
fillContext(
|
|
510
|
+
fillContext(sources, response);
|
|
491
511
|
return formatStoryResults(response);
|
|
492
512
|
}
|
|
493
513
|
});
|
|
@@ -504,9 +524,8 @@ var search_show_hn = tool({
|
|
|
504
524
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
505
525
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
506
526
|
}),
|
|
507
|
-
execute: async (input,
|
|
508
|
-
const
|
|
509
|
-
context.hackernews_sources ??= [];
|
|
527
|
+
execute: async (input, { context }) => {
|
|
528
|
+
const sources = context.hackernews_sources ??= [];
|
|
510
529
|
const numericFilters = buildNumericFilters({
|
|
511
530
|
timeFilter: input.timeFilter,
|
|
512
531
|
minPoints: input.minPoints,
|
|
@@ -520,7 +539,7 @@ var search_show_hn = tool({
|
|
|
520
539
|
page: input.page,
|
|
521
540
|
hitsPerPage: input.hitsPerPage
|
|
522
541
|
});
|
|
523
|
-
fillContext(
|
|
542
|
+
fillContext(sources, response);
|
|
524
543
|
return formatStoryResults(response);
|
|
525
544
|
}
|
|
526
545
|
});
|
|
@@ -535,9 +554,8 @@ var search_jobs = tool({
|
|
|
535
554
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
536
555
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
537
556
|
}),
|
|
538
|
-
execute: async (input,
|
|
539
|
-
const
|
|
540
|
-
context.hackernews_sources ??= [];
|
|
557
|
+
execute: async (input, { context }) => {
|
|
558
|
+
const sources = context.hackernews_sources ??= [];
|
|
541
559
|
const numericFilters = buildNumericFilters({
|
|
542
560
|
timeFilter: input.timeFilter
|
|
543
561
|
});
|
|
@@ -549,7 +567,7 @@ var search_jobs = tool({
|
|
|
549
567
|
page: input.page,
|
|
550
568
|
hitsPerPage: input.hitsPerPage
|
|
551
569
|
});
|
|
552
|
-
fillContext(
|
|
570
|
+
fillContext(sources, response);
|
|
553
571
|
return formatJobResults(response);
|
|
554
572
|
}
|
|
555
573
|
});
|
|
@@ -562,9 +580,8 @@ var search_polls = tool({
|
|
|
562
580
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
563
581
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
564
582
|
}),
|
|
565
|
-
execute: async (input,
|
|
566
|
-
const
|
|
567
|
-
context.hackernews_sources ??= [];
|
|
583
|
+
execute: async (input, { context }) => {
|
|
584
|
+
const sources = context.hackernews_sources ??= [];
|
|
568
585
|
const numericFilters = buildNumericFilters({
|
|
569
586
|
timeFilter: input.timeFilter
|
|
570
587
|
});
|
|
@@ -576,7 +593,7 @@ var search_polls = tool({
|
|
|
576
593
|
page: input.page,
|
|
577
594
|
hitsPerPage: input.hitsPerPage
|
|
578
595
|
});
|
|
579
|
-
fillContext(
|
|
596
|
+
fillContext(sources, response);
|
|
580
597
|
return formatStoryResults(response);
|
|
581
598
|
}
|
|
582
599
|
});
|
|
@@ -601,9 +618,8 @@ var search_by_domain = tool({
|
|
|
601
618
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
602
619
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
603
620
|
}),
|
|
604
|
-
execute: async (input,
|
|
605
|
-
const
|
|
606
|
-
context.hackernews_sources ??= [];
|
|
621
|
+
execute: async (input, { context }) => {
|
|
622
|
+
const sources = context.hackernews_sources ??= [];
|
|
607
623
|
const numericFilters = buildNumericFilters({
|
|
608
624
|
timeFilter: input.timeFilter,
|
|
609
625
|
minPoints: input.minPoints,
|
|
@@ -628,8 +644,8 @@ var search_by_domain = tool({
|
|
|
628
644
|
`HN API error: ${response.status} ${response.statusText}`
|
|
629
645
|
);
|
|
630
646
|
}
|
|
631
|
-
const data = await response.json();
|
|
632
|
-
fillContext(
|
|
647
|
+
const data = hnSearchResponse.parse(await response.json());
|
|
648
|
+
fillContext(sources, data);
|
|
633
649
|
return formatStoryResults(data);
|
|
634
650
|
}
|
|
635
651
|
});
|
|
@@ -646,9 +662,8 @@ var search_highly_discussed = tool({
|
|
|
646
662
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
647
663
|
hitsPerPage: z.number().int().min(1).max(1e3).default(20).describe("Results per page (max 1000)")
|
|
648
664
|
}),
|
|
649
|
-
execute: async (input,
|
|
650
|
-
const
|
|
651
|
-
context.hackernews_sources ??= [];
|
|
665
|
+
execute: async (input, { context }) => {
|
|
666
|
+
const sources = context.hackernews_sources ??= [];
|
|
652
667
|
const numericFilters = buildNumericFilters({
|
|
653
668
|
timeFilter: input.timeFilter,
|
|
654
669
|
minPoints: input.minPoints,
|
|
@@ -662,7 +677,7 @@ var search_highly_discussed = tool({
|
|
|
662
677
|
page: input.page,
|
|
663
678
|
hitsPerPage: input.hitsPerPage
|
|
664
679
|
});
|
|
665
|
-
fillContext(
|
|
680
|
+
fillContext(sources, response);
|
|
666
681
|
return formatStoryResults(response);
|
|
667
682
|
}
|
|
668
683
|
});
|
|
@@ -678,9 +693,8 @@ var search_trending = tool({
|
|
|
678
693
|
page: z.number().int().min(0).default(0).describe("Page number (0-indexed)"),
|
|
679
694
|
hitsPerPage: z.number().int().min(1).max(100).default(30).describe("Results per page (max 100)")
|
|
680
695
|
}),
|
|
681
|
-
execute: async (input,
|
|
682
|
-
const
|
|
683
|
-
context.hackernews_sources ??= [];
|
|
696
|
+
execute: async (input, { context }) => {
|
|
697
|
+
const sources = context.hackernews_sources ??= [];
|
|
684
698
|
const numericFilters = buildNumericFilters({
|
|
685
699
|
maxAgeHours: input.maxAgeHours,
|
|
686
700
|
minPoints: input.minPoints,
|
|
@@ -693,13 +707,13 @@ var search_trending = tool({
|
|
|
693
707
|
page: input.page,
|
|
694
708
|
hitsPerPage: input.hitsPerPage
|
|
695
709
|
});
|
|
696
|
-
fillContext(
|
|
710
|
+
fillContext(sources, response);
|
|
697
711
|
return formatStoryResults(response);
|
|
698
712
|
}
|
|
699
713
|
});
|
|
700
|
-
function fillContext(
|
|
714
|
+
function fillContext(sources, result) {
|
|
701
715
|
result.hits.forEach((hit) => {
|
|
702
|
-
|
|
716
|
+
sources.push({
|
|
703
717
|
title: hit.title,
|
|
704
718
|
hn_url: hit.objectID ? `https://news.ycombinator.com/item?id=${hit.objectID}` : void 0,
|
|
705
719
|
story_url: hit.url,
|