@agentnext/next 0.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.
@@ -0,0 +1,3 @@
1
+ declare function withAgentKit(nextConfig?: any): any;
2
+
3
+ export { withAgentKit };
@@ -0,0 +1,3 @@
1
+ declare function withAgentKit(nextConfig?: any): any;
2
+
3
+ export { withAgentKit };
package/dist/index.js ADDED
@@ -0,0 +1,40 @@
1
+ "use strict";
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
6
+ var __export = (target, all) => {
7
+ for (var name in all)
8
+ __defProp(target, name, { get: all[name], enumerable: true });
9
+ };
10
+ var __copyProps = (to, from, except, desc) => {
11
+ if (from && typeof from === "object" || typeof from === "function") {
12
+ for (let key of __getOwnPropNames(from))
13
+ if (!__hasOwnProp.call(to, key) && key !== except)
14
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
15
+ }
16
+ return to;
17
+ };
18
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
19
+
20
+ // src/index.ts
21
+ var index_exports = {};
22
+ __export(index_exports, {
23
+ withAgentKit: () => withAgentKit
24
+ });
25
+ module.exports = __toCommonJS(index_exports);
26
+ function withAgentKit(nextConfig = {}) {
27
+ return {
28
+ ...nextConfig,
29
+ webpack(config, options) {
30
+ if (typeof nextConfig.webpack === "function") {
31
+ return nextConfig.webpack(config, options);
32
+ }
33
+ return config;
34
+ }
35
+ };
36
+ }
37
+ // Annotate the CommonJS export names for ESM import in node:
38
+ 0 && (module.exports = {
39
+ withAgentKit
40
+ });
package/dist/index.mjs ADDED
@@ -0,0 +1,15 @@
1
+ // src/index.ts
2
+ function withAgentKit(nextConfig = {}) {
3
+ return {
4
+ ...nextConfig,
5
+ webpack(config, options) {
6
+ if (typeof nextConfig.webpack === "function") {
7
+ return nextConfig.webpack(config, options);
8
+ }
9
+ return config;
10
+ }
11
+ };
12
+ }
13
+ export {
14
+ withAgentKit
15
+ };
package/package.json ADDED
@@ -0,0 +1,48 @@
1
+ {
2
+ "name": "@agentnext/next",
3
+ "version": "0.1.1",
4
+ "description": "Next.js adapter for AgentNext — App Router integration, server execution, auth propagation",
5
+ "license": "MIT",
6
+ "author": "AgentNext",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "https://github.com/your-org/agentnext"
10
+ },
11
+ "keywords": [
12
+ "agentnext",
13
+ "nextjs",
14
+ "next",
15
+ "ai-agent"
16
+ ],
17
+ "main": "dist/index.js",
18
+ "module": "dist/index.mjs",
19
+ "types": "dist/index.d.ts",
20
+ "exports": {
21
+ ".": {
22
+ "types": "./dist/index.d.ts",
23
+ "import": "./dist/index.mjs",
24
+ "require": "./dist/index.js"
25
+ }
26
+ },
27
+ "files": [
28
+ "dist"
29
+ ],
30
+ "scripts": {
31
+ "build": "tsup src/index.ts --format cjs,esm --dts --clean",
32
+ "dev": "tsup src/index.ts --format cjs,esm --dts --watch",
33
+ "lint": "eslint src/",
34
+ "test": "vitest run",
35
+ "prepublishOnly": "npm run build"
36
+ },
37
+ "dependencies": {
38
+ "@agentnext/core": "^0.1.0"
39
+ },
40
+ "peerDependencies": {
41
+ "next": "^14.0.0 || ^15.0.0"
42
+ },
43
+ "devDependencies": {
44
+ "tsup": "^8.0.0",
45
+ "typescript": "^5.0.0",
46
+ "vitest": "^1.0.0"
47
+ }
48
+ }