@theokit/sdk 4.42.0 → 4.42.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/CHANGELOG.md +31 -0
- package/dist/{agent-HGDXQEQQ.cjs → agent-DRUORJTU.cjs} +5 -5
- package/dist/{agent-HGDXQEQQ.cjs.map → agent-DRUORJTU.cjs.map} +1 -1
- package/dist/{agent-WUVYXIFX.js → agent-MVYGMWPM.js} +4 -4
- package/dist/{agent-WUVYXIFX.js.map → agent-MVYGMWPM.js.map} +1 -1
- package/dist/{chunk-YHQ3DG24.cjs → chunk-4OQXDCMN.cjs} +10 -10
- package/dist/chunk-4OQXDCMN.cjs.map +1 -0
- package/dist/{chunk-22EMHGBO.cjs → chunk-GAXYZXYY.cjs} +8 -7
- package/dist/chunk-GAXYZXYY.cjs.map +1 -0
- package/dist/{chunk-EYEZDADP.cjs → chunk-HLGEXZZP.cjs} +5 -5
- package/dist/{chunk-EYEZDADP.cjs.map → chunk-HLGEXZZP.cjs.map} +1 -1
- package/dist/{chunk-MPD5EGJ6.js → chunk-O67XODD5.js} +3 -3
- package/dist/{chunk-MPD5EGJ6.js.map → chunk-O67XODD5.js.map} +1 -1
- package/dist/{chunk-KO5V6L3E.js → chunk-V5V5A6B7.js} +5 -5
- package/dist/chunk-V5V5A6B7.js.map +1 -0
- package/dist/{chunk-Q2PPSHBS.js → chunk-ZZAAQOAZ.js} +9 -9
- package/dist/chunk-ZZAAQOAZ.js.map +1 -0
- package/dist/context/index.cjs +5 -5
- package/dist/context/index.js +2 -2
- package/dist/cron.cjs +4 -4
- package/dist/cron.js +3 -3
- package/dist/eval.cjs +3 -3
- package/dist/eval.js +2 -2
- package/dist/index.cjs +19 -19
- package/dist/index.js +5 -5
- package/dist/internal/runtime/context/path-containment.d.ts +24 -0
- package/dist/server/auth/index.d.cts +207 -11
- package/dist/server/auth/index.d.ts +207 -11
- package/dist/server/errors-envelope.d.cts +12 -6
- package/dist/server/errors-envelope.d.ts +12 -6
- package/package.json +13 -12
- package/dist/chunk-22EMHGBO.cjs.map +0 -1
- package/dist/chunk-KO5V6L3E.js.map +0 -1
- package/dist/chunk-Q2PPSHBS.js.map +0 -1
- package/dist/chunk-YHQ3DG24.cjs.map +0 -1
|
@@ -6,7 +6,7 @@ import { discoverProviderPlugins, getConfiguredBaseUrl, httpRequest, isFixtureAp
|
|
|
6
6
|
import { IndexManager, writeSessionSummary, memoryDir, appendFact, readFacts, legacyMemoryJsonPath, memoryMdPath, appendFactToMarkdown } from './chunk-RJBHWM6D.js';
|
|
7
7
|
import { loadHookConfig, warnOnce, currentPersonalityContext, warnPersonalitySwitchInsideFork } from './chunk-J5RW43IR.js';
|
|
8
8
|
import { resolveChildEnv } from './chunk-AM2CNBKE.js';
|
|
9
|
-
import { DEFAULT_MAX_BYTES_PER_FILE, runDiscovery, truncateWithMarker } from './chunk-
|
|
9
|
+
import { DEFAULT_MAX_BYTES_PER_FILE, runDiscovery, insideRoot, truncateWithMarker } from './chunk-ZZAAQOAZ.js';
|
|
10
10
|
import { readVersionedJson, getTheokitHome, writeVersionedJson } from './chunk-ZS6SLELQ.js';
|
|
11
11
|
import { createOpenAiCompatibleRuntime } from './chunk-LLE7HPRI.js';
|
|
12
12
|
import { sanitizeToolInput } from './chunk-U54XCYG3.js';
|
|
@@ -3969,7 +3969,7 @@ var FileContextManager = class {
|
|
|
3969
3969
|
skipLegacyTheokitContext: true,
|
|
3970
3970
|
touchedFiles
|
|
3971
3971
|
});
|
|
3972
|
-
const legacyAsAggregator = legacy.map((src) => ({
|
|
3972
|
+
const legacyAsAggregator = legacy.filter((src) => src.status !== "excluded").map((src) => ({
|
|
3973
3973
|
id: src.name,
|
|
3974
3974
|
source: src.path,
|
|
3975
3975
|
content: src.tokens.join(""),
|
|
@@ -4103,7 +4103,7 @@ async function loadSources(config, cwd) {
|
|
|
4103
4103
|
continue;
|
|
4104
4104
|
}
|
|
4105
4105
|
const absolute = resolve(cwd, source.path);
|
|
4106
|
-
if (!absolute
|
|
4106
|
+
if (!insideRoot(absolute, cwd)) {
|
|
4107
4107
|
results.push({ ...source, status: "excluded", tokens: [] });
|
|
4108
4108
|
continue;
|
|
4109
4109
|
}
|
|
@@ -10319,5 +10319,5 @@ async function openLocalStore(reg) {
|
|
|
10319
10319
|
}
|
|
10320
10320
|
|
|
10321
10321
|
export { Agent, AgentBuilder, DEFAULT_AGENTIC_MODEL_ID, MEMORY_EMBEDDING_ADAPTERS, Tool, ToolError, UsageAccumulator, computeCost, generateCronId, getPricingEntry, openRouterMemoryEmbeddingProviderAdapter, resolveApiKey };
|
|
10322
|
-
//# sourceMappingURL=chunk-
|
|
10323
|
-
//# sourceMappingURL=chunk-
|
|
10322
|
+
//# sourceMappingURL=chunk-V5V5A6B7.js.map
|
|
10323
|
+
//# sourceMappingURL=chunk-V5V5A6B7.js.map
|