@supaku/agentfactory-nextjs 0.4.3 → 0.4.5
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,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Edge Runtime-safe middleware exports.
|
|
3
|
+
*
|
|
4
|
+
* This barrel ONLY re-exports modules that are compatible with Next.js
|
|
5
|
+
* Edge Runtime. It deliberately excludes worker-auth and cron-auth
|
|
6
|
+
* which depend on @supaku/agentfactory-server (Node.js crypto/ioredis).
|
|
7
|
+
*
|
|
8
|
+
* Use this subpath import in middleware.ts:
|
|
9
|
+
* import { createAgentFactoryMiddleware } from '@supaku/agentfactory-nextjs/middleware'
|
|
10
|
+
*
|
|
11
|
+
* Do NOT import from the main barrel ('@supaku/agentfactory-nextjs')
|
|
12
|
+
* in Edge Runtime — it pulls in Node.js-only modules.
|
|
13
|
+
*/
|
|
14
|
+
export { createAgentFactoryMiddleware } from './factory.js';
|
|
15
|
+
export type { MiddlewareConfig } from './types.js';
|
|
16
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/middleware/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAE,4BAA4B,EAAE,MAAM,cAAc,CAAA;AAC3D,YAAY,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAA"}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Edge Runtime-safe middleware exports.
|
|
3
|
+
*
|
|
4
|
+
* This barrel ONLY re-exports modules that are compatible with Next.js
|
|
5
|
+
* Edge Runtime. It deliberately excludes worker-auth and cron-auth
|
|
6
|
+
* which depend on @supaku/agentfactory-server (Node.js crypto/ioredis).
|
|
7
|
+
*
|
|
8
|
+
* Use this subpath import in middleware.ts:
|
|
9
|
+
* import { createAgentFactoryMiddleware } from '@supaku/agentfactory-nextjs/middleware'
|
|
10
|
+
*
|
|
11
|
+
* Do NOT import from the main barrel ('@supaku/agentfactory-nextjs')
|
|
12
|
+
* in Edge Runtime — it pulls in Node.js-only modules.
|
|
13
|
+
*/
|
|
14
|
+
export { createAgentFactoryMiddleware } from './factory.js';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@supaku/agentfactory-nextjs",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.5",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Next.js API route handlers for AgentFactory — webhook processor, worker/session management, public stats",
|
|
6
6
|
"author": "Supaku (https://supaku.com)",
|
|
@@ -35,6 +35,11 @@
|
|
|
35
35
|
"types": "./dist/src/index.d.ts",
|
|
36
36
|
"import": "./dist/src/index.js",
|
|
37
37
|
"default": "./dist/src/index.js"
|
|
38
|
+
},
|
|
39
|
+
"./middleware": {
|
|
40
|
+
"types": "./dist/src/middleware/index.d.ts",
|
|
41
|
+
"import": "./dist/src/middleware/index.js",
|
|
42
|
+
"default": "./dist/src/middleware/index.js"
|
|
38
43
|
}
|
|
39
44
|
},
|
|
40
45
|
"files": [
|
|
@@ -43,9 +48,9 @@
|
|
|
43
48
|
"LICENSE"
|
|
44
49
|
],
|
|
45
50
|
"dependencies": {
|
|
46
|
-
"@supaku/agentfactory-
|
|
47
|
-
"@supaku/agentfactory
|
|
48
|
-
"@supaku/agentfactory": "0.4.
|
|
51
|
+
"@supaku/agentfactory-server": "0.4.5",
|
|
52
|
+
"@supaku/agentfactory": "0.4.5",
|
|
53
|
+
"@supaku/agentfactory-linear": "0.4.5"
|
|
49
54
|
},
|
|
50
55
|
"peerDependencies": {
|
|
51
56
|
"next": ">=14.0.0"
|