@mastra/dane 0.0.2-alpha.6 → 0.0.2-alpha.9
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 +2 -0
- package/dist/mastra/tools/pdf.d.ts.map +1 -1
- package/dist/mastra/tools/pdf.js +3 -2
- package/package.json +11 -8
- package/test/data/05-versions-space.pdf +0 -0
- package/test/data/05-versions-space.pdf.txt +42 -0
- package/test-files/roman.md +79 -0
- package/test-files/sample-1.pdf +0 -0
- package/test-files/taxes/2022.txt +45 -0
- package/test-files/taxes/2023.txt +44 -0
package/dist/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/pdf.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"pdf.d.ts","sourceRoot":"","sources":["../../../src/mastra/tools/pdf.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,OAAO;;;;;;;;;;;;;;;;;;iDAsClB,CAAC"}
|
package/dist/mastra/tools/pdf.js
CHANGED
|
@@ -2,7 +2,8 @@ import { createTool } from '@mastra/core';
|
|
|
2
2
|
import chalk from 'chalk';
|
|
3
3
|
import { existsSync, readFileSync } from 'fs';
|
|
4
4
|
import path from 'path';
|
|
5
|
-
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import pdfParse from "pdf-parse/lib/pdf-parse.js";
|
|
6
7
|
import { z } from 'zod';
|
|
7
8
|
export const readPDF = createTool({
|
|
8
9
|
id: 'readPDF',
|
|
@@ -27,7 +28,7 @@ export const readPDF = createTool({
|
|
|
27
28
|
// Read the PDF file
|
|
28
29
|
const dataBuffer = readFileSync(pdfPath);
|
|
29
30
|
// Parse PDF content
|
|
30
|
-
const data = await
|
|
31
|
+
const data = await pdfParse(dataBuffer);
|
|
31
32
|
console.log(chalk.blue('\n'));
|
|
32
33
|
console.log(chalk.blue('PDF Information:'));
|
|
33
34
|
console.log(chalk.blue('-----------------'));
|
package/package.json
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mastra/dane",
|
|
3
|
-
"version": "0.0.2-alpha.
|
|
3
|
+
"version": "0.0.2-alpha.9",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
7
|
-
"dist"
|
|
7
|
+
"dist",
|
|
8
|
+
"test",
|
|
9
|
+
"test-files"
|
|
8
10
|
],
|
|
9
11
|
"bin": {
|
|
10
12
|
"dane": "./dist/index.js"
|
|
@@ -23,6 +25,7 @@
|
|
|
23
25
|
"chalk": "^5.3.0",
|
|
24
26
|
"cli-table3": "^0.6.5",
|
|
25
27
|
"commander": "^12.1.0",
|
|
28
|
+
"dotenv": "^16.4.7",
|
|
26
29
|
"execa": "^9.3.1",
|
|
27
30
|
"inquirer": "^12.2.0",
|
|
28
31
|
"luxon": "^3.5.0",
|
|
@@ -34,12 +37,12 @@
|
|
|
34
37
|
"sqlite3": "^5.1.7",
|
|
35
38
|
"typescript": "^5.5.4",
|
|
36
39
|
"zod": "^3.24.0",
|
|
37
|
-
"@mastra/core": "0.1.27-alpha.
|
|
38
|
-
"@mastra/engine": "0.0.5-alpha.
|
|
39
|
-
"@mastra/firecrawl": "1.0.4-alpha.
|
|
40
|
-
"@mastra/github": "1.0.3-alpha.
|
|
41
|
-
"@mastra/memory": "0.0.2-alpha.
|
|
42
|
-
"@mastra/rag": "0.0.2-alpha.
|
|
40
|
+
"@mastra/core": "0.1.27-alpha.41",
|
|
41
|
+
"@mastra/engine": "0.0.5-alpha.35",
|
|
42
|
+
"@mastra/firecrawl": "1.0.4-alpha.26",
|
|
43
|
+
"@mastra/github": "1.0.3-alpha.25",
|
|
44
|
+
"@mastra/memory": "0.0.2-alpha.20",
|
|
45
|
+
"@mastra/rag": "0.0.2-alpha.25"
|
|
43
46
|
},
|
|
44
47
|
"scripts": {
|
|
45
48
|
"build": "npx tsc",
|
|
Binary file
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
Your Company
|
|
4
|
+
123 Your Street
|
|
5
|
+
Your City, ST 12345
|
|
6
|
+
(123) 456 - 7890
|
|
7
|
+
Product Brochure
|
|
8
|
+
September 04, 20XX
|
|
9
|
+
Product Overview
|
|
10
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|
|
11
|
+
tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
|
|
12
|
+
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
|
|
13
|
+
Lorem ipsum
|
|
14
|
+
Nam liber tempor cum soluta nobis eleifend option
|
|
15
|
+
congue nihil imperdiet doming id quod mazim
|
|
16
|
+
placerat facer possim assum. Typi non habent
|
|
17
|
+
claritatem insitam; est usus legentis in iis qui facit
|
|
18
|
+
eorum claritatem.
|
|
19
|
+
Lorem ipsum
|
|
20
|
+
Duis autem vel eum iriure dolor in hendrerit in
|
|
21
|
+
vulputate velit esse molestie consequat, vel illum
|
|
22
|
+
dolore eu feugiat nulla facilisis at vero eros et
|
|
23
|
+
accumsan.
|
|
24
|
+
Dolor sit
|
|
25
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|
|
26
|
+
tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
|
|
27
|
+
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
|
|
28
|
+
|
|
29
|
+
2
|
|
30
|
+
Details
|
|
31
|
+
Nam liber tempor cum soluta nobis eleifend option congue nihil imperdiet doming id quod
|
|
32
|
+
mazim placerat facer possim assum. Typi non habent claritatem insitam; est usus legentis in iis
|
|
33
|
+
qui facit eorum claritatem. Investigationes demonstraverunt lectores legere me lius quod ii
|
|
34
|
+
legunt saepius. Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
|
|
35
|
+
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim
|
|
36
|
+
veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo
|
|
37
|
+
consequat.
|
|
38
|
+
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod
|
|
39
|
+
tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
|
|
40
|
+
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
|
|
41
|
+
Duis autem vel eum iriure dolor in hendrerit in vulputate velit esse molestie consequat, vel illum
|
|
42
|
+
dolore eu feugiat nulla facilisis at vero eros et accumsan.
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
# The Roman Empire: A Historical Overview
|
|
2
|
+
|
|
3
|
+
## Origins and Early History
|
|
4
|
+
|
|
5
|
+
- Founded in 753 BCE according to legend by Romulus and Remus
|
|
6
|
+
- Started as a small town on the Tiber River
|
|
7
|
+
- Grew to become one of the largest empires in ancient history
|
|
8
|
+
- Originally ruled by seven kings before becoming a republic in 509 BCE
|
|
9
|
+
|
|
10
|
+
## The Republic Era
|
|
11
|
+
|
|
12
|
+
- Transformed from monarchy to republic in 509 BCE
|
|
13
|
+
- Power was held by elected magistrates called consuls
|
|
14
|
+
- Featured a complex political system with the Senate at its center
|
|
15
|
+
- Experienced significant military expansion and cultural growth
|
|
16
|
+
- First Roman law code (Twelve Tables) established in 450 BCE
|
|
17
|
+
|
|
18
|
+
## Military Conquests
|
|
19
|
+
|
|
20
|
+
- Gained control of the Italian peninsula by 264 BCE
|
|
21
|
+
- Fought the famous Punic Wars with Carthage
|
|
22
|
+
- Expanded into Macedonia and Greece
|
|
23
|
+
- Developed an extensive network of roads and infrastructure
|
|
24
|
+
- Military success led to cultural advancement through contact with other civilizations
|
|
25
|
+
|
|
26
|
+
## The Empire Period
|
|
27
|
+
|
|
28
|
+
- Transition from Republic to Empire began with Julius Caesar
|
|
29
|
+
- Augustus became the first Roman Emperor in 27 BCE
|
|
30
|
+
- Experienced the Pax Romana (Roman Peace) - two centuries of stability
|
|
31
|
+
- At its height, controlled territories across Europe, North Africa, and the Middle East
|
|
32
|
+
- Notable emperors included:
|
|
33
|
+
- Augustus (27 BCE - 14 CE)
|
|
34
|
+
- Trajan (98-117 CE)
|
|
35
|
+
- Hadrian (117-138 CE)
|
|
36
|
+
- Marcus Aurelius (161-180 CE)
|
|
37
|
+
|
|
38
|
+
## Major Achievements and Legacy
|
|
39
|
+
|
|
40
|
+
1. Architecture and Engineering:
|
|
41
|
+
|
|
42
|
+
- Aqueducts for water transportation
|
|
43
|
+
- Advanced road systems (over 50,000 miles by 200 BCE)
|
|
44
|
+
- Revolutionary concrete and construction techniques
|
|
45
|
+
- Iconic structures like the Colosseum
|
|
46
|
+
|
|
47
|
+
2. Cultural Contributions:
|
|
48
|
+
|
|
49
|
+
- Development of Romance languages
|
|
50
|
+
- Modern Western alphabet
|
|
51
|
+
- Legal system foundations
|
|
52
|
+
- Spread of Christianity
|
|
53
|
+
- Architectural influences
|
|
54
|
+
|
|
55
|
+
3. Administrative Systems:
|
|
56
|
+
- Sophisticated governmental structure
|
|
57
|
+
- Advanced legal framework
|
|
58
|
+
- Efficient tax system
|
|
59
|
+
- Provincial administration model
|
|
60
|
+
|
|
61
|
+
## Decline and Fall
|
|
62
|
+
|
|
63
|
+
- Began experiencing significant problems in the 3rd century CE
|
|
64
|
+
- Split into Eastern and Western empires under Diocletian
|
|
65
|
+
- Faced increasing pressure from external invasions
|
|
66
|
+
- Western Empire fell in 476 CE when Odoacer deposed the last emperor
|
|
67
|
+
- Eastern Empire (Byzantine) continued for another millennium
|
|
68
|
+
|
|
69
|
+
## Lasting Impact
|
|
70
|
+
|
|
71
|
+
The Roman Empire's influence continues to be felt in:
|
|
72
|
+
|
|
73
|
+
- Modern government and legal systems
|
|
74
|
+
- Architecture and engineering
|
|
75
|
+
- Language and literature
|
|
76
|
+
- Cultural practices
|
|
77
|
+
- Urban planning and infrastructure
|
|
78
|
+
|
|
79
|
+
The Roman Empire stands as one of history's most significant civilizations, whose legacy continues to influence modern society in countless ways.
|
|
Binary file
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
Property Address:
|
|
2
|
+
456 Maple Ridge Rd, Riverbrook, Westfield 78901
|
|
3
|
+
|
|
4
|
+
Property Type:
|
|
5
|
+
Condominium (Unit #7)
|
|
6
|
+
|
|
7
|
+
Assessed Property Value:
|
|
8
|
+
$210,000
|
|
9
|
+
|
|
10
|
+
Taxable Value:
|
|
11
|
+
$200,000 (after exemptions and adjustments)
|
|
12
|
+
|
|
13
|
+
Local Tax Rate:
|
|
14
|
+
1.8% (applied to taxable value)
|
|
15
|
+
|
|
16
|
+
Annual Property Taxes:
|
|
17
|
+
$3,600
|
|
18
|
+
|
|
19
|
+
Exemptions:
|
|
20
|
+
|
|
21
|
+
Veteran’s Homestead Exemption: $10,000
|
|
22
|
+
Disabled Homeowner Exemption: $15,000
|
|
23
|
+
School District Levy:
|
|
24
|
+
$1,500 (included in the annual taxes)
|
|
25
|
+
|
|
26
|
+
County Services Tax:
|
|
27
|
+
$1,000
|
|
28
|
+
|
|
29
|
+
Municipal Tax (Riverbrook):
|
|
30
|
+
$700
|
|
31
|
+
|
|
32
|
+
Water & Sewer Special Assessment Fee:
|
|
33
|
+
$400 (this is an annual surcharge added to property taxes)
|
|
34
|
+
|
|
35
|
+
Due Dates:
|
|
36
|
+
|
|
37
|
+
First Half Payment: March 31
|
|
38
|
+
Second Half Payment: September 30
|
|
39
|
+
Penalties for Late Payment:
|
|
40
|
+
|
|
41
|
+
4% penalty after 30 days
|
|
42
|
+
Additional 6% if paid after 90 days
|
|
43
|
+
Interest of 1.25% per month on overdue amounts
|
|
44
|
+
Tax Lien Information:
|
|
45
|
+
If property taxes remain unpaid for more than 180 days, a tax lien may be placed on the property and subject to foreclosure after 2 years.
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Property Address:
|
|
2
|
+
123 Oakwood Lane, Pineville, Stateville 67890
|
|
3
|
+
|
|
4
|
+
Property Type:
|
|
5
|
+
Single-Family Home
|
|
6
|
+
|
|
7
|
+
Assessed Property Value:
|
|
8
|
+
$350,000
|
|
9
|
+
|
|
10
|
+
Taxable Value:
|
|
11
|
+
$325,000 (after exemptions and adjustments)
|
|
12
|
+
|
|
13
|
+
Local Tax Rate:
|
|
14
|
+
2.5% (applied to taxable value)
|
|
15
|
+
|
|
16
|
+
Annual Property Taxes:
|
|
17
|
+
$8,125
|
|
18
|
+
|
|
19
|
+
Exemptions:
|
|
20
|
+
|
|
21
|
+
Homestead Exemption: $25,000
|
|
22
|
+
Senior Citizen Discount: $5,000 (due to homeowner’s age over 65)
|
|
23
|
+
Veteran’s Exemption: $3,000
|
|
24
|
+
School District Levy:
|
|
25
|
+
$3,000 (included in the annual taxes)
|
|
26
|
+
|
|
27
|
+
County and Local Service Tax Levy:
|
|
28
|
+
$4,500
|
|
29
|
+
|
|
30
|
+
Fire District Tax:
|
|
31
|
+
$1,000
|
|
32
|
+
|
|
33
|
+
Special Assessment District (Road Improvement):
|
|
34
|
+
$500
|
|
35
|
+
|
|
36
|
+
Due Dates:
|
|
37
|
+
|
|
38
|
+
First Half Payment: January 15
|
|
39
|
+
Second Half Payment: June 30
|
|
40
|
+
Penalties for Late Payment:
|
|
41
|
+
|
|
42
|
+
5% of unpaid balance after 30 days
|
|
43
|
+
10% after 60 days
|
|
44
|
+
Interest accrues at 1.5% per month on overdue amounts
|