Skip to content

Commit a2d822d

Browse files
committed
Update packages
1 parent 7d37252 commit a2d822d

6 files changed

Lines changed: 1220 additions & 1058 deletions

File tree

create-agentic-app/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@ node_modules
33
.DS_Store
44
.env
55
.env.local
6+
.npmrc.publish-temp
67
setup-template.sh
78
setup-template.ps1

create-agentic-app/package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

create-agentic-app/package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "create-agentic-app",
3-
"version": "1.1.49",
3+
"version": "1.1.50",
44
"description": "Scaffold a new agentic AI application with Next.js, Better Auth, and AI SDK",
55
"type": "module",
66
"bin": {
@@ -12,7 +12,8 @@
1212
],
1313
"scripts": {
1414
"sync": "node scripts/sync-templates.js",
15-
"prepublishOnly": "npm run sync"
15+
"prepublishOnly": "npm run sync",
16+
"publish:token": "node scripts/publish-with-token.js"
1617
},
1718
"keywords": [
1819
"ai",
Lines changed: 59 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,59 @@
1+
/**
2+
* Publishes using NODE_AUTH_TOKEN via a temporary userconfig so your global
3+
* npm login is not overridden and granular tokens work reliably.
4+
*
5+
* Usage (PowerShell):
6+
* $env:NODE_AUTH_TOKEN = "npm_..."
7+
* node scripts/publish-with-token.js
8+
*
9+
* Or: npm run publish:token
10+
*
11+
* If publish still returns 403, regenerate the granular token with:
12+
* - Packages: All packages (or explicitly include create-agentic-app)
13+
* - Permissions: Read and write
14+
* - Optional: Bypass two-factor authentication (if you use 2FA)
15+
* Remove stale credentials: npm config delete //registry.npmjs.org/:_authToken
16+
*/
17+
import { writeFileSync, unlinkSync } from "fs";
18+
import { join, dirname } from "path";
19+
import { fileURLToPath } from "url";
20+
import { spawnSync } from "child_process";
21+
22+
const __dirname = dirname(fileURLToPath(import.meta.url));
23+
const root = join(__dirname, "..");
24+
const token = process.env.NODE_AUTH_TOKEN;
25+
26+
if (!token) {
27+
console.error(
28+
"Missing NODE_AUTH_TOKEN. Set it to an npm token that can publish this package.",
29+
);
30+
console.error(
31+
"Example: $env:NODE_AUTH_TOKEN = 'npm_...'; npm run publish:token",
32+
);
33+
process.exit(1);
34+
}
35+
36+
const rc = join(root, ".npmrc.publish-temp");
37+
writeFileSync(
38+
rc,
39+
`//registry.npmjs.org/:_authToken=${token}\n`,
40+
"utf8",
41+
);
42+
43+
const extra = process.argv.slice(2);
44+
const args = ["publish", "--userconfig", rc, ...extra];
45+
const isWin = process.platform === "win32";
46+
const result = spawnSync(isWin ? "npm.cmd" : "npm", args, {
47+
cwd: root,
48+
stdio: "inherit",
49+
// Windows: shell is required for stdio inherit + npm.cmd to behave reliably.
50+
shell: isWin,
51+
});
52+
53+
try {
54+
unlinkSync(rc);
55+
} catch {
56+
// ignore
57+
}
58+
59+
process.exit(result.status === null ? 1 : result.status);

package.json

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,44 +22,44 @@
2222
"sync-template": "node create-agentic-app/scripts/sync-templates.js"
2323
},
2424
"dependencies": {
25-
"@ai-sdk/react": "^2.0.125",
25+
"@ai-sdk/react": "^2.0.174",
2626
"@openrouter/ai-sdk-provider": "^1.5.4",
2727
"@radix-ui/react-avatar": "^1.1.11",
2828
"@radix-ui/react-dialog": "^1.1.15",
2929
"@radix-ui/react-dropdown-menu": "^2.1.16",
3030
"@radix-ui/react-label": "^2.1.8",
3131
"@radix-ui/react-slot": "^1.2.4",
32-
"@vercel/blob": "^2.0.1",
33-
"ai": "^5.0.123",
34-
"better-auth": "^1.4.18",
32+
"@vercel/blob": "^2.3.3",
33+
"ai": "^5.0.172",
34+
"better-auth": "^1.6.2",
3535
"class-variance-authority": "^0.7.1",
3636
"clsx": "^2.1.1",
3737
"drizzle-orm": "^0.44.7",
3838
"lucide-react": "^0.539.0",
3939
"next": "16.1.6",
4040
"next-themes": "^0.4.6",
41-
"pg": "^8.17.2",
42-
"postgres": "^3.4.8",
41+
"pg": "^8.20.0",
42+
"postgres": "^3.4.9",
4343
"react": "19.2.4",
4444
"react-dom": "19.2.4",
4545
"react-markdown": "^10.1.0",
4646
"sonner": "^2.0.7",
47-
"tailwind-merge": "^3.4.0",
47+
"tailwind-merge": "^3.5.0",
4848
"zod": "^4.3.6"
4949
},
5050
"devDependencies": {
5151
"@tailwindcss/postcss": "latest",
52-
"@types/node": "^20.19.30",
53-
"@types/pg": "^8.16.0",
52+
"@types/node": "^20.19.39",
53+
"@types/pg": "^8.20.0",
5454
"@types/react": "19.2.5",
5555
"@types/react-dom": "19.2.3",
56-
"drizzle-kit": "^0.31.8",
57-
"eslint": "^9.39.2",
56+
"drizzle-kit": "^0.31.10",
57+
"eslint": "^9.39.4",
5858
"eslint-config-next": "16.0.7",
59-
"prettier": "^3.8.1",
59+
"prettier": "^3.8.2",
6060
"prettier-plugin-tailwindcss": "^0.6.14",
61-
"shadcn": "^3.7.0",
62-
"tailwindcss": "^4.1.18",
61+
"shadcn": "^3.8.5",
62+
"tailwindcss": "^4.2.2",
6363
"tsx": "^4.21.0",
6464
"tw-animate-css": "^1.4.0",
6565
"typescript": "^5.9.3"

0 commit comments

Comments
 (0)