mneme-sdk 0.4.0 → 0.5.0
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.cjs +10 -0
- package/dist/index.d.cts +16 -0
- package/dist/index.d.ts +16 -0
- package/dist/index.js +10 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -155,6 +155,16 @@ var Mneme = class {
|
|
|
155
155
|
"POST",
|
|
156
156
|
"/v1/llm/sql",
|
|
157
157
|
args
|
|
158
|
+
),
|
|
159
|
+
/**
|
|
160
|
+
* Free-form chat with the Mneme assistant. Server-side LLM is told
|
|
161
|
+
* about your schema and Base ecosystem — useful for "what does this
|
|
162
|
+
* SQL do", "how do I do vector search", "what's pgvector", etc.
|
|
163
|
+
*/
|
|
164
|
+
chat: (args) => this.request(
|
|
165
|
+
"POST",
|
|
166
|
+
"/v1/llm/chat",
|
|
167
|
+
args
|
|
158
168
|
)
|
|
159
169
|
};
|
|
160
170
|
/**
|
package/dist/index.d.cts
CHANGED
|
@@ -131,6 +131,22 @@ declare class Mneme {
|
|
|
131
131
|
model: string;
|
|
132
132
|
elapsed_ms: number;
|
|
133
133
|
}>;
|
|
134
|
+
/**
|
|
135
|
+
* Free-form chat with the Mneme assistant. Server-side LLM is told
|
|
136
|
+
* about your schema and Base ecosystem — useful for "what does this
|
|
137
|
+
* SQL do", "how do I do vector search", "what's pgvector", etc.
|
|
138
|
+
*/
|
|
139
|
+
chat: (args: {
|
|
140
|
+
prompt: string;
|
|
141
|
+
history?: Array<{
|
|
142
|
+
role: "user" | "assistant";
|
|
143
|
+
content: string;
|
|
144
|
+
}>;
|
|
145
|
+
}) => Promise<{
|
|
146
|
+
reply: string;
|
|
147
|
+
model: string;
|
|
148
|
+
elapsed_ms: number;
|
|
149
|
+
}>;
|
|
134
150
|
};
|
|
135
151
|
/**
|
|
136
152
|
* Service-account API keys — for B2B2C integrators (e.g. Gitlawb) that
|
package/dist/index.d.ts
CHANGED
|
@@ -131,6 +131,22 @@ declare class Mneme {
|
|
|
131
131
|
model: string;
|
|
132
132
|
elapsed_ms: number;
|
|
133
133
|
}>;
|
|
134
|
+
/**
|
|
135
|
+
* Free-form chat with the Mneme assistant. Server-side LLM is told
|
|
136
|
+
* about your schema and Base ecosystem — useful for "what does this
|
|
137
|
+
* SQL do", "how do I do vector search", "what's pgvector", etc.
|
|
138
|
+
*/
|
|
139
|
+
chat: (args: {
|
|
140
|
+
prompt: string;
|
|
141
|
+
history?: Array<{
|
|
142
|
+
role: "user" | "assistant";
|
|
143
|
+
content: string;
|
|
144
|
+
}>;
|
|
145
|
+
}) => Promise<{
|
|
146
|
+
reply: string;
|
|
147
|
+
model: string;
|
|
148
|
+
elapsed_ms: number;
|
|
149
|
+
}>;
|
|
134
150
|
};
|
|
135
151
|
/**
|
|
136
152
|
* Service-account API keys — for B2B2C integrators (e.g. Gitlawb) that
|
package/dist/index.js
CHANGED
|
@@ -123,6 +123,16 @@ var Mneme = class {
|
|
|
123
123
|
"POST",
|
|
124
124
|
"/v1/llm/sql",
|
|
125
125
|
args
|
|
126
|
+
),
|
|
127
|
+
/**
|
|
128
|
+
* Free-form chat with the Mneme assistant. Server-side LLM is told
|
|
129
|
+
* about your schema and Base ecosystem — useful for "what does this
|
|
130
|
+
* SQL do", "how do I do vector search", "what's pgvector", etc.
|
|
131
|
+
*/
|
|
132
|
+
chat: (args) => this.request(
|
|
133
|
+
"POST",
|
|
134
|
+
"/v1/llm/chat",
|
|
135
|
+
args
|
|
126
136
|
)
|
|
127
137
|
};
|
|
128
138
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mneme-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"description": "TypeScript SDK for Mneme — agent-native Postgres + R2 storage on Base. Wallet-auth, runtime DDL, full CRUD with WHERE filters, raw SQL, pgvector, service-account API keys for B2B2C integrations, wallet-bound files with $MNEME burn quota.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.cjs",
|