@theokit/sdk 5.15.2 → 5.16.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/CHANGELOG.md +22 -0
- package/dist/{agent-QRIFX2SY.js → agent-FB56RAXD.js} +11 -10
- package/dist/{agent-QRIFX2SY.js.map → agent-FB56RAXD.js.map} +1 -1
- package/dist/{agent-D6WBBNGR.cjs → agent-TM634NHQ.cjs} +12 -11
- package/dist/{agent-D6WBBNGR.cjs.map → agent-TM634NHQ.cjs.map} +1 -1
- package/dist/chunk-22HVMMXX.cjs +13 -0
- package/dist/chunk-22HVMMXX.cjs.map +1 -0
- package/dist/{chunk-PDFSLD5P.cjs → chunk-3JGRKXA7.cjs} +4 -4
- package/dist/{chunk-PDFSLD5P.cjs.map → chunk-3JGRKXA7.cjs.map} +1 -1
- package/dist/{chunk-CMDM4VF6.js → chunk-4XYCF5PA.js} +3 -3
- package/dist/{chunk-CMDM4VF6.js.map → chunk-4XYCF5PA.js.map} +1 -1
- package/dist/{chunk-PSMWZYW6.js → chunk-6WPNFZH3.js} +4 -4
- package/dist/{chunk-PSMWZYW6.js.map → chunk-6WPNFZH3.js.map} +1 -1
- package/dist/{chunk-5L7S2VOL.js → chunk-A3T2A2WU.js} +3 -69
- package/dist/chunk-A3T2A2WU.js.map +1 -0
- package/dist/{chunk-BTGYRM4J.cjs → chunk-BJB6RDEA.cjs} +59 -59
- package/dist/{chunk-BTGYRM4J.cjs.map → chunk-BJB6RDEA.cjs.map} +1 -1
- package/dist/{chunk-6XT5LAZG.cjs → chunk-BXEHUUDJ.cjs} +69 -30
- package/dist/chunk-BXEHUUDJ.cjs.map +1 -0
- package/dist/{chunk-ATGSV4GS.js → chunk-DLCYS5RI.js} +3 -3
- package/dist/{chunk-ATGSV4GS.js.map → chunk-DLCYS5RI.js.map} +1 -1
- package/dist/chunk-GA4ZRKYF.cjs +75 -0
- package/dist/chunk-GA4ZRKYF.cjs.map +1 -0
- package/dist/chunk-ICBNSAO4.js +11 -0
- package/dist/chunk-ICBNSAO4.js.map +1 -0
- package/dist/{chunk-JRQJMZKY.js → chunk-MNE4633K.js} +45 -6
- package/dist/chunk-MNE4633K.js.map +1 -0
- package/dist/{chunk-CG64VPPU.js → chunk-NHD5IN3E.js} +10 -10
- package/dist/{chunk-CG64VPPU.js.map → chunk-NHD5IN3E.js.map} +1 -1
- package/dist/{chunk-Q4UOCMAO.cjs → chunk-S5WTJ6LL.cjs} +5 -5
- package/dist/{chunk-Q4UOCMAO.cjs.map → chunk-S5WTJ6LL.cjs.map} +1 -1
- package/dist/chunk-SGKMTBCO.cjs +18 -0
- package/dist/{chunk-EDIYR4VR.cjs.map → chunk-SGKMTBCO.cjs.map} +1 -1
- package/dist/{chunk-VT3NWHFH.cjs → chunk-TDKLSWHU.cjs} +4 -4
- package/dist/{chunk-VT3NWHFH.cjs.map → chunk-TDKLSWHU.cjs.map} +1 -1
- package/dist/{chunk-AQ23NII7.js → chunk-UNUGF36D.js} +3 -3
- package/dist/{chunk-AQ23NII7.js.map → chunk-UNUGF36D.js.map} +1 -1
- package/dist/{chunk-Z5MB2HAN.cjs → chunk-WVQRE7CO.cjs} +4 -70
- package/dist/chunk-WVQRE7CO.cjs.map +1 -0
- package/dist/chunk-Z2UVCAYS.js +72 -0
- package/dist/chunk-Z2UVCAYS.js.map +1 -0
- package/dist/{compact-session-5DWFHMW4.cjs → compact-session-OHA543HN.cjs} +14 -13
- package/dist/{compact-session-5DWFHMW4.cjs.map → compact-session-OHA543HN.cjs.map} +1 -1
- package/dist/{compact-session-AL65PEMX.js → compact-session-XPJS27JD.js} +5 -4
- package/dist/{compact-session-AL65PEMX.js.map → compact-session-XPJS27JD.js.map} +1 -1
- package/dist/cron.cjs +11 -10
- package/dist/cron.js +10 -9
- package/dist/eval.cjs +10 -9
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +9 -8
- package/dist/eval.js.map +1 -1
- package/dist/index.cjs +219 -45
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +106 -1
- package/dist/index.d.ts +106 -1
- package/dist/index.js +185 -14
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-QZULG65O.cjs → inject-session-NTL2UAE6.cjs} +5 -5
- package/dist/{inject-session-QZULG65O.cjs.map → inject-session-NTL2UAE6.cjs.map} +1 -1
- package/dist/{inject-session-E2SZ4A35.js → inject-session-SCJ6MTUT.js} +4 -4
- package/dist/{inject-session-E2SZ4A35.js.map → inject-session-SCJ6MTUT.js.map} +1 -1
- package/dist/internal/llm/openai.d.ts +2 -0
- package/dist/internal/llm/responses.d.ts +2 -0
- package/dist/internal/llm/sse.d.ts +6 -0
- package/dist/internal/providers/builtin/openai-chatgpt.d.ts +8 -0
- package/dist/internal/trim-trailing-slashes.d.ts +6 -0
- package/dist/models.cjs +12 -16
- package/dist/models.cjs.map +1 -1
- package/dist/models.js +4 -8
- package/dist/models.js.map +1 -1
- package/dist/openai-chatgpt-IVAL4MW6.cjs +22 -0
- package/dist/openai-chatgpt-IVAL4MW6.cjs.map +1 -0
- package/dist/openai-chatgpt-ZFNZWT2L.js +9 -0
- package/dist/openai-chatgpt-ZFNZWT2L.js.map +1 -0
- package/dist/providers.cjs +5 -4
- package/dist/providers.js +3 -2
- package/dist/sandbox/e2b-sandbox.d.cts +61 -0
- package/dist/sandbox/e2b-sandbox.d.ts +61 -0
- package/dist/sandbox/index.cjs +55 -0
- package/dist/sandbox/index.cjs.map +1 -1
- package/dist/sandbox/index.d.cts +1 -0
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/index.js +54 -1
- package/dist/sandbox/index.js.map +1 -1
- package/docs/error-codes.md +6 -4
- package/docs/harness-capability-map.md +21 -1
- package/package.json +5 -1
- package/dist/chunk-5L7S2VOL.js.map +0 -1
- package/dist/chunk-6XT5LAZG.cjs.map +0 -1
- package/dist/chunk-EDIYR4VR.cjs +0 -18
- package/dist/chunk-JRQJMZKY.js.map +0 -1
- package/dist/chunk-Z5MB2HAN.cjs.map +0 -1
|
@@ -1,13 +1,13 @@
|
|
|
1
|
+
import { extractCodePlugins, isCodePlugin } from './chunk-2SFBB54R.js';
|
|
1
2
|
import { submit, emitRunEvent } from './chunk-GEQLHBJM.js';
|
|
2
|
-
import { enqueueSessionWrite, hydrateSession, persistTurnToTranscript, flushSessionWrites, appendSessionMessage, getSessionMessages, discardSession, clearSession } from './chunk-
|
|
3
|
+
import { enqueueSessionWrite, hydrateSession, persistTurnToTranscript, flushSessionWrites, appendSessionMessage, getSessionMessages, discardSession, clearSession } from './chunk-6WPNFZH3.js';
|
|
3
4
|
import { IndexManager } from './chunk-L5B7EWWH.js';
|
|
4
5
|
import { currentPersonalityContext, warnPersonalitySwitchInsideFork } from './chunk-ZUWVO442.js';
|
|
5
|
-
import { extractCodePlugins, isCodePlugin } from './chunk-2SFBB54R.js';
|
|
6
6
|
import { createOpenAiCompatibleRuntime } from './chunk-TTXRNCXY.js';
|
|
7
7
|
import { persistActiveMemoryTranscript } from './chunk-BH6M2DGV.js';
|
|
8
8
|
import { resolveMaxFacts, writeSessionSummary, resolveMemoryRoot, MEMORY_KINDS, appendFact, readFacts, legacyMemoryJsonPath, memoryMdPath, appendFactToMarkdown } from './chunk-DB5RYCXX.js';
|
|
9
9
|
import { FsSessionStore } from './chunk-P7B64NFK.js';
|
|
10
|
-
import { discoverProviderPlugins, validateApiKeyShape, getConfiguredBaseUrl, httpRequest, isFixtureApiKey, presentProviderCredentialEnvVars, readTrustArray, buildDefaultSummarizer, shouldUseRealLocalRuntime, parseSseStream, CircuitBreaker, trustFilePath, resolveRunProvider, mergeExplicitApiKey, resolveProviderChain, abortError, tryFirstEvent, relayStream, renderToolResultContentText } from './chunk-
|
|
10
|
+
import { discoverProviderPlugins, validateApiKeyShape, getConfiguredBaseUrl, httpRequest, isFixtureApiKey, presentProviderCredentialEnvVars, readTrustArray, buildDefaultSummarizer, shouldUseRealLocalRuntime, parseSseStream, CircuitBreaker, trustFilePath, resolveRunProvider, mergeExplicitApiKey, resolveProviderChain, abortError, tryFirstEvent, relayStream, renderToolResultContentText } from './chunk-MNE4633K.js';
|
|
11
11
|
import { resolveChildEnv } from './chunk-HKCKOAIO.js';
|
|
12
12
|
import { DEFAULT_MAX_BYTES_PER_FILE, runDiscovery, truncateWithMarker } from './chunk-YUQNHLKN.js';
|
|
13
13
|
import { warnFailureOnce, loadHookConfig, warnOnce } from './chunk-S7IZEVXX.js';
|
|
@@ -30,10 +30,10 @@ import { loadSubagents, pluginBundleDirs } from './chunk-MTNCJ7MQ.js';
|
|
|
30
30
|
import { reportUndeclaredSources, theokitConfigRoot, undefinedVariablesIn, getTheokitHome, adapterForConfigPath, adaptersForSurface, projectConfigRoots, pluginBundleRoots } from './chunk-PISZRLES.js';
|
|
31
31
|
import { readWorkspaceDir, parseSimpleYaml } from './chunk-TIYQDJFK.js';
|
|
32
32
|
import { resolveEffectiveContextWindow, CONTEXT_WINDOW_FLOOR, CONTEXT_WINDOW_MARGIN } from './chunk-SZQFCHU6.js';
|
|
33
|
-
import { isAnthropicFamilyModel } from './chunk-
|
|
33
|
+
import { isAnthropicFamilyModel } from './chunk-4XYCF5PA.js';
|
|
34
34
|
import { parseModelId } from './chunk-R7WIIPUR.js';
|
|
35
|
-
import { getProviderProfile } from './chunk-
|
|
36
|
-
import { getCatalogModelInfo, isPatchedModelKey } from './chunk-
|
|
35
|
+
import { getProviderProfile } from './chunk-UNUGF36D.js';
|
|
36
|
+
import { getCatalogModelInfo, isPatchedModelKey } from './chunk-A3T2A2WU.js';
|
|
37
37
|
import { globalSingleton } from './chunk-AGACYRJ2.js';
|
|
38
38
|
import { boundFetch } from './chunk-Q7GYMXVC.js';
|
|
39
39
|
import { AgentRunError, coerceToKnownAgentRunErrorCode, UnknownAgentError, ConfigurationError, AuthenticationError, AgentDisposedError, UnsupportedRunOperationError, TheokitAgentError, NetworkError } from './chunk-TNFOU6SB.js';
|
|
@@ -11659,7 +11659,7 @@ var Agent = class _Agent {
|
|
|
11659
11659
|
*/
|
|
11660
11660
|
static async compact(agentId, options = {}) {
|
|
11661
11661
|
const reg = await requireLocalAgent(agentId, "compact");
|
|
11662
|
-
const { compactSessionTranscript, buildDefaultSummarizer: buildDefaultSummarizer2 } = await import('./compact-session-
|
|
11662
|
+
const { compactSessionTranscript, buildDefaultSummarizer: buildDefaultSummarizer2 } = await import('./compact-session-XPJS27JD.js');
|
|
11663
11663
|
const { cwd, model, store } = await openLocalStore(reg);
|
|
11664
11664
|
return enqueueSessionWrite(
|
|
11665
11665
|
cwd,
|
|
@@ -11689,7 +11689,7 @@ var Agent = class _Agent {
|
|
|
11689
11689
|
*/
|
|
11690
11690
|
static async injectSessionTurn(agentId, turn) {
|
|
11691
11691
|
const reg = await requireLocalAgent(agentId, "injectSessionTurn");
|
|
11692
|
-
const { injectSessionTurn } = await import('./inject-session-
|
|
11692
|
+
const { injectSessionTurn } = await import('./inject-session-SCJ6MTUT.js');
|
|
11693
11693
|
const { cwd, model, store } = await openLocalStore(reg);
|
|
11694
11694
|
await injectSessionTurn({
|
|
11695
11695
|
store,
|
|
@@ -11849,5 +11849,5 @@ async function openLocalStore(reg) {
|
|
|
11849
11849
|
}
|
|
11850
11850
|
|
|
11851
11851
|
export { Agent, AgentBuilder, DEFAULT_AGENTIC_MODEL_ID, MEMORY_EMBEDDING_ADAPTERS, Tool, ToolError, UsageAccumulator, computeCost, generateCronId, getPricingEntry, managedSettingsPathFor, openRouterMemoryEmbeddingProviderAdapter, readManagedSettings, resolveSessionDir };
|
|
11852
|
-
//# sourceMappingURL=chunk-
|
|
11853
|
-
//# sourceMappingURL=chunk-
|
|
11852
|
+
//# sourceMappingURL=chunk-NHD5IN3E.js.map
|
|
11853
|
+
//# sourceMappingURL=chunk-NHD5IN3E.js.map
|