@theokit/sdk 4.32.0 → 4.33.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 +15 -0
- package/dist/{agent-ES57DGAT.cjs → agent-2STDGKNI.cjs} +11 -10
- package/dist/{agent-ES57DGAT.cjs.map → agent-2STDGKNI.cjs.map} +1 -1
- package/dist/{agent-FBFPSBTX.js → agent-LFSVFAUI.js} +10 -9
- package/dist/{agent-FBFPSBTX.js.map → agent-LFSVFAUI.js.map} +1 -1
- package/dist/{chunk-DQSILMWU.cjs → chunk-2DYI7MIF.cjs} +2 -2
- package/dist/chunk-2DYI7MIF.cjs.map +1 -0
- package/dist/{chunk-OIYQBUW4.cjs → chunk-6M6A6WWW.cjs} +2 -2
- package/dist/{chunk-OIYQBUW4.cjs.map → chunk-6M6A6WWW.cjs.map} +1 -1
- package/dist/chunk-B3HUL2OQ.js +78 -0
- package/dist/chunk-B3HUL2OQ.js.map +1 -0
- package/dist/{chunk-I4QDIQ45.cjs → chunk-E33A7YIR.cjs} +28 -6
- package/dist/chunk-E33A7YIR.cjs.map +1 -0
- package/dist/chunk-FER7UMIC.cjs +75 -0
- package/dist/chunk-FER7UMIC.cjs.map +1 -0
- package/dist/{chunk-CVSNCUBU.cjs → chunk-FTRNHGAD.cjs} +11 -11
- package/dist/{chunk-CVSNCUBU.cjs.map → chunk-FTRNHGAD.cjs.map} +1 -1
- package/dist/{chunk-EVADEGM7.cjs → chunk-FX2DAR5R.cjs} +7 -5
- package/dist/chunk-FX2DAR5R.cjs.map +1 -0
- package/dist/{chunk-WA3FO4R7.js → chunk-GBCQ5742.js} +7 -6
- package/dist/chunk-GBCQ5742.js.map +1 -0
- package/dist/{chunk-JPG7NMNH.cjs → chunk-HTO4C32Q.cjs} +54 -48
- package/dist/chunk-HTO4C32Q.cjs.map +1 -0
- package/dist/{chunk-SQVQH4EK.js → chunk-KT6SWUY6.js} +4 -4
- package/dist/{chunk-SQVQH4EK.js.map → chunk-KT6SWUY6.js.map} +1 -1
- package/dist/chunk-LDDUIXWS.cjs +81 -0
- package/dist/chunk-LDDUIXWS.cjs.map +1 -0
- package/dist/chunk-OMDRRHRF.js +73 -0
- package/dist/chunk-OMDRRHRF.js.map +1 -0
- package/dist/{chunk-OQX2DG36.cjs → chunk-PZ4Q5K7O.cjs} +5 -5
- package/dist/{chunk-OQX2DG36.cjs.map → chunk-PZ4Q5K7O.cjs.map} +1 -1
- package/dist/{chunk-WPBTPSKQ.js → chunk-Q56IYTBZ.js} +2 -2
- package/dist/chunk-Q56IYTBZ.js.map +1 -0
- package/dist/{chunk-334WDVFZ.js → chunk-SDYJESYZ.js} +27 -6
- package/dist/chunk-SDYJESYZ.js.map +1 -0
- package/dist/{chunk-NI4PAMJQ.js → chunk-TKE4RTYA.js} +18 -12
- package/dist/chunk-TKE4RTYA.js.map +1 -0
- package/dist/{chunk-HBTEK5LK.js → chunk-WBGCDZDV.js} +3 -3
- package/dist/{chunk-HBTEK5LK.js.map → chunk-WBGCDZDV.js.map} +1 -1
- package/dist/{chunk-DGRZNMTU.js → chunk-XV2RBL6D.js} +2 -2
- package/dist/{chunk-DGRZNMTU.js.map → chunk-XV2RBL6D.js.map} +1 -1
- package/dist/{compact-session-OKXLKJIS.cjs → compact-session-24PK2G4M.cjs} +13 -13
- package/dist/{compact-session-OKXLKJIS.cjs.map → compact-session-24PK2G4M.cjs.map} +1 -1
- package/dist/{compact-session-UHGMWPMW.js → compact-session-J7VNCICZ.js} +5 -5
- package/dist/{compact-session-UHGMWPMW.js.map → compact-session-J7VNCICZ.js.map} +1 -1
- package/dist/compaction.cjs +17 -13
- package/dist/compaction.d.cts +8 -0
- package/dist/compaction.d.ts +8 -0
- package/dist/compaction.js +1 -1
- package/dist/cron.cjs +10 -9
- package/dist/cron.js +9 -8
- package/dist/eval.cjs +9 -8
- package/dist/eval.cjs.map +1 -1
- package/dist/eval.js +8 -7
- package/dist/eval.js.map +1 -1
- package/dist/fs-session-store-MZ4GD2C6.js +10 -0
- package/dist/{fs-session-store-2J5JOXC2.js.map → fs-session-store-MZ4GD2C6.js.map} +1 -1
- package/dist/fs-session-store-YMBSJ5Y7.cjs +19 -0
- package/dist/{fs-session-store-DNAJ6RQG.cjs.map → fs-session-store-YMBSJ5Y7.cjs.map} +1 -1
- package/dist/index.cjs +35 -35
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +15 -15
- package/dist/index.js.map +1 -1
- package/dist/{inject-session-24FJ65LP.cjs → inject-session-343WIDCM.cjs} +6 -6
- package/dist/{inject-session-24FJ65LP.cjs.map → inject-session-343WIDCM.cjs.map} +1 -1
- package/dist/{inject-session-JXQO33T3.js → inject-session-RZEDWO53.js} +4 -4
- package/dist/{inject-session-JXQO33T3.js.map → inject-session-RZEDWO53.js.map} +1 -1
- package/dist/internal/local-agent/local-agent.d.ts +93 -1
- package/dist/internal/persistence/fs-session-store.d.cts +16 -0
- package/dist/internal/persistence/fs-session-store.d.ts +16 -0
- package/dist/internal/persistence/index.cjs +7 -7
- package/dist/internal/persistence/index.js +1 -1
- package/dist/internal/persistence/paths.d.cts +11 -1
- package/dist/internal/persistence/paths.d.ts +11 -1
- package/dist/internal/persistence/session-writer.d.cts +8 -0
- package/dist/internal/persistence/session-writer.d.ts +8 -0
- package/dist/internal/session/agent-session.d.ts +22 -0
- package/dist/persistence.cjs +13 -39
- package/dist/persistence.cjs.map +1 -1
- package/dist/persistence.d.cts +1 -1
- package/dist/persistence.d.ts +1 -1
- package/dist/persistence.js +4 -36
- package/dist/persistence.js.map +1 -1
- package/dist/{session-transcript-QS6CXHHD.js → session-transcript-F2ANTA2M.js} +3 -3
- package/dist/{session-transcript-QS6CXHHD.js.map → session-transcript-F2ANTA2M.js.map} +1 -1
- package/dist/{session-transcript-F5OXXO6G.cjs → session-transcript-JXFMPLOT.cjs} +13 -13
- package/dist/{session-transcript-F5OXXO6G.cjs.map → session-transcript-JXFMPLOT.cjs.map} +1 -1
- package/package.json +1 -1
- package/dist/chunk-334WDVFZ.js.map +0 -1
- package/dist/chunk-DQSILMWU.cjs.map +0 -1
- package/dist/chunk-EIPSZ4GA.js +0 -28
- package/dist/chunk-EIPSZ4GA.js.map +0 -1
- package/dist/chunk-EVADEGM7.cjs.map +0 -1
- package/dist/chunk-HCXDDR6P.cjs +0 -30
- package/dist/chunk-HCXDDR6P.cjs.map +0 -1
- package/dist/chunk-I4QDIQ45.cjs.map +0 -1
- package/dist/chunk-JPG7NMNH.cjs.map +0 -1
- package/dist/chunk-NI4PAMJQ.js.map +0 -1
- package/dist/chunk-WA3FO4R7.js.map +0 -1
- package/dist/chunk-WPBTPSKQ.js.map +0 -1
- package/dist/fs-session-store-2J5JOXC2.js +0 -8
- package/dist/fs-session-store-DNAJ6RQG.cjs +0 -17
package/dist/index.js
CHANGED
|
@@ -6,22 +6,22 @@ import './chunk-GJAGKFTR.js';
|
|
|
6
6
|
import { Workflow, agentStep } from './chunk-BFWPZMG7.js';
|
|
7
7
|
import './chunk-UVNG67DG.js';
|
|
8
8
|
import './chunk-CAH3G4IS.js';
|
|
9
|
-
export { Cron } from './chunk-
|
|
10
|
-
import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, shouldUseFixtureMode, isFixtureApiKey, httpRequest, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-
|
|
11
|
-
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-
|
|
9
|
+
export { Cron } from './chunk-WBGCDZDV.js';
|
|
10
|
+
import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, shouldUseFixtureMode, isFixtureApiKey, httpRequest, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-TKE4RTYA.js';
|
|
11
|
+
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-TKE4RTYA.js';
|
|
12
12
|
import './chunk-2SFBB54R.js';
|
|
13
13
|
import { configure, submit, list, get, cancel, subscribe } from './chunk-HRA3CPGG.js';
|
|
14
14
|
export { emitRunEvent } from './chunk-HRA3CPGG.js';
|
|
15
|
-
import './chunk-
|
|
15
|
+
import './chunk-SDYJESYZ.js';
|
|
16
16
|
import './chunk-K2BQQ445.js';
|
|
17
|
-
import './chunk-
|
|
18
|
-
import { discoverProviderPlugins, mapOllamaTransportError, mapOllamaHttpError } from './chunk-
|
|
17
|
+
import './chunk-OMDRRHRF.js';
|
|
18
|
+
import { discoverProviderPlugins, mapOllamaTransportError, mapOllamaHttpError } from './chunk-KT6SWUY6.js';
|
|
19
19
|
import './chunk-6CLRANZA.js';
|
|
20
20
|
import './chunk-EEZ7CFMM.js';
|
|
21
21
|
import { lanceStoragePath, LanceIndex, readFactsFromMarkdown, defaultIndexPath, openMemoryDb, memoryDir } from './chunk-XAUBQMQU.js';
|
|
22
22
|
import './chunk-XIG2IE3L.js';
|
|
23
23
|
import './chunk-7GFX45DD.js';
|
|
24
|
-
import './chunk-
|
|
24
|
+
import './chunk-XV2RBL6D.js';
|
|
25
25
|
import './chunk-FD2UT76F.js';
|
|
26
26
|
import './chunk-U54XCYG3.js';
|
|
27
27
|
import './chunk-FV3YEMQ7.js';
|
|
@@ -30,17 +30,18 @@ import './chunk-UJ7IQJAG.js';
|
|
|
30
30
|
import './chunk-7AD3ZTZL.js';
|
|
31
31
|
import './chunk-V4XRLPEF.js';
|
|
32
32
|
import './chunk-5PZMMF4H.js';
|
|
33
|
+
import './chunk-B3HUL2OQ.js';
|
|
33
34
|
import './chunk-UAYYNWYJ.js';
|
|
34
35
|
import './chunk-77FOZCOT.js';
|
|
35
36
|
import { withCwdMutex } from './chunk-2XLKLVVR.js';
|
|
36
37
|
export { withCwdMutex } from './chunk-2XLKLVVR.js';
|
|
37
|
-
import './chunk-
|
|
38
|
+
import './chunk-Q56IYTBZ.js';
|
|
38
39
|
import './chunk-BXV2QUIC.js';
|
|
39
40
|
import { toJsonSchema } from './chunk-4VPXM6UU.js';
|
|
40
41
|
import { replaceFileAtomic } from './chunk-S2BBRVQX.js';
|
|
41
42
|
import './chunk-BNIFFFH3.js';
|
|
42
|
-
import './chunk-
|
|
43
|
-
import './chunk-X2FR4OIT.js';
|
|
43
|
+
import './chunk-GBCQ5742.js';
|
|
44
|
+
import { parseModelId } from './chunk-X2FR4OIT.js';
|
|
44
45
|
import { registerBuiltins, listProviders, getCatalogCapabilities, getProviderProfile } from './chunk-KAP4GJHO.js';
|
|
45
46
|
import './chunk-LU7VALW5.js';
|
|
46
47
|
import './chunk-5NBUH3NO.js';
|
|
@@ -607,10 +608,9 @@ var Provider = class _Provider {
|
|
|
607
608
|
* @public
|
|
608
609
|
*/
|
|
609
610
|
static forModel(modelId) {
|
|
610
|
-
const
|
|
611
|
-
if (
|
|
612
|
-
|
|
613
|
-
return _Provider.builtins().find((p) => p.name === nome);
|
|
611
|
+
const { provider } = parseModelId(modelId);
|
|
612
|
+
if (provider === void 0) return void 0;
|
|
613
|
+
return _Provider.builtins().find((p) => p.name === provider);
|
|
614
614
|
}
|
|
615
615
|
};
|
|
616
616
|
var SkillReadInputSchema = z.object({
|
|
@@ -1600,7 +1600,7 @@ function ehAgenteConstruido(m) {
|
|
|
1600
1600
|
return typeof m.send === "function";
|
|
1601
1601
|
}
|
|
1602
1602
|
async function materializar(def, indice) {
|
|
1603
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1603
|
+
const { Agent: Agent2 } = await import('./agent-LFSVFAUI.js');
|
|
1604
1604
|
return Agent2.create({
|
|
1605
1605
|
// `AgentDefinition.model` admite o sentinel `'inherit'`, que não é um id de modelo. Herdar
|
|
1606
1606
|
// aqui significa "não declare nada e deixe o default valer" — passar o literal adiante criaria
|