@growthgenie/ai-traffic 0.1.0 → 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.
- package/README.md +3 -5
- package/dist/next.d.ts +4 -2
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -16,11 +16,9 @@ the response. Aborted responses have unknown status. No sampling is performed.
|
|
|
16
16
|
|
|
17
17
|
## Setup
|
|
18
18
|
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
`node` connector key against it. Configure exact allowed hosts, production/staging
|
|
23
|
-
scope and traffic mode at connection creation. Keep the full issued
|
|
19
|
+
`npm install @growthgenie/ai-traffic`. In Growth Genie, open AI traffic → Connect your
|
|
20
|
+
site and choose **Next.js or Node** (or Vercel → **Middleware**); that creates the
|
|
21
|
+
connection with your site's hosts and shows its key once. Keep the full issued
|
|
24
22
|
`gg_ai_<uuid>.<tag>_<secret>` key in server secret configuration. The server still
|
|
25
23
|
owns classification, tenant binding, verification, policy and accounting.
|
|
26
24
|
|
package/dist/next.d.ts
CHANGED
|
@@ -21,6 +21,8 @@ export declare function createNextProxy(options: NextOptions): (request: Request
|
|
|
21
21
|
/** Wrap only a final Web Response handler, never Proxy's NextResponse.next() placeholder. */
|
|
22
22
|
export declare function createResponseWrapper(options: NextOptions): <Args extends unknown[]>(handler: (request: Request, ...args: Args) => Response | Promise<Response>) => (request: Request, event: LifetimeEvent, ...args: Args) => Promise<Response>;
|
|
23
23
|
/** Call in next.config so static export fails even when Proxy would never be loaded. */
|
|
24
|
-
|
|
24
|
+
/** Returns the same config, typed with `output` so `config.output` compiles for any config, including an empty one.
|
|
25
|
+
* Any object is accepted at compile time (Next configs rarely set `output`); a static export still throws at run time. */
|
|
26
|
+
export declare function withAiTrafficConfig<T extends object>(config: T): T & {
|
|
25
27
|
output?: "standalone" | "export";
|
|
26
|
-
}
|
|
28
|
+
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@growthgenie/ai-traffic",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=24"
|
|
@@ -51,8 +51,8 @@
|
|
|
51
51
|
"react-dom": "19.2.8",
|
|
52
52
|
"typescript": "6.0.3",
|
|
53
53
|
"vitest": "5.0.0",
|
|
54
|
-
"@growthwand/
|
|
55
|
-
"@growthwand/
|
|
54
|
+
"@growthwand/contracts": "0.0.0",
|
|
55
|
+
"@growthwand/config": "0.0.0"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
|
58
58
|
"peerDependencies": {
|