Skip to content

Commit d1f5460

Browse files
authored
✨ chore: Improve API method and dependency versions (#1371)
Updated fetch method to use host object and aligned dependency versions.
1 parent fe4e918 commit d1f5460

3 files changed

Lines changed: 19 additions & 19 deletions

File tree

docs/genaisrc/publish-dev-to.genai.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ for (const file of mds) {
2525
console.log(md)
2626

2727
// https://developers.forem.com/api/v1#tag/articles/operation/createArticle
28-
const res = await fetch("https://dev.to/api/articles", {
28+
const res = await host.fetch("https://dev.to/api/articles", {
2929
method: "POST",
3030
headers: {
3131
"content-type": "application/json",

packages/sample/package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@
1515
"test:scripts:view": "node ../cli/built/genaiscript.cjs test view"
1616
},
1717
"devDependencies": {
18-
"@agentic/calculator": "^7.5.3",
19-
"@agentic/core": "^7.5.3",
20-
"@agentic/weather": "^7.5.3",
18+
"@agentic/calculator": "v7.5.3",
19+
"@agentic/core": "v7.5.3",
20+
"@agentic/weather": "v7.5.3",
2121
"@azure/identity": "^4.8.0",
2222
"@azure/storage-blob": "^12.27.0",
2323
"@huggingface/transformers": "^3.4.0",
@@ -30,4 +30,4 @@
3030
"zod": "^3.24.2",
3131
"zod-to-json-schema": "^3.24.5"
3232
}
33-
}
33+
}

yarn.lock

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -2,18 +2,18 @@
22
# yarn lockfile v1
33

44

5-
"@agentic/calculator@^7.5.3":
6-
version "7.6.1"
7-
resolved "https://registry.yarnpkg.com/@agentic/calculator/-/calculator-7.6.1.tgz#710976a3c75d19478b8f54ef682ff53ad63c575c"
8-
integrity sha512-jD1BYl+u5M4MdXCCNb3iqyKS57nczBDaHMop9NDhtJ3tKMcID2V/+in45R69SSwkGjkj7QfHx5s9MrM4W+NhQw==
5+
"@agentic/calculator@v7.5.3":
6+
version "7.5.3"
7+
resolved "https://registry.yarnpkg.com/@agentic/calculator/-/calculator-7.5.3.tgz#3616ed908078c4da796de6890fa74818bbbe6e17"
8+
integrity sha512-3kug+CIrGJWpWjpHGvKNJFovQhc1cQDMTcaU+ULbRWEMSztTKUr7QOoP5t62bAC3J9RBNKCRpbYJrwGgsgARhg==
99
dependencies:
10-
"@agentic/core" "7.6.1"
10+
"@agentic/core" "7.5.3"
1111
mathjs "^13.0.3"
1212

13-
"@agentic/core@7.6.1", "@agentic/core@^7.5.3":
14-
version "7.6.1"
15-
resolved "https://registry.yarnpkg.com/@agentic/core/-/core-7.6.1.tgz#2159b8584cd62f15d187210f915e4fba72f47007"
16-
integrity sha512-/+qYlJ4AySsCvgtyNm7/kMs+yt4KWvXmmrOrAvTTP8/1Voo2bN4t0LZzW5l8G2rGK604Rf+U5uxZNkbAP6uCjg==
13+
"@agentic/core@7.5.3", "@agentic/core@v7.5.3":
14+
version "7.5.3"
15+
resolved "https://registry.yarnpkg.com/@agentic/core/-/core-7.5.3.tgz#e2a033a02969510617f01088dd5f573502f1dae3"
16+
integrity sha512-gPlqUtRn+MUNMyZ5toqYnZQu4N/I5V7UBZXy4rHreeL+v5X26qj+mfLKNCIydtI/iVAvyPXxCezTtvq9GtvmdA==
1717
dependencies:
1818
dedent "^1.5.3"
1919
delay "^6.0.0"
@@ -24,12 +24,12 @@
2424
type-fest "^4.37.0"
2525
zod-validation-error "^3.4.0"
2626

27-
"@agentic/weather@^7.5.3":
28-
version "7.6.1"
29-
resolved "https://registry.yarnpkg.com/@agentic/weather/-/weather-7.6.1.tgz#8dba870d29e337bec50ab10b2a08d2d0ee434405"
30-
integrity sha512-kYAmQT0bADvlCX/J37TQsWjWZwHeOHsNJdF9FIVxYJ6uJiucJyuQjF+bYlv6kwwZ/vIn76V+3zRsqUZ81TMXIg==
27+
"@agentic/weather@v7.5.3":
28+
version "7.5.3"
29+
resolved "https://registry.yarnpkg.com/@agentic/weather/-/weather-7.5.3.tgz#03dc60d61d63154f9c23e0373678942cea77baa7"
30+
integrity sha512-sjZ8oEoYNoZkaAXgnsKCJRDIf0EcUBbzs2d+N4ej6G5f6WiEJ7d/ta1d2PzePOTPKrgpx14F33A040XKvNTlDg==
3131
dependencies:
32-
"@agentic/core" "7.6.1"
32+
"@agentic/core" "7.5.3"
3333
ky "^1.7.5"
3434

3535
"@antfu/install-pkg@^1.0.0":

0 commit comments

Comments
 (0)