@todoforai/tfa-memory 0.2.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/cli.js +2 -2
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -462,7 +462,7 @@ function checkForUpdates(pkg) {
|
|
|
462
462
|
// package.json
|
|
463
463
|
var package_default = {
|
|
464
464
|
name: "@todoforai/tfa-memory",
|
|
465
|
-
version: "0.2.
|
|
465
|
+
version: "0.2.1",
|
|
466
466
|
description: "Zero-config TODOforAI memory CLI — add/search/ls/get/rm text memory rows addressed as source/ref, with full-text and semantic search. Reuses bridge credentials.",
|
|
467
467
|
type: "module",
|
|
468
468
|
bin: {
|
|
@@ -568,7 +568,7 @@ async function api(ctx, method, path2, body) {
|
|
|
568
568
|
headers: body !== undefined ? { "content-type": "application/json" } : {},
|
|
569
569
|
body: body !== undefined ? JSON.stringify(body) : undefined
|
|
570
570
|
};
|
|
571
|
-
const { res, token } = await fetchWithRenew(`${ctx.memoryUrl}/v1${path2}`, init, { apiUrl: ctx.apiUrl, token: ctx.token });
|
|
571
|
+
const { res, token } = await fetchWithRenew(`${ctx.memoryUrl}/v1${path2}`, init, { apiUrl: ctx.apiUrl, token: ctx.token, renewOn: [401, 403] });
|
|
572
572
|
ctx.token = token;
|
|
573
573
|
if (!res.ok) {
|
|
574
574
|
const text = await res.text();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@todoforai/tfa-memory",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"description": "Zero-config TODOforAI memory CLI \u2014 add/search/ls/get/rm text memory rows addressed as source/ref, with full-text and semantic search. Reuses bridge credentials.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|