@theokit/sdk 4.63.1 → 4.63.2
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/CHANGELOG.md +25 -0
- package/dist/{agent-YWMBM7LX.js → agent-2COLCVOJ.js} +3 -3
- package/dist/{agent-YWMBM7LX.js.map → agent-2COLCVOJ.js.map} +1 -1
- package/dist/{agent-WK7MKIMH.cjs → agent-EXAN5EYJ.cjs} +4 -4
- package/dist/{agent-WK7MKIMH.cjs.map → agent-EXAN5EYJ.cjs.map} +1 -1
- package/dist/{chunk-ZMRD5DZQ.cjs → chunk-DKK5QY4C.cjs} +24 -7
- package/dist/chunk-DKK5QY4C.cjs.map +1 -0
- package/dist/{chunk-BVJJ3DRV.js → chunk-RMIWHYC7.js} +3 -3
- package/dist/{chunk-BVJJ3DRV.js.map → chunk-RMIWHYC7.js.map} +1 -1
- package/dist/{chunk-Q7LPTOD6.cjs → chunk-VX4SQ2LY.cjs} +4 -4
- package/dist/{chunk-Q7LPTOD6.cjs.map → chunk-VX4SQ2LY.cjs.map} +1 -1
- package/dist/{chunk-KIH6IZ43.js → chunk-WHFUZMIC.js} +22 -5
- package/dist/chunk-WHFUZMIC.js.map +1 -0
- package/dist/cron.cjs +3 -3
- package/dist/cron.js +2 -2
- package/dist/eval.cjs +2 -2
- package/dist/eval.js +1 -1
- package/dist/index.cjs +17 -17
- package/dist/index.js +4 -4
- package/package.json +1 -1
- package/dist/chunk-KIH6IZ43.js.map +0 -1
- package/dist/chunk-ZMRD5DZQ.cjs.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 4.63.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 1466750: A refused `memory.directory` is now reported on the read path, not only on the write path.
|
|
8
|
+
|
|
9
|
+
A relative `directory` is refused by contract, and the write path has said so since the near-miss
|
|
10
|
+
diagnostic landed. The read path did not: `readMemoryForSend` wrapped everything in `safeCall`, which
|
|
11
|
+
reports on `diag` — dropped entirely when the host installed no sink. An app that only CONSUMES
|
|
12
|
+
memory, which is the served case the option exists for, answered every turn normally with an empty
|
|
13
|
+
store and never learned why.
|
|
14
|
+
|
|
15
|
+
Measured against the published package with no sink installed: `Agent.create` did not throw, the turn
|
|
16
|
+
answered normally, nothing was written to either the configured path or the default store, and
|
|
17
|
+
stderr said nothing at all.
|
|
18
|
+
|
|
19
|
+
`safeCall` stays where it was added for, and that trade is unchanged: a corrupt memory file must not
|
|
20
|
+
abort the turn, and reporting it quietly is right because it is transient and local to one entry. A
|
|
21
|
+
`ConfigurationError` from the resolver is the opposite — permanent, repeating on every turn forever,
|
|
22
|
+
and fixable in one line by the person being kept in the dark — so it goes on the channel a failure
|
|
23
|
+
cannot be dropped from.
|
|
24
|
+
|
|
25
|
+
Reported **once per configuration per process**, not per turn. A warning that arrives every turn is a
|
|
26
|
+
warning somebody turns off.
|
|
27
|
+
|
|
3
28
|
## 4.63.1
|
|
4
29
|
|
|
5
30
|
### Patch Changes
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { Agent } from './chunk-
|
|
1
|
+
export { Agent } from './chunk-WHFUZMIC.js';
|
|
2
2
|
import './chunk-A46SWMIF.js';
|
|
3
3
|
import './chunk-4FFBAUFS.js';
|
|
4
4
|
import './chunk-K2BQQ445.js';
|
|
@@ -53,5 +53,5 @@ import './chunk-3OR54XG4.js';
|
|
|
53
53
|
import './chunk-ZZMZWBR6.js';
|
|
54
54
|
import './chunk-D4CUGAKZ.js';
|
|
55
55
|
import './chunk-XEQ3TM66.js';
|
|
56
|
-
//# sourceMappingURL=agent-
|
|
57
|
-
//# sourceMappingURL=agent-
|
|
56
|
+
//# sourceMappingURL=agent-2COLCVOJ.js.map
|
|
57
|
+
//# sourceMappingURL=agent-2COLCVOJ.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-2COLCVOJ.js"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkDKK5QY4C_cjs = require('./chunk-DKK5QY4C.cjs');
|
|
4
4
|
require('./chunk-3FFAEAUJ.cjs');
|
|
5
5
|
require('./chunk-RMWTPV3M.cjs');
|
|
6
6
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -60,7 +60,7 @@ require('./chunk-EG4QM7ZJ.cjs');
|
|
|
60
60
|
|
|
61
61
|
Object.defineProperty(exports, "Agent", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkDKK5QY4C_cjs.Agent; }
|
|
64
64
|
});
|
|
65
|
-
//# sourceMappingURL=agent-
|
|
66
|
-
//# sourceMappingURL=agent-
|
|
65
|
+
//# sourceMappingURL=agent-EXAN5EYJ.cjs.map
|
|
66
|
+
//# sourceMappingURL=agent-EXAN5EYJ.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"agent-EXAN5EYJ.cjs"}
|
|
@@ -3448,7 +3448,7 @@ var HISTOGRAM_NAMES = {
|
|
|
3448
3448
|
};
|
|
3449
3449
|
function safeRequire(moduleName) {
|
|
3450
3450
|
try {
|
|
3451
|
-
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
3451
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-DKK5QY4C.cjs', document.baseURI).href)));
|
|
3452
3452
|
return r(moduleName);
|
|
3453
3453
|
} catch {
|
|
3454
3454
|
return void 0;
|
|
@@ -3676,7 +3676,7 @@ var cachedOtel;
|
|
|
3676
3676
|
function loadOtel() {
|
|
3677
3677
|
if (cachedOtel === void 0) {
|
|
3678
3678
|
try {
|
|
3679
|
-
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
3679
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-DKK5QY4C.cjs', document.baseURI).href)));
|
|
3680
3680
|
const mod = r("@opentelemetry/api");
|
|
3681
3681
|
cachedOtel = mod;
|
|
3682
3682
|
} catch {
|
|
@@ -9595,12 +9595,29 @@ function buildCompletionCheckDeps() {
|
|
|
9595
9595
|
}
|
|
9596
9596
|
};
|
|
9597
9597
|
}
|
|
9598
|
+
var reportedRefusedDirectories = /* @__PURE__ */ new Set();
|
|
9599
|
+
function reportRefusedMemoryDirectoryOnce(workspaceCwd, directory, message) {
|
|
9600
|
+
const key = `${workspaceCwd}\0${directory ?? ""}`;
|
|
9601
|
+
if (reportedRefusedDirectories.has(key)) return;
|
|
9602
|
+
reportedRefusedDirectories.add(key);
|
|
9603
|
+
chunkEG4QM7ZJ_cjs.diagFailure(
|
|
9604
|
+
`[theokit-sdk] memory is enabled but its directory was refused, so recall is empty on every turn and nothing is stored: ${message}`
|
|
9605
|
+
);
|
|
9606
|
+
}
|
|
9598
9607
|
function readMemoryForSend(workspaceCwd, memoryConfig, query) {
|
|
9599
9608
|
if (memoryConfig?.enabled !== true) return Promise.resolve([]);
|
|
9600
9609
|
return safeCall(
|
|
9601
|
-
async () =>
|
|
9602
|
-
|
|
9603
|
-
|
|
9610
|
+
async () => {
|
|
9611
|
+
try {
|
|
9612
|
+
return selectFactsForInjection(await readMemoryFacts(workspaceCwd, memoryConfig), {
|
|
9613
|
+
...query === void 0 ? {} : { query }
|
|
9614
|
+
});
|
|
9615
|
+
} catch (cause) {
|
|
9616
|
+
if (!(cause instanceof chunk4ZHTIJNE_cjs.ConfigurationError)) throw cause;
|
|
9617
|
+
reportRefusedMemoryDirectoryOnce(workspaceCwd, memoryConfig?.directory, cause.message);
|
|
9618
|
+
return [];
|
|
9619
|
+
}
|
|
9620
|
+
},
|
|
9604
9621
|
[],
|
|
9605
9622
|
"memory read"
|
|
9606
9623
|
);
|
|
@@ -10790,5 +10807,5 @@ exports.computeCost = computeCost;
|
|
|
10790
10807
|
exports.generateCronId = generateCronId;
|
|
10791
10808
|
exports.getPricingEntry = getPricingEntry;
|
|
10792
10809
|
exports.openRouterMemoryEmbeddingProviderAdapter = openRouterMemoryEmbeddingProviderAdapter;
|
|
10793
|
-
//# sourceMappingURL=chunk-
|
|
10794
|
-
//# sourceMappingURL=chunk-
|
|
10810
|
+
//# sourceMappingURL=chunk-DKK5QY4C.cjs.map
|
|
10811
|
+
//# sourceMappingURL=chunk-DKK5QY4C.cjs.map
|