@memnexus-ai/typescript-sdk 1.71.4 → 1.72.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 +37 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +37 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -4145,6 +4145,41 @@ var MemoriesService = class extends BaseService {
|
|
|
4145
4145
|
}
|
|
4146
4146
|
return this.client.call(request);
|
|
4147
4147
|
}
|
|
4148
|
+
/**
|
|
4149
|
+
* Create a memory from commit context
|
|
4150
|
+
* Accepts raw commit data and stores a summarized memory. Responds 201
|
|
4151
|
+
with placeholder content immediately; LLM distillation replaces it in
|
|
4152
|
+
the background.
|
|
4153
|
+
|
|
4154
|
+
This endpoint CREATES A MEMORY and is therefore subject to the same
|
|
4155
|
+
free-tier cap as `POST /api/memories`.
|
|
4156
|
+
|
|
4157
|
+
Authentication is the standard trust-gateway set — API key, JWT
|
|
4158
|
+
bearer, or service token. The spec models all bearer credentials under
|
|
4159
|
+
the single `ApiKeyAuth` scheme, so this operation inherits the global
|
|
4160
|
+
requirement rather than declaring a narrower one.
|
|
4161
|
+
|
|
4162
|
+
* @param body - Request body
|
|
4163
|
+
*/
|
|
4164
|
+
async createCommitContextMemory(body) {
|
|
4165
|
+
const request = new Request({
|
|
4166
|
+
baseUrl: this.config.baseUrl || "http://localhost:3000",
|
|
4167
|
+
method: "POST",
|
|
4168
|
+
path: "/api/commit-context",
|
|
4169
|
+
config: this.config,
|
|
4170
|
+
retry: {
|
|
4171
|
+
attempts: 3,
|
|
4172
|
+
delayMs: 150,
|
|
4173
|
+
maxDelayMs: 5e3,
|
|
4174
|
+
jitterMs: 50,
|
|
4175
|
+
backoffFactor: 2
|
|
4176
|
+
}
|
|
4177
|
+
});
|
|
4178
|
+
if (body !== void 0) {
|
|
4179
|
+
request.addBody(body);
|
|
4180
|
+
}
|
|
4181
|
+
return this.client.call(request);
|
|
4182
|
+
}
|
|
4148
4183
|
};
|
|
4149
4184
|
|
|
4150
4185
|
// src/services/invites-service.ts
|
|
@@ -7482,6 +7517,8 @@ var userUsage = import_zod.z.object({
|
|
|
7482
7517
|
memoriesRemaining: import_zod.z.number(),
|
|
7483
7518
|
percentUsed: import_zod.z.number(),
|
|
7484
7519
|
plan: import_zod.z.enum(["free", "pro", "enterprise"]),
|
|
7520
|
+
/** What memoriesUsed counts. 'monthly' = memories created in the current calendar month; periodStart/periodEnd are that month and the count resets on the 1st. Currently the only value emitted, on every plan. Additional values may be added without a major version — treat an unrecognised value as an unknown basis rather than switching exhaustively. */
|
|
7521
|
+
quotaBasis: import_zod.z.enum(["monthly"]),
|
|
7485
7522
|
periodStart: import_zod.z.string().datetime(),
|
|
7486
7523
|
periodEnd: import_zod.z.string().datetime()
|
|
7487
7524
|
});
|