@theokit/sdk 4.26.0 → 4.28.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/{judge-call-QG4WZ7F3.cjs → chunk-4GTXATWK.cjs} +2 -3
- package/dist/chunk-4GTXATWK.cjs.map +1 -0
- package/dist/{judge-call-CEQ3FYYD.js → chunk-CR3DGWUQ.js} +2 -3
- package/dist/chunk-CR3DGWUQ.js.map +1 -0
- package/dist/{chunk-R43CNCES.cjs → chunk-I53QDJVI.cjs} +5 -5
- package/dist/{chunk-R43CNCES.cjs.map → chunk-I53QDJVI.cjs.map} +1 -1
- package/dist/{chunk-KDNBTPY2.js → chunk-PF5Y5BHG.js} +3 -3
- package/dist/{chunk-KDNBTPY2.js.map → chunk-PF5Y5BHG.js.map} +1 -1
- package/dist/{chunk-ZUBIEQJF.cjs → chunk-PN53WGEI.cjs} +7 -7
- package/dist/{chunk-ZUBIEQJF.cjs.map → chunk-PN53WGEI.cjs.map} +1 -1
- package/dist/{chunk-PSJN532Q.js → chunk-XW6RXVGB.js} +5 -5
- package/dist/{chunk-PSJN532Q.js.map → chunk-XW6RXVGB.js.map} +1 -1
- package/dist/{cron-DivRaEmN.d.ts → cron-BN6JJlDw.d.ts} +41 -1
- package/dist/{cron-D0JKR-yX.d.cts → cron-CoQREV_k.d.cts} +41 -1
- package/dist/cron.cjs +3 -3
- package/dist/cron.d.cts +1 -1
- package/dist/cron.d.ts +1 -1
- package/dist/cron.js +2 -2
- package/dist/eval.cjs +2 -2
- package/dist/eval.js +1 -1
- package/dist/index.cjs +27 -22
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +16 -17
- package/dist/index.d.ts +16 -17
- package/dist/index.js +6 -5
- package/dist/index.js.map +1 -1
- package/dist/internal/runtime/lifecycle/run-until.d.ts +1 -2
- package/dist/internal/runtime/lifecycle/wrap-completion-check-run.d.ts +1 -1
- package/dist/judge-call-2FULQ6KL.cjs +22 -0
- package/dist/judge-call-2FULQ6KL.cjs.map +1 -0
- package/dist/judge-call-D7R3ZTZS.js +5 -0
- package/dist/judge-call-D7R3ZTZS.js.map +1 -0
- package/dist/{run-until-XLHEHRQM.js → run-until-YZ2ODWOF.js} +3 -2
- package/dist/run-until-YZ2ODWOF.js.map +1 -0
- package/dist/{run-until-PNO3QQLI.cjs → run-until-ZZ2JLPJM.cjs} +3 -2
- package/dist/run-until-ZZ2JLPJM.cjs.map +1 -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/dist/types/goal-events.d.ts +40 -0
- package/package.json +1 -1
- package/dist/internal/judge/types.d.ts +0 -17
- package/dist/judge-call-CEQ3FYYD.js.map +0 -1
- package/dist/judge-call-QG4WZ7F3.cjs.map +0 -1
- package/dist/run-until-PNO3QQLI.cjs.map +0 -1
- package/dist/run-until-XLHEHRQM.js.map +0 -1
|
@@ -547,6 +547,38 @@ interface ForkResult {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
+
/**
|
|
551
|
+
* M80 — os verdicts terminais que um judge pode devolver.
|
|
552
|
+
*
|
|
553
|
+
* `"blocked"` entrou aqui neste milestone. `GoalResult.status` já o carregava, mas o judge não tinha
|
|
554
|
+
* como EMITI-LO: seu vocabulário era `done | continue | skipped`, então diante de um bloqueio real
|
|
555
|
+
* ele só podia dizer `continue` — e o loop repetia o mesmo turno até estourar o orçamento,
|
|
556
|
+
* reportando `failed` por limite em vez de `blocked` por impossibilidade. Duas causas diferentes com
|
|
557
|
+
* o mesmo desfecho visível.
|
|
558
|
+
*
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
561
|
+
type Verdict = "done" | "continue" | "skipped" | "blocked";
|
|
562
|
+
/**
|
|
563
|
+
* M80 — resultado de uma chamada ao judge, agora público.
|
|
564
|
+
*
|
|
565
|
+
* Era `internal/`, então um consumidor que quisesse tipar o retorno — para reagir a `blocked` sem
|
|
566
|
+
* string mágica — precisava redeclarar a forma. É a mesma duplicação que o M78 fechou para a
|
|
567
|
+
* hierarquia de erro: sem superfície pública, reimplementar é a única saída legal para quem está
|
|
568
|
+
* atrás da fronteira de camadas.
|
|
569
|
+
*
|
|
570
|
+
* @public
|
|
571
|
+
*/
|
|
572
|
+
interface JudgeResult {
|
|
573
|
+
verdict: Verdict;
|
|
574
|
+
reason: string;
|
|
575
|
+
/**
|
|
576
|
+
* `true` quando o texto não começou com um dos prefixos canônicos. O verdict vira `"continue"`
|
|
577
|
+
* (fail-safe) para não parar cedo demais; o chamador conta falhas consecutivas e desiste via
|
|
578
|
+
* `maxConsecutiveJudgeFailures`.
|
|
579
|
+
*/
|
|
580
|
+
parseFailed: boolean;
|
|
581
|
+
}
|
|
550
582
|
/**
|
|
551
583
|
* Public event types emitted by {@link SDKAgent.runUntil} (ADRs D115-D117).
|
|
552
584
|
*
|
|
@@ -642,6 +674,14 @@ interface GoalOptions {
|
|
|
642
674
|
judgeModel?: string;
|
|
643
675
|
/** Override env for the judge auxiliary agent. Default `OPENROUTER_API_KEY` (EC-A). */
|
|
644
676
|
judgeApiKey?: string;
|
|
677
|
+
/**
|
|
678
|
+
* M80 — o modelo do agente CONDUZIDO, base da derivação do judge quando `judgeModel` é omitido.
|
|
679
|
+
*
|
|
680
|
+
* Existe porque o default fixo (`openai/gpt-4o-mini`) só resolve em OpenRouter: com chave
|
|
681
|
+
* Anthropic dá 404, com bearer OAuth dá 401, e o goal queimava 3 turnos antes de falhar com razão
|
|
682
|
+
* enganosa. Um judge que roda no mesmo modelo do chat funciona onde o chat funciona.
|
|
683
|
+
*/
|
|
684
|
+
agentModel?: string;
|
|
645
685
|
/** Optional subgoals fed to the judge prompt. */
|
|
646
686
|
subgoals?: string[];
|
|
647
687
|
/**
|
|
@@ -2594,4 +2634,4 @@ declare class Cron {
|
|
|
2594
2634
|
static status(_options?: CronStartOptions): Promise<CronSchedulerStatus>;
|
|
2595
2635
|
}
|
|
2596
2636
|
|
|
2597
|
-
export { type
|
|
2637
|
+
export { type CronRuntime as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type BudgetUsageEvent as D, type CloudEnv as E, type CloudRepo as F, type GetAgentOptions as G, type ContextBudget as H, type InlineSkill as I, type JudgeResult as J, type ContextManagerKind as K, type LocalOptions as L, type MemorySettings as M, type ContextSnapshot as N, type ContextSource as O, type ProviderRoutingSettings as P, type ContextSourceStatus as Q, type CreateSkillSpec as R, type SystemPromptResolver as S, Cron as T, type CronCreateOptions as U, type CronGetOptions as V, type CronJob as W, type CronJobStatus as X, type CronListOptions as Y, type CronOperationOptions as Z, type CronRunOptions as _, type AgentDefinition as a, type CronSchedulerStatus as a0, type CronStartOptions as a1, type HookName as a2, type InvalidateCacheOptions as a3, type MemoryAdapter as a4, type MemoryAdapterCapabilities as a5, type MemoryContext as a6, type MemoryFact as a7, type MemoryProviderHandle as a8, type MemoryProviderInitOptions as a9, Skill as aA, type SkillsResolver as aB, type SkillsResolverContext as aC, type SystemPromptContext as aD, type SystemPromptMemoryFact as aE, type SystemPromptSkillRef as aF, type TelemetrySettings as aG, type Verdict as aH, type MemoryRevision as aa, type MemoryToolSchema as ab, type MemoryTurnMessage as ac, type PersonalityPreset as ad, type PluginContext as ae, type PostAssistantReplyContext as af, type PreToolCallContext as ag, type PreUserSendContext as ah, type PreUserSendResult as ai, type ProviderCapability as aj, type ProviderRoute as ak, type ProviderTransform as al, type ProviderTransformContext as am, type RecordSessionSummaryArgs as an, type ResolvedProviderRoute as ao, type RunUntilIterator as ap, type SDKAgentPlugins as aq, type SDKAgentSkillDetail as ar, type SDKAgentSkills as as, type SDKArtifact as at, type SDKContextManager as au, type SDKPluginMetadata as av, type SDKProvidersManager as aw, type SessionRecord as ax, type SessionStore as ay, type SettingSource as az, type ContextSettings as b, type PluginsSettings as c, type SkillsSettings as d, type SDKAgent as e, type ListAgentsOptions as f, type ListResult as g, type SDKAgentInfo as h, type ListRunsOptions as i, type GetRunOptions as j, type AgentOperationOptions as k, type Plugin as l, type ProviderProfile as m, type GoalOptions as n, type GoalEvent as o, type GoalResult as p, type MemoryProvider as q, type MemoryId as r, type PreToolCallDecision as s, type StepResult as t, type SDKProvider as u, type ActiveMemoryPassArgs as v, type ActiveMemoryPassResult as w, type AgentMemory as x, type BudgetCheck as y, type BudgetTotal as z };
|
|
@@ -547,6 +547,38 @@ interface ForkResult {
|
|
|
547
547
|
};
|
|
548
548
|
}
|
|
549
549
|
|
|
550
|
+
/**
|
|
551
|
+
* M80 — os verdicts terminais que um judge pode devolver.
|
|
552
|
+
*
|
|
553
|
+
* `"blocked"` entrou aqui neste milestone. `GoalResult.status` já o carregava, mas o judge não tinha
|
|
554
|
+
* como EMITI-LO: seu vocabulário era `done | continue | skipped`, então diante de um bloqueio real
|
|
555
|
+
* ele só podia dizer `continue` — e o loop repetia o mesmo turno até estourar o orçamento,
|
|
556
|
+
* reportando `failed` por limite em vez de `blocked` por impossibilidade. Duas causas diferentes com
|
|
557
|
+
* o mesmo desfecho visível.
|
|
558
|
+
*
|
|
559
|
+
* @public
|
|
560
|
+
*/
|
|
561
|
+
type Verdict = "done" | "continue" | "skipped" | "blocked";
|
|
562
|
+
/**
|
|
563
|
+
* M80 — resultado de uma chamada ao judge, agora público.
|
|
564
|
+
*
|
|
565
|
+
* Era `internal/`, então um consumidor que quisesse tipar o retorno — para reagir a `blocked` sem
|
|
566
|
+
* string mágica — precisava redeclarar a forma. É a mesma duplicação que o M78 fechou para a
|
|
567
|
+
* hierarquia de erro: sem superfície pública, reimplementar é a única saída legal para quem está
|
|
568
|
+
* atrás da fronteira de camadas.
|
|
569
|
+
*
|
|
570
|
+
* @public
|
|
571
|
+
*/
|
|
572
|
+
interface JudgeResult {
|
|
573
|
+
verdict: Verdict;
|
|
574
|
+
reason: string;
|
|
575
|
+
/**
|
|
576
|
+
* `true` quando o texto não começou com um dos prefixos canônicos. O verdict vira `"continue"`
|
|
577
|
+
* (fail-safe) para não parar cedo demais; o chamador conta falhas consecutivas e desiste via
|
|
578
|
+
* `maxConsecutiveJudgeFailures`.
|
|
579
|
+
*/
|
|
580
|
+
parseFailed: boolean;
|
|
581
|
+
}
|
|
550
582
|
/**
|
|
551
583
|
* Public event types emitted by {@link SDKAgent.runUntil} (ADRs D115-D117).
|
|
552
584
|
*
|
|
@@ -642,6 +674,14 @@ interface GoalOptions {
|
|
|
642
674
|
judgeModel?: string;
|
|
643
675
|
/** Override env for the judge auxiliary agent. Default `OPENROUTER_API_KEY` (EC-A). */
|
|
644
676
|
judgeApiKey?: string;
|
|
677
|
+
/**
|
|
678
|
+
* M80 — o modelo do agente CONDUZIDO, base da derivação do judge quando `judgeModel` é omitido.
|
|
679
|
+
*
|
|
680
|
+
* Existe porque o default fixo (`openai/gpt-4o-mini`) só resolve em OpenRouter: com chave
|
|
681
|
+
* Anthropic dá 404, com bearer OAuth dá 401, e o goal queimava 3 turnos antes de falhar com razão
|
|
682
|
+
* enganosa. Um judge que roda no mesmo modelo do chat funciona onde o chat funciona.
|
|
683
|
+
*/
|
|
684
|
+
agentModel?: string;
|
|
645
685
|
/** Optional subgoals fed to the judge prompt. */
|
|
646
686
|
subgoals?: string[];
|
|
647
687
|
/**
|
|
@@ -2594,4 +2634,4 @@ declare class Cron {
|
|
|
2594
2634
|
static status(_options?: CronStartOptions): Promise<CronSchedulerStatus>;
|
|
2595
2635
|
}
|
|
2596
2636
|
|
|
2597
|
-
export { type
|
|
2637
|
+
export { type CronRuntime as $, type AgentOptions as A, type BudgetTracker as B, type CloudOptions as C, type BudgetUsageEvent as D, type CloudEnv as E, type CloudRepo as F, type GetAgentOptions as G, type ContextBudget as H, type InlineSkill as I, type JudgeResult as J, type ContextManagerKind as K, type LocalOptions as L, type MemorySettings as M, type ContextSnapshot as N, type ContextSource as O, type ProviderRoutingSettings as P, type ContextSourceStatus as Q, type CreateSkillSpec as R, type SystemPromptResolver as S, Cron as T, type CronCreateOptions as U, type CronGetOptions as V, type CronJob as W, type CronJobStatus as X, type CronListOptions as Y, type CronOperationOptions as Z, type CronRunOptions as _, type AgentDefinition as a, type CronSchedulerStatus as a0, type CronStartOptions as a1, type HookName as a2, type InvalidateCacheOptions as a3, type MemoryAdapter as a4, type MemoryAdapterCapabilities as a5, type MemoryContext as a6, type MemoryFact as a7, type MemoryProviderHandle as a8, type MemoryProviderInitOptions as a9, Skill as aA, type SkillsResolver as aB, type SkillsResolverContext as aC, type SystemPromptContext as aD, type SystemPromptMemoryFact as aE, type SystemPromptSkillRef as aF, type TelemetrySettings as aG, type Verdict as aH, type MemoryRevision as aa, type MemoryToolSchema as ab, type MemoryTurnMessage as ac, type PersonalityPreset as ad, type PluginContext as ae, type PostAssistantReplyContext as af, type PreToolCallContext as ag, type PreUserSendContext as ah, type PreUserSendResult as ai, type ProviderCapability as aj, type ProviderRoute as ak, type ProviderTransform as al, type ProviderTransformContext as am, type RecordSessionSummaryArgs as an, type ResolvedProviderRoute as ao, type RunUntilIterator as ap, type SDKAgentPlugins as aq, type SDKAgentSkillDetail as ar, type SDKAgentSkills as as, type SDKArtifact as at, type SDKContextManager as au, type SDKPluginMetadata as av, type SDKProvidersManager as aw, type SessionRecord as ax, type SessionStore as ay, type SettingSource as az, type ContextSettings as b, type PluginsSettings as c, type SkillsSettings as d, type SDKAgent as e, type ListAgentsOptions as f, type ListResult as g, type SDKAgentInfo as h, type ListRunsOptions as i, type GetRunOptions as j, type AgentOperationOptions as k, type Plugin as l, type ProviderProfile as m, type GoalOptions as n, type GoalEvent as o, type GoalResult as p, type MemoryProvider as q, type MemoryId as r, type PreToolCallDecision as s, type StepResult as t, type SDKProvider as u, type ActiveMemoryPassArgs as v, type ActiveMemoryPassResult as w, type AgentMemory as x, type BudgetCheck as y, type BudgetTotal as z };
|
package/dist/cron.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkI53QDJVI_cjs = require('./chunk-I53QDJVI.cjs');
|
|
4
|
+
require('./chunk-PN53WGEI.cjs');
|
|
5
5
|
require('./chunk-MZ5ZRORA.cjs');
|
|
6
6
|
require('./chunk-YU6KON2I.cjs');
|
|
7
7
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -43,7 +43,7 @@ require('./chunk-BEURCLDV.cjs');
|
|
|
43
43
|
|
|
44
44
|
Object.defineProperty(exports, "Cron", {
|
|
45
45
|
enumerable: true,
|
|
46
|
-
get: function () { return
|
|
46
|
+
get: function () { return chunkI53QDJVI_cjs.Cron; }
|
|
47
47
|
});
|
|
48
48
|
//# sourceMappingURL=cron.cjs.map
|
|
49
49
|
//# sourceMappingURL=cron.cjs.map
|
package/dist/cron.d.cts
CHANGED
package/dist/cron.d.ts
CHANGED
package/dist/cron.js
CHANGED
package/dist/eval.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkS7OEXQMI_cjs = require('./chunk-S7OEXQMI.cjs');
|
|
4
4
|
var chunkQUTUJ6P6_cjs = require('./chunk-QUTUJ6P6.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkPN53WGEI_cjs = require('./chunk-PN53WGEI.cjs');
|
|
6
6
|
require('./chunk-MZ5ZRORA.cjs');
|
|
7
7
|
require('./chunk-YU6KON2I.cjs');
|
|
8
8
|
var chunkBUUUWQMB_cjs = require('./chunk-BUUUWQMB.cjs');
|
|
@@ -766,7 +766,7 @@ function makeDefaultEmbedder(opts) {
|
|
|
766
766
|
let runtime;
|
|
767
767
|
return (texts) => {
|
|
768
768
|
if (runtime === void 0) {
|
|
769
|
-
runtime =
|
|
769
|
+
runtime = chunkPN53WGEI_cjs.openRouterMemoryEmbeddingProviderAdapter.create(embedderCreateOptions(opts));
|
|
770
770
|
}
|
|
771
771
|
return runtime.then((rt) => rt.embed(texts));
|
|
772
772
|
};
|
package/dist/eval.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { shellEscapePosix, LocalSandbox } from './chunk-SKWVAQAY.js';
|
|
2
2
|
import { readJsonlIds, appendJsonl } from './chunk-DUK5WMKJ.js';
|
|
3
3
|
export { JsonlParseError, loadJsonl } from './chunk-DUK5WMKJ.js';
|
|
4
|
-
import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-
|
|
4
|
+
import { openRouterMemoryEmbeddingProviderAdapter } from './chunk-XW6RXVGB.js';
|
|
5
5
|
import './chunk-HRA3CPGG.js';
|
|
6
6
|
import './chunk-SQLZ7ONU.js';
|
|
7
7
|
import { getTracer } from './chunk-K2BQQ445.js';
|
package/dist/index.cjs
CHANGED
|
@@ -2,13 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
var chunk4WL52CXU_cjs = require('./chunk-4WL52CXU.cjs');
|
|
4
4
|
var chunkYPQF26X7_cjs = require('./chunk-YPQF26X7.cjs');
|
|
5
|
+
var chunk4GTXATWK_cjs = require('./chunk-4GTXATWK.cjs');
|
|
5
6
|
var chunk6M4ODB2V_cjs = require('./chunk-6M4ODB2V.cjs');
|
|
6
7
|
require('./chunk-EPYZOCOL.cjs');
|
|
7
8
|
var chunkZ2OC3UIW_cjs = require('./chunk-Z2OC3UIW.cjs');
|
|
8
9
|
require('./chunk-BWT67BI4.cjs');
|
|
9
10
|
require('./chunk-PNVDQL5Y.cjs');
|
|
10
|
-
var
|
|
11
|
-
var
|
|
11
|
+
var chunkI53QDJVI_cjs = require('./chunk-I53QDJVI.cjs');
|
|
12
|
+
var chunkPN53WGEI_cjs = require('./chunk-PN53WGEI.cjs');
|
|
12
13
|
var chunkMZ5ZRORA_cjs = require('./chunk-MZ5ZRORA.cjs');
|
|
13
14
|
require('./chunk-YU6KON2I.cjs');
|
|
14
15
|
require('./chunk-BUUUWQMB.cjs');
|
|
@@ -54,8 +55,8 @@ var fs = require('fs');
|
|
|
54
55
|
// src/agent-factory.ts
|
|
55
56
|
function createAgentFactory(common) {
|
|
56
57
|
return {
|
|
57
|
-
forSession: (agentId, overrides) =>
|
|
58
|
-
getOrCreate: (agentId, overrides) =>
|
|
58
|
+
forSession: (agentId, overrides) => chunkPN53WGEI_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
59
|
+
getOrCreate: (agentId, overrides) => chunkPN53WGEI_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
59
60
|
};
|
|
60
61
|
}
|
|
61
62
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -692,9 +693,9 @@ var EventBus = class {
|
|
|
692
693
|
// src/goal-loop.ts
|
|
693
694
|
function runGoalLoop(agent, goal, options, depsOverride) {
|
|
694
695
|
async function* wrap() {
|
|
695
|
-
const { runUntilImpl } = await import('./run-until-
|
|
696
|
+
const { runUntilImpl } = await import('./run-until-ZZ2JLPJM.cjs');
|
|
696
697
|
const deps = depsOverride ?? await (async () => {
|
|
697
|
-
const { judgeCallImpl } = await import('./judge-call-
|
|
698
|
+
const { judgeCallImpl } = await import('./judge-call-2FULQ6KL.cjs');
|
|
698
699
|
const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
|
|
699
700
|
const create = getAgentFacade().create;
|
|
700
701
|
return {
|
|
@@ -1142,7 +1143,7 @@ var Memory = {
|
|
|
1142
1143
|
return await peer.IndexManager.open(openArgs);
|
|
1143
1144
|
}
|
|
1144
1145
|
const { IndexManager } = await import('./index-manager-CB6I7XFQ.cjs');
|
|
1145
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1146
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkPN53WGEI_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1146
1147
|
return await IndexManager.open(openArgs);
|
|
1147
1148
|
},
|
|
1148
1149
|
/**
|
|
@@ -1153,7 +1154,7 @@ var Memory = {
|
|
|
1153
1154
|
*/
|
|
1154
1155
|
async runDreamingSweep(opts) {
|
|
1155
1156
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1156
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1157
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkPN53WGEI_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1157
1158
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1158
1159
|
const result = peer !== null ? (
|
|
1159
1160
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -1698,7 +1699,7 @@ var FIXTURE_USER = {
|
|
|
1698
1699
|
};
|
|
1699
1700
|
var FIXTURE_MODELS = [
|
|
1700
1701
|
{
|
|
1701
|
-
id:
|
|
1702
|
+
id: chunkPN53WGEI_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1702
1703
|
name: "Gemini 2.0 Flash",
|
|
1703
1704
|
displayName: "Gemini 2.0 Flash",
|
|
1704
1705
|
parameters: [
|
|
@@ -1906,7 +1907,7 @@ var Theokit = class {
|
|
|
1906
1907
|
envVars: p.envVars
|
|
1907
1908
|
}));
|
|
1908
1909
|
},
|
|
1909
|
-
embeddingAdapters: () => Object.entries(
|
|
1910
|
+
embeddingAdapters: () => Object.entries(chunkPN53WGEI_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
1910
1911
|
id,
|
|
1911
1912
|
transport: adapter.transport,
|
|
1912
1913
|
defaultModel: adapter.defaultModel
|
|
@@ -1938,17 +1939,17 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
|
|
|
1938
1939
|
return fallback;
|
|
1939
1940
|
}
|
|
1940
1941
|
async function executeCatalogRequest(request) {
|
|
1941
|
-
const apiKey =
|
|
1942
|
+
const apiKey = chunkPN53WGEI_cjs.resolveApiKey(request.apiKey);
|
|
1942
1943
|
if (apiKey === void 0) {
|
|
1943
1944
|
throw new chunkA44COQJJ_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
1944
1945
|
}
|
|
1945
|
-
if (
|
|
1946
|
+
if (chunkPN53WGEI_cjs.shouldUseFixtureMode(apiKey)) {
|
|
1946
1947
|
return request.fixture;
|
|
1947
1948
|
}
|
|
1948
|
-
if (!
|
|
1949
|
+
if (!chunkPN53WGEI_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
|
|
1949
1950
|
throw new chunkA44COQJJ_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
|
|
1950
1951
|
}
|
|
1951
|
-
return
|
|
1952
|
+
return chunkPN53WGEI_cjs.httpRequest(request.path, { apiKey });
|
|
1952
1953
|
}
|
|
1953
1954
|
|
|
1954
1955
|
// src/trajectory-helpers.ts
|
|
@@ -2054,41 +2055,45 @@ Object.defineProperty(exports, "GOAL_CONTINUATION_MARKER", {
|
|
|
2054
2055
|
enumerable: true,
|
|
2055
2056
|
get: function () { return chunkYPQF26X7_cjs.GOAL_CONTINUATION_MARKER; }
|
|
2056
2057
|
});
|
|
2058
|
+
Object.defineProperty(exports, "JudgeCredentialError", {
|
|
2059
|
+
enumerable: true,
|
|
2060
|
+
get: function () { return chunk4GTXATWK_cjs.JudgeCredentialError; }
|
|
2061
|
+
});
|
|
2057
2062
|
Object.defineProperty(exports, "GenerateObjectError", {
|
|
2058
2063
|
enumerable: true,
|
|
2059
2064
|
get: function () { return chunk6M4ODB2V_cjs.GenerateObjectError; }
|
|
2060
2065
|
});
|
|
2061
2066
|
Object.defineProperty(exports, "Cron", {
|
|
2062
2067
|
enumerable: true,
|
|
2063
|
-
get: function () { return
|
|
2068
|
+
get: function () { return chunkI53QDJVI_cjs.Cron; }
|
|
2064
2069
|
});
|
|
2065
2070
|
Object.defineProperty(exports, "Agent", {
|
|
2066
2071
|
enumerable: true,
|
|
2067
|
-
get: function () { return
|
|
2072
|
+
get: function () { return chunkPN53WGEI_cjs.Agent; }
|
|
2068
2073
|
});
|
|
2069
2074
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2070
2075
|
enumerable: true,
|
|
2071
|
-
get: function () { return
|
|
2076
|
+
get: function () { return chunkPN53WGEI_cjs.AgentBuilder; }
|
|
2072
2077
|
});
|
|
2073
2078
|
Object.defineProperty(exports, "Tool", {
|
|
2074
2079
|
enumerable: true,
|
|
2075
|
-
get: function () { return
|
|
2080
|
+
get: function () { return chunkPN53WGEI_cjs.Tool; }
|
|
2076
2081
|
});
|
|
2077
2082
|
Object.defineProperty(exports, "ToolError", {
|
|
2078
2083
|
enumerable: true,
|
|
2079
|
-
get: function () { return
|
|
2084
|
+
get: function () { return chunkPN53WGEI_cjs.ToolError; }
|
|
2080
2085
|
});
|
|
2081
2086
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2082
2087
|
enumerable: true,
|
|
2083
|
-
get: function () { return
|
|
2088
|
+
get: function () { return chunkPN53WGEI_cjs.UsageAccumulator; }
|
|
2084
2089
|
});
|
|
2085
2090
|
Object.defineProperty(exports, "computeCost", {
|
|
2086
2091
|
enumerable: true,
|
|
2087
|
-
get: function () { return
|
|
2092
|
+
get: function () { return chunkPN53WGEI_cjs.computeCost; }
|
|
2088
2093
|
});
|
|
2089
2094
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2090
2095
|
enumerable: true,
|
|
2091
|
-
get: function () { return
|
|
2096
|
+
get: function () { return chunkPN53WGEI_cjs.getPricingEntry; }
|
|
2092
2097
|
});
|
|
2093
2098
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2094
2099
|
enumerable: true,
|