@ai-me-chat/core 0.1.0 → 0.2.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/dist/index.d.cts CHANGED
@@ -7,8 +7,8 @@ interface AIMeConfig {
7
7
  discovery: DiscoveryConfig;
8
8
  /** Get the current user session from the request */
9
9
  getSession: (req: Request) => Promise<AIMeSession | null>;
10
- /** System prompt prepended to all conversations */
11
- systemPrompt?: string;
10
+ /** System prompt prepended to all conversations. Pass a function to inject user-specific context. */
11
+ systemPrompt?: string | ((session: AIMeSession) => string | Promise<string>);
12
12
  /** Confirmation settings for write operations */
13
13
  confirmation?: ConfirmationConfig;
14
14
  /** Maximum conversation history messages to send to LLM */
@@ -20,6 +20,12 @@ interface AIMeConfig {
20
20
  }
21
21
  interface DiscoveryConfig {
22
22
  mode: "filesystem" | "openapi";
23
+ /**
24
+ * Absolute or relative path to the Next.js app directory.
25
+ * Defaults to auto-detection: prefers `src/app` when it exists, falls back to `app`.
26
+ * Only used when mode is "filesystem".
27
+ */
28
+ appDir?: string;
23
29
  /** Glob patterns of routes to include */
24
30
  include?: string[];
25
31
  /** Glob patterns of routes to exclude */
package/dist/index.d.ts CHANGED
@@ -7,8 +7,8 @@ interface AIMeConfig {
7
7
  discovery: DiscoveryConfig;
8
8
  /** Get the current user session from the request */
9
9
  getSession: (req: Request) => Promise<AIMeSession | null>;
10
- /** System prompt prepended to all conversations */
11
- systemPrompt?: string;
10
+ /** System prompt prepended to all conversations. Pass a function to inject user-specific context. */
11
+ systemPrompt?: string | ((session: AIMeSession) => string | Promise<string>);
12
12
  /** Confirmation settings for write operations */
13
13
  confirmation?: ConfirmationConfig;
14
14
  /** Maximum conversation history messages to send to LLM */
@@ -20,6 +20,12 @@ interface AIMeConfig {
20
20
  }
21
21
  interface DiscoveryConfig {
22
22
  mode: "filesystem" | "openapi";
23
+ /**
24
+ * Absolute or relative path to the Next.js app directory.
25
+ * Defaults to auto-detection: prefers `src/app` when it exists, falls back to `app`.
26
+ * Only used when mode is "filesystem".
27
+ */
28
+ appDir?: string;
23
29
  /** Glob patterns of routes to include */
24
30
  include?: string[];
25
31
  /** Glob patterns of routes to exclude */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ai-me-chat/core",
3
- "version": "0.1.0",
3
+ "version": "0.2.1",
4
4
  "description": "AI-Me core — framework-agnostic AI copilot engine with tool discovery, schema extraction, and OpenAPI support",
5
5
  "license": "MIT",
6
6
  "keywords": [