@theokit/sdk 4.39.2 → 4.39.4
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 +40 -0
- package/dist/{agent-TOWHPM7B.cjs → agent-DB245YMC.cjs} +9 -9
- package/dist/{agent-TOWHPM7B.cjs.map → agent-DB245YMC.cjs.map} +1 -1
- package/dist/{agent-KGKKAGXY.js → agent-UNWZCXBS.js} +8 -8
- package/dist/{agent-KGKKAGXY.js.map → agent-UNWZCXBS.js.map} +1 -1
- package/dist/{chunk-AFJAQ5JV.js → chunk-23HI77BZ.js} +8 -3
- package/dist/chunk-23HI77BZ.js.map +1 -0
- package/dist/{chunk-RTDT2UMT.js → chunk-5VKUZ26Q.js} +22 -7
- package/dist/chunk-5VKUZ26Q.js.map +1 -0
- package/dist/{chunk-TZ47DTM2.cjs → chunk-KV3HR7KL.cjs} +5 -5
- package/dist/{chunk-TZ47DTM2.cjs.map → chunk-KV3HR7KL.cjs.map} +1 -1
- package/dist/{chunk-Z5DYGBPV.cjs → chunk-N4JNY5DT.cjs} +3 -3
- package/dist/{chunk-Z5DYGBPV.cjs.map → chunk-N4JNY5DT.cjs.map} +1 -1
- package/dist/{chunk-7HP6N5X3.js → chunk-ONVIALVV.js} +3 -3
- package/dist/{chunk-7HP6N5X3.js.map → chunk-ONVIALVV.js.map} +1 -1
- package/dist/{chunk-MDN44YMZ.js → chunk-P3ZVI46Y.js} +3 -3
- package/dist/{chunk-MDN44YMZ.js.map → chunk-P3ZVI46Y.js.map} +1 -1
- package/dist/{chunk-LR3VKB7A.cjs → chunk-SEWAPWAF.cjs} +20 -20
- package/dist/{chunk-LR3VKB7A.cjs.map → chunk-SEWAPWAF.cjs.map} +1 -1
- package/dist/{chunk-ERBH54V3.js → chunk-SGGH3B2W.js} +10 -10
- package/dist/{chunk-ERBH54V3.js.map → chunk-SGGH3B2W.js.map} +1 -1
- package/dist/{chunk-AYDSWY35.cjs → chunk-SHQEZ6Q2.cjs} +55 -55
- package/dist/{chunk-AYDSWY35.cjs.map → chunk-SHQEZ6Q2.cjs.map} +1 -1
- package/dist/{chunk-UDSGSPUY.cjs → chunk-T6KFGMNY.cjs} +9 -4
- package/dist/chunk-T6KFGMNY.cjs.map +1 -0
- package/dist/{chunk-MWVLE5RY.cjs → chunk-WMWZAJMJ.cjs} +5 -5
- package/dist/{chunk-MWVLE5RY.cjs.map → chunk-WMWZAJMJ.cjs.map} +1 -1
- package/dist/{chunk-RMO7HAIF.js → chunk-X627TO3A.js} +3 -3
- package/dist/{chunk-RMO7HAIF.js.map → chunk-X627TO3A.js.map} +1 -1
- package/dist/{chunk-7WXT5M6P.js → chunk-XRKFWV7K.js} +3 -3
- package/dist/{chunk-7WXT5M6P.js.map → chunk-XRKFWV7K.js.map} +1 -1
- package/dist/{chunk-JERO4TP6.cjs → chunk-ZVQJHY4Y.cjs} +22 -7
- package/dist/chunk-ZVQJHY4Y.cjs.map +1 -0
- package/dist/{compact-session-KPYRNTQN.js → compact-session-AZU2LEAE.js} +4 -4
- package/dist/{compact-session-KPYRNTQN.js.map → compact-session-AZU2LEAE.js.map} +1 -1
- package/dist/{compact-session-FCEFK2CG.cjs → compact-session-TRCEYCPG.cjs} +12 -12
- package/dist/{compact-session-FCEFK2CG.cjs.map → compact-session-TRCEYCPG.cjs.map} +1 -1
- package/dist/cron.cjs +8 -8
- package/dist/cron.js +7 -7
- package/dist/eval.cjs +11 -11
- package/dist/eval.js +7 -7
- package/dist/fs-session-store-I6GUIFRO.js +10 -0
- package/dist/{fs-session-store-YPZIOLJM.js.map → fs-session-store-I6GUIFRO.js.map} +1 -1
- package/dist/{fs-session-store-V32XJ63Z.cjs → fs-session-store-KRZZIG3O.cjs} +5 -5
- package/dist/{fs-session-store-V32XJ63Z.cjs.map → fs-session-store-KRZZIG3O.cjs.map} +1 -1
- package/dist/index.cjs +38 -38
- package/dist/index.js +9 -9
- package/dist/{inject-session-BIVVFWGL.cjs → inject-session-BVSERZCI.cjs} +4 -4
- package/dist/{inject-session-BIVVFWGL.cjs.map → inject-session-BVSERZCI.cjs.map} +1 -1
- package/dist/{inject-session-OLWZ2NJN.js → inject-session-E75EP3LL.js} +3 -3
- package/dist/{inject-session-OLWZ2NJN.js.map → inject-session-E75EP3LL.js.map} +1 -1
- package/dist/internal/persistence/index.cjs +6 -6
- package/dist/internal/persistence/index.js +1 -1
- package/dist/models.cjs +9 -9
- package/dist/models.js +1 -1
- package/dist/persistence.cjs +6 -6
- package/dist/persistence.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-AFJAQ5JV.js.map +0 -1
- package/dist/chunk-JERO4TP6.cjs.map +0 -1
- package/dist/chunk-RTDT2UMT.js.map +0 -1
- package/dist/chunk-UDSGSPUY.cjs.map +0 -1
- package/dist/fs-session-store-YPZIOLJM.js +0 -10
package/dist/index.cjs
CHANGED
|
@@ -8,14 +8,14 @@ require('./chunk-PIBXDEZM.cjs');
|
|
|
8
8
|
var chunkEJNFZET4_cjs = require('./chunk-EJNFZET4.cjs');
|
|
9
9
|
require('./chunk-5COPO3H4.cjs');
|
|
10
10
|
require('./chunk-PNVDQL5Y.cjs');
|
|
11
|
-
var
|
|
12
|
-
var
|
|
11
|
+
var chunkKV3HR7KL_cjs = require('./chunk-KV3HR7KL.cjs');
|
|
12
|
+
var chunkSHQEZ6Q2_cjs = require('./chunk-SHQEZ6Q2.cjs');
|
|
13
13
|
require('./chunk-BV2MWEMV.cjs');
|
|
14
14
|
var chunkQMIG7TKG_cjs = require('./chunk-QMIG7TKG.cjs');
|
|
15
15
|
require('./chunk-BUUUWQMB.cjs');
|
|
16
|
-
require('./chunk-
|
|
17
|
-
require('./chunk-
|
|
18
|
-
var
|
|
16
|
+
require('./chunk-N4JNY5DT.cjs');
|
|
17
|
+
require('./chunk-WMWZAJMJ.cjs');
|
|
18
|
+
var chunkSEWAPWAF_cjs = require('./chunk-SEWAPWAF.cjs');
|
|
19
19
|
require('./chunk-ELYGL52R.cjs');
|
|
20
20
|
require('./chunk-BURYFNOM.cjs');
|
|
21
21
|
require('./chunk-3LK3ZDL5.cjs');
|
|
@@ -36,7 +36,7 @@ require('./chunk-RHQJX3EI.cjs');
|
|
|
36
36
|
require('./chunk-PDOLUFGY.cjs');
|
|
37
37
|
require('./chunk-4E3HLSYE.cjs');
|
|
38
38
|
require('./chunk-NJVV5OAV.cjs');
|
|
39
|
-
require('./chunk-
|
|
39
|
+
require('./chunk-ZVQJHY4Y.cjs');
|
|
40
40
|
require('./chunk-4H2QARXM.cjs');
|
|
41
41
|
var chunkYLQQX5W2_cjs = require('./chunk-YLQQX5W2.cjs');
|
|
42
42
|
require('./chunk-H2V6CXM7.cjs');
|
|
@@ -45,7 +45,7 @@ var chunk33B2BSME_cjs = require('./chunk-33B2BSME.cjs');
|
|
|
45
45
|
require('./chunk-LOTWA65Z.cjs');
|
|
46
46
|
require('./chunk-OVGNXGCK.cjs');
|
|
47
47
|
var chunkVYHJZVL5_cjs = require('./chunk-VYHJZVL5.cjs');
|
|
48
|
-
var
|
|
48
|
+
var chunkT6KFGMNY_cjs = require('./chunk-T6KFGMNY.cjs');
|
|
49
49
|
require('./chunk-V7CA3CX5.cjs');
|
|
50
50
|
require('./chunk-C6Y6CWYD.cjs');
|
|
51
51
|
require('./chunk-CJHBSSAF.cjs');
|
|
@@ -62,8 +62,8 @@ var fs = require('fs');
|
|
|
62
62
|
// src/agent-factory.ts
|
|
63
63
|
function createAgentFactory(common) {
|
|
64
64
|
return {
|
|
65
|
-
forSession: (agentId, overrides) =>
|
|
66
|
-
getOrCreate: (agentId, overrides) =>
|
|
65
|
+
forSession: (agentId, overrides) => chunkSHQEZ6Q2_cjs.Agent.create(mergeAgentOptions(common, overrides, agentId)),
|
|
66
|
+
getOrCreate: (agentId, overrides) => chunkSHQEZ6Q2_cjs.Agent.getOrCreate(agentId, mergeAgentOptions(common, overrides, agentId))
|
|
67
67
|
};
|
|
68
68
|
}
|
|
69
69
|
function mergeAgentOptions(common, overrides, agentId) {
|
|
@@ -592,8 +592,8 @@ var Provider = class _Provider {
|
|
|
592
592
|
* `.plugins(Provider.builtins())` once, then pick a `provider/model` id. @public
|
|
593
593
|
*/
|
|
594
594
|
static builtins() {
|
|
595
|
-
|
|
596
|
-
return
|
|
595
|
+
chunkT6KFGMNY_cjs.registerBuiltins();
|
|
596
|
+
return chunkT6KFGMNY_cjs.listProviders().map((profile) => defineProvider(profile));
|
|
597
597
|
}
|
|
598
598
|
/**
|
|
599
599
|
* The builtin serving `modelId`, or `undefined` when none does.
|
|
@@ -1167,7 +1167,7 @@ var Memory = {
|
|
|
1167
1167
|
return await peer.IndexManager.open(openArgs);
|
|
1168
1168
|
}
|
|
1169
1169
|
const { IndexManager } = await import('./index-manager-LEMQ73A7.cjs');
|
|
1170
|
-
openArgs.embedding = await resolveEmbedding(opts.embedding,
|
|
1170
|
+
openArgs.embedding = await resolveEmbedding(opts.embedding, chunkSHQEZ6Q2_cjs.MEMORY_EMBEDDING_ADAPTERS);
|
|
1171
1171
|
return await IndexManager.open(openArgs);
|
|
1172
1172
|
},
|
|
1173
1173
|
/**
|
|
@@ -1178,7 +1178,7 @@ var Memory = {
|
|
|
1178
1178
|
*/
|
|
1179
1179
|
async runDreamingSweep(opts) {
|
|
1180
1180
|
const peer = await tryLoadSdkMemoryPeer();
|
|
1181
|
-
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS :
|
|
1181
|
+
const catalog = peer !== null ? peer.MEMORY_EMBEDDING_ADAPTERS : chunkSHQEZ6Q2_cjs.MEMORY_EMBEDDING_ADAPTERS;
|
|
1182
1182
|
const sweepArgs = await buildDreamingSweepArgs(opts, catalog);
|
|
1183
1183
|
const result = peer !== null ? (
|
|
1184
1184
|
// biome-ignore lint/suspicious/noExplicitAny: peer is dynamically loaded — structural compat ensured by sdk-memory
|
|
@@ -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-DB245YMC.cjs');
|
|
1604
1604
|
return Agent2.create({
|
|
1605
1605
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1606
1606
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -1742,7 +1742,7 @@ var FIXTURE_USER = {
|
|
|
1742
1742
|
};
|
|
1743
1743
|
var FIXTURE_MODELS = [
|
|
1744
1744
|
{
|
|
1745
|
-
id:
|
|
1745
|
+
id: chunkSHQEZ6Q2_cjs.DEFAULT_AGENTIC_MODEL_ID,
|
|
1746
1746
|
name: "Gemini 2.0 Flash",
|
|
1747
1747
|
displayName: "Gemini 2.0 Flash",
|
|
1748
1748
|
parameters: [
|
|
@@ -1818,7 +1818,7 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1818
1818
|
try {
|
|
1819
1819
|
response = await fetch(url, { method: "GET" });
|
|
1820
1820
|
} catch (fetchErr) {
|
|
1821
|
-
const mapped =
|
|
1821
|
+
const mapped = chunkSEWAPWAF_cjs.mapOllamaTransportError({
|
|
1822
1822
|
providerId: "ollama",
|
|
1823
1823
|
cause: fetchErr,
|
|
1824
1824
|
endpoint: "/v1/models"
|
|
@@ -1830,8 +1830,8 @@ async function listLocalModelsViaOpenAiCompat(baseUrl) {
|
|
|
1830
1830
|
);
|
|
1831
1831
|
}
|
|
1832
1832
|
if (!response.ok) {
|
|
1833
|
-
const body = await
|
|
1834
|
-
const mapped =
|
|
1833
|
+
const body = await chunkSEWAPWAF_cjs.readErrorResponseBody(response);
|
|
1834
|
+
const mapped = chunkSEWAPWAF_cjs.mapOllamaHttpError({
|
|
1835
1835
|
providerId: "ollama",
|
|
1836
1836
|
status: response.status,
|
|
1837
1837
|
body,
|
|
@@ -1894,9 +1894,9 @@ var Theokit = class {
|
|
|
1894
1894
|
});
|
|
1895
1895
|
},
|
|
1896
1896
|
capabilities: (providerOrModelId) => {
|
|
1897
|
-
|
|
1897
|
+
chunkT6KFGMNY_cjs.registerBuiltins();
|
|
1898
1898
|
const providerId = providerOrModelId.includes("/") ? providerOrModelId.split("/")[0] ?? providerOrModelId : providerOrModelId;
|
|
1899
|
-
return
|
|
1899
|
+
return chunkT6KFGMNY_cjs.getCatalogCapabilities(providerId);
|
|
1900
1900
|
}
|
|
1901
1901
|
};
|
|
1902
1902
|
/**
|
|
@@ -1935,8 +1935,8 @@ var Theokit = class {
|
|
|
1935
1935
|
*/
|
|
1936
1936
|
static inspect = {
|
|
1937
1937
|
builtinProviders: () => {
|
|
1938
|
-
|
|
1939
|
-
return
|
|
1938
|
+
chunkT6KFGMNY_cjs.registerBuiltins();
|
|
1939
|
+
return chunkT6KFGMNY_cjs.listProviders().map((p) => ({
|
|
1940
1940
|
name: p.name,
|
|
1941
1941
|
apiMode: p.apiMode,
|
|
1942
1942
|
authType: p.authType,
|
|
@@ -1945,7 +1945,7 @@ var Theokit = class {
|
|
|
1945
1945
|
envVars: p.envVars
|
|
1946
1946
|
}));
|
|
1947
1947
|
},
|
|
1948
|
-
embeddingAdapters: () => Object.entries(
|
|
1948
|
+
embeddingAdapters: () => Object.entries(chunkSHQEZ6Q2_cjs.MEMORY_EMBEDDING_ADAPTERS).map(([id, adapter]) => ({
|
|
1949
1949
|
id,
|
|
1950
1950
|
transport: adapter.transport,
|
|
1951
1951
|
defaultModel: adapter.defaultModel
|
|
@@ -1962,9 +1962,9 @@ var Theokit = class {
|
|
|
1962
1962
|
// and may be promoted onto Theokit once the agent.ts cycle is broken.
|
|
1963
1963
|
};
|
|
1964
1964
|
async function maybeListLocalModels(providerName) {
|
|
1965
|
-
|
|
1966
|
-
await
|
|
1967
|
-
const profile =
|
|
1965
|
+
chunkT6KFGMNY_cjs.registerBuiltins();
|
|
1966
|
+
await chunkSEWAPWAF_cjs.discoverProviderPlugins();
|
|
1967
|
+
const profile = chunkT6KFGMNY_cjs.getProviderProfile(providerName);
|
|
1968
1968
|
if (profile === void 0) return void 0;
|
|
1969
1969
|
if (profile.authType !== "none") return void 0;
|
|
1970
1970
|
const baseUrl = resolveLocalProviderBaseUrl(profile.name, profile.baseUrl);
|
|
@@ -1977,17 +1977,17 @@ function resolveLocalProviderBaseUrl(providerName, fallback) {
|
|
|
1977
1977
|
return fallback;
|
|
1978
1978
|
}
|
|
1979
1979
|
async function executeCatalogRequest(request) {
|
|
1980
|
-
const apiKey =
|
|
1980
|
+
const apiKey = chunkSHQEZ6Q2_cjs.resolveApiKey(request.apiKey);
|
|
1981
1981
|
if (apiKey === void 0) {
|
|
1982
1982
|
throw new chunkE7WWIX34_cjs.AuthenticationError("Missing API key", { code: "missing_api_key" });
|
|
1983
1983
|
}
|
|
1984
|
-
if (
|
|
1984
|
+
if (chunkSEWAPWAF_cjs.shouldUseFixtureMode(apiKey)) {
|
|
1985
1985
|
return request.fixture;
|
|
1986
1986
|
}
|
|
1987
|
-
if (!
|
|
1987
|
+
if (!chunkSEWAPWAF_cjs.isFixtureApiKey(apiKey) && process.env.THEOKIT_API_BASE_URL === void 0) {
|
|
1988
1988
|
throw new chunkE7WWIX34_cjs.AuthenticationError("Invalid API key", { code: "authentication_error" });
|
|
1989
1989
|
}
|
|
1990
|
-
return
|
|
1990
|
+
return chunkSEWAPWAF_cjs.httpRequest(request.path, { apiKey });
|
|
1991
1991
|
}
|
|
1992
1992
|
|
|
1993
1993
|
// src/trajectory-helpers.ts
|
|
@@ -2103,35 +2103,35 @@ Object.defineProperty(exports, "GenerateObjectError", {
|
|
|
2103
2103
|
});
|
|
2104
2104
|
Object.defineProperty(exports, "Cron", {
|
|
2105
2105
|
enumerable: true,
|
|
2106
|
-
get: function () { return
|
|
2106
|
+
get: function () { return chunkKV3HR7KL_cjs.Cron; }
|
|
2107
2107
|
});
|
|
2108
2108
|
Object.defineProperty(exports, "Agent", {
|
|
2109
2109
|
enumerable: true,
|
|
2110
|
-
get: function () { return
|
|
2110
|
+
get: function () { return chunkSHQEZ6Q2_cjs.Agent; }
|
|
2111
2111
|
});
|
|
2112
2112
|
Object.defineProperty(exports, "AgentBuilder", {
|
|
2113
2113
|
enumerable: true,
|
|
2114
|
-
get: function () { return
|
|
2114
|
+
get: function () { return chunkSHQEZ6Q2_cjs.AgentBuilder; }
|
|
2115
2115
|
});
|
|
2116
2116
|
Object.defineProperty(exports, "Tool", {
|
|
2117
2117
|
enumerable: true,
|
|
2118
|
-
get: function () { return
|
|
2118
|
+
get: function () { return chunkSHQEZ6Q2_cjs.Tool; }
|
|
2119
2119
|
});
|
|
2120
2120
|
Object.defineProperty(exports, "ToolError", {
|
|
2121
2121
|
enumerable: true,
|
|
2122
|
-
get: function () { return
|
|
2122
|
+
get: function () { return chunkSHQEZ6Q2_cjs.ToolError; }
|
|
2123
2123
|
});
|
|
2124
2124
|
Object.defineProperty(exports, "UsageAccumulator", {
|
|
2125
2125
|
enumerable: true,
|
|
2126
|
-
get: function () { return
|
|
2126
|
+
get: function () { return chunkSHQEZ6Q2_cjs.UsageAccumulator; }
|
|
2127
2127
|
});
|
|
2128
2128
|
Object.defineProperty(exports, "computeCost", {
|
|
2129
2129
|
enumerable: true,
|
|
2130
|
-
get: function () { return
|
|
2130
|
+
get: function () { return chunkSHQEZ6Q2_cjs.computeCost; }
|
|
2131
2131
|
});
|
|
2132
2132
|
Object.defineProperty(exports, "getPricingEntry", {
|
|
2133
2133
|
enumerable: true,
|
|
2134
|
-
get: function () { return
|
|
2134
|
+
get: function () { return chunkSHQEZ6Q2_cjs.getPricingEntry; }
|
|
2135
2135
|
});
|
|
2136
2136
|
Object.defineProperty(exports, "emitRunEvent", {
|
|
2137
2137
|
enumerable: true,
|
package/dist/index.js
CHANGED
|
@@ -6,16 +6,16 @@ import './chunk-4HKAZRTC.js';
|
|
|
6
6
|
import { Workflow, agentStep } from './chunk-WJOLIPEM.js';
|
|
7
7
|
import './chunk-NHXPQN44.js';
|
|
8
8
|
import './chunk-CAH3G4IS.js';
|
|
9
|
-
export { Cron } from './chunk-
|
|
10
|
-
import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-
|
|
11
|
-
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-
|
|
9
|
+
export { Cron } from './chunk-P3ZVI46Y.js';
|
|
10
|
+
import { MEMORY_EMBEDDING_ADAPTERS, resolveApiKey, DEFAULT_AGENTIC_MODEL_ID, Agent } from './chunk-SGGH3B2W.js';
|
|
11
|
+
export { Agent, AgentBuilder, Tool, ToolError, UsageAccumulator, computeCost, getPricingEntry } from './chunk-SGGH3B2W.js';
|
|
12
12
|
import './chunk-2SFBB54R.js';
|
|
13
13
|
import { configure, submit, list, get, cancel, subscribe } from './chunk-UIPTINIF.js';
|
|
14
14
|
export { emitRunEvent } from './chunk-UIPTINIF.js';
|
|
15
15
|
import './chunk-K2BQQ445.js';
|
|
16
|
-
import './chunk-
|
|
17
|
-
import './chunk-
|
|
18
|
-
import { discoverProviderPlugins, shouldUseFixtureMode, isFixtureApiKey, httpRequest, mapOllamaTransportError, readErrorResponseBody, mapOllamaHttpError } from './chunk-
|
|
16
|
+
import './chunk-ONVIALVV.js';
|
|
17
|
+
import './chunk-XRKFWV7K.js';
|
|
18
|
+
import { discoverProviderPlugins, shouldUseFixtureMode, isFixtureApiKey, httpRequest, mapOllamaTransportError, readErrorResponseBody, mapOllamaHttpError } from './chunk-X627TO3A.js';
|
|
19
19
|
import './chunk-MI3OKONE.js';
|
|
20
20
|
import './chunk-5KOW3GLE.js';
|
|
21
21
|
import './chunk-7PBAJ2WA.js';
|
|
@@ -36,7 +36,7 @@ import './chunk-XKGOIGTJ.js';
|
|
|
36
36
|
import './chunk-F4SQTWVR.js';
|
|
37
37
|
import './chunk-LWVKI75U.js';
|
|
38
38
|
import './chunk-EYUZZXHZ.js';
|
|
39
|
-
import './chunk-
|
|
39
|
+
import './chunk-5VKUZ26Q.js';
|
|
40
40
|
import './chunk-VTDQRUAJ.js';
|
|
41
41
|
import { withCwdMutex } from './chunk-2XLKLVVR.js';
|
|
42
42
|
export { withCwdMutex } from './chunk-2XLKLVVR.js';
|
|
@@ -46,7 +46,7 @@ import { replaceFileAtomic } from './chunk-5XPKYDK7.js';
|
|
|
46
46
|
import './chunk-BBMN4O6E.js';
|
|
47
47
|
import './chunk-XZ7PO2FM.js';
|
|
48
48
|
import { parseModelId } from './chunk-X2FR4OIT.js';
|
|
49
|
-
import { registerBuiltins, listProviders, getCatalogCapabilities, getProviderProfile } from './chunk-
|
|
49
|
+
import { registerBuiltins, listProviders, getCatalogCapabilities, getProviderProfile } from './chunk-23HI77BZ.js';
|
|
50
50
|
import './chunk-AKMPQJPX.js';
|
|
51
51
|
import './chunk-5NBUH3NO.js';
|
|
52
52
|
import './chunk-LYD3ALDT.js';
|
|
@@ -1603,7 +1603,7 @@ function ehAgenteConstruido(m) {
|
|
|
1603
1603
|
return typeof m.send === "function";
|
|
1604
1604
|
}
|
|
1605
1605
|
async function materializar(def, indice) {
|
|
1606
|
-
const { Agent: Agent2 } = await import('./agent-
|
|
1606
|
+
const { Agent: Agent2 } = await import('./agent-UNWZCXBS.js');
|
|
1607
1607
|
return Agent2.create({
|
|
1608
1608
|
// `AgentDefinition.model` admits the sentinel `'inherit'`, which is not a model id. Inheriting
|
|
1609
1609
|
// here means "declare nothing and let the default apply" — forwarding the literal would create
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
3
|
+
var chunkN4JNY5DT_cjs = require('./chunk-N4JNY5DT.cjs');
|
|
4
4
|
var chunkBURYFNOM_cjs = require('./chunk-BURYFNOM.cjs');
|
|
5
5
|
require('./chunk-3LK3ZDL5.cjs');
|
|
6
6
|
var chunkNJVV5OAV_cjs = require('./chunk-NJVV5OAV.cjs');
|
|
@@ -9,7 +9,7 @@ require('./chunk-A76OFN2B.cjs');
|
|
|
9
9
|
|
|
10
10
|
// src/internal/session/inject-session.ts
|
|
11
11
|
async function injectSessionTurn(opts) {
|
|
12
|
-
await
|
|
12
|
+
await chunkN4JNY5DT_cjs.enqueueSessionWrite(opts.loc.cwd, opts.loc.agentId, async () => {
|
|
13
13
|
const prior = await opts.store.readRecords(opts.loc.agentId);
|
|
14
14
|
const transcript = chunkNJVV5OAV_cjs.SessionTranscript.fromRecords(prior, {
|
|
15
15
|
cwd: opts.loc.cwd,
|
|
@@ -24,5 +24,5 @@ async function injectSessionTurn(opts) {
|
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
exports.injectSessionTurn = injectSessionTurn;
|
|
27
|
-
//# sourceMappingURL=inject-session-
|
|
28
|
-
//# sourceMappingURL=inject-session-
|
|
27
|
+
//# sourceMappingURL=inject-session-BVSERZCI.cjs.map
|
|
28
|
+
//# sourceMappingURL=inject-session-BVSERZCI.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":["enqueueSessionWrite","SessionTranscript","invalidateSessionCache"],"mappings":";;;;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAMA,sCAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAaC,mCAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAAC,wCAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-
|
|
1
|
+
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":["enqueueSessionWrite","SessionTranscript","invalidateSessionCache"],"mappings":";;;;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAMA,sCAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAaC,mCAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAAC,wCAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-BVSERZCI.cjs","sourcesContent":["/**\n * M51 (agent-builder) — inject a SYNTHETIC user+assistant pair into a session's persisted transcript\n * WITHOUT running an LLM turn. This is the Codex review-exit mechanism (`exit_success.xml` appended to\n * the parent thread history so follow-ups like \"fix finding 2\" work): the pair chains onto the DAG\n * leaf (M50 pattern) and the in-memory cache is invalidated so the NEXT send re-hydrates with it.\n */\nimport type { SessionStore } from \"../../types/session-store.js\";\nimport { SessionTranscript } from \"../persistence/session-transcript.js\";\nimport { enqueueSessionWrite, invalidateSessionCache } from \"./agent-session.js\";\nimport type { CompactLocation } from \"./compact-session.js\";\n\nexport async function injectSessionTurn(opts: {\n store: SessionStore;\n loc: CompactLocation;\n sessionId: string;\n userText: string;\n assistantText: string;\n}): Promise<void> {\n await enqueueSessionWrite(opts.loc.cwd, opts.loc.agentId, async () => {\n const prior = await opts.store.readRecords(opts.loc.agentId);\n const transcript = SessionTranscript.fromRecords(prior, {\n cwd: opts.loc.cwd,\n sessionId: opts.sessionId,\n model: opts.loc.model ?? \"unknown\",\n });\n transcript.appendUserTurn(opts.userText);\n transcript.appendAssistantTurn({ text: opts.assistantText });\n await opts.store.appendRecords(opts.loc.agentId, transcript.records().slice(prior.length));\n invalidateSessionCache(opts.loc.cwd, opts.loc.agentId);\n });\n}\n"]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { enqueueSessionWrite } from './chunk-
|
|
1
|
+
import { enqueueSessionWrite } from './chunk-ONVIALVV.js';
|
|
2
2
|
import { invalidateSessionCache } from './chunk-5KOW3GLE.js';
|
|
3
3
|
import './chunk-7PBAJ2WA.js';
|
|
4
4
|
import { SessionTranscript } from './chunk-EYUZZXHZ.js';
|
|
@@ -22,5 +22,5 @@ async function injectSessionTurn(opts) {
|
|
|
22
22
|
}
|
|
23
23
|
|
|
24
24
|
export { injectSessionTurn };
|
|
25
|
-
//# sourceMappingURL=inject-session-
|
|
26
|
-
//# sourceMappingURL=inject-session-
|
|
25
|
+
//# sourceMappingURL=inject-session-E75EP3LL.js.map
|
|
26
|
+
//# sourceMappingURL=inject-session-E75EP3LL.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":[],"mappings":";;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAM,oBAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAa,iBAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAA,sBAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-
|
|
1
|
+
{"version":3,"sources":["../src/internal/session/inject-session.ts"],"names":[],"mappings":";;;;;;;;AAWA,eAAsB,kBAAkB,IAAA,EAMtB;AAChB,EAAA,MAAM,oBAAoB,IAAA,CAAK,GAAA,CAAI,KAAK,IAAA,CAAK,GAAA,CAAI,SAAS,YAAY;AACpE,IAAA,MAAM,QAAQ,MAAM,IAAA,CAAK,MAAM,WAAA,CAAY,IAAA,CAAK,IAAI,OAAO,CAAA;AAC3D,IAAA,MAAM,UAAA,GAAa,iBAAA,CAAkB,WAAA,CAAY,KAAA,EAAO;AAAA,MACtD,GAAA,EAAK,KAAK,GAAA,CAAI,GAAA;AAAA,MACd,WAAW,IAAA,CAAK,SAAA;AAAA,MAChB,KAAA,EAAO,IAAA,CAAK,GAAA,CAAI,KAAA,IAAS;AAAA,KAC1B,CAAA;AACD,IAAA,UAAA,CAAW,cAAA,CAAe,KAAK,QAAQ,CAAA;AACvC,IAAA,UAAA,CAAW,mBAAA,CAAoB,EAAE,IAAA,EAAM,IAAA,CAAK,eAAe,CAAA;AAC3D,IAAA,MAAM,IAAA,CAAK,KAAA,CAAM,aAAA,CAAc,IAAA,CAAK,GAAA,CAAI,OAAA,EAAS,UAAA,CAAW,OAAA,EAAQ,CAAE,KAAA,CAAM,KAAA,CAAM,MAAM,CAAC,CAAA;AACzF,IAAA,sBAAA,CAAuB,IAAA,CAAK,GAAA,CAAI,GAAA,EAAK,IAAA,CAAK,IAAI,OAAO,CAAA;AAAA,EACvD,CAAC,CAAA;AACH","file":"inject-session-E75EP3LL.js","sourcesContent":["/**\n * M51 (agent-builder) — inject a SYNTHETIC user+assistant pair into a session's persisted transcript\n * WITHOUT running an LLM turn. This is the Codex review-exit mechanism (`exit_success.xml` appended to\n * the parent thread history so follow-ups like \"fix finding 2\" work): the pair chains onto the DAG\n * leaf (M50 pattern) and the in-memory cache is invalidated so the NEXT send re-hydrates with it.\n */\nimport type { SessionStore } from \"../../types/session-store.js\";\nimport { SessionTranscript } from \"../persistence/session-transcript.js\";\nimport { enqueueSessionWrite, invalidateSessionCache } from \"./agent-session.js\";\nimport type { CompactLocation } from \"./compact-session.js\";\n\nexport async function injectSessionTurn(opts: {\n store: SessionStore;\n loc: CompactLocation;\n sessionId: string;\n userText: string;\n assistantText: string;\n}): Promise<void> {\n await enqueueSessionWrite(opts.loc.cwd, opts.loc.agentId, async () => {\n const prior = await opts.store.readRecords(opts.loc.agentId);\n const transcript = SessionTranscript.fromRecords(prior, {\n cwd: opts.loc.cwd,\n sessionId: opts.sessionId,\n model: opts.loc.model ?? \"unknown\",\n });\n transcript.appendUserTurn(opts.userText);\n transcript.appendAssistantTurn({ text: opts.assistantText });\n await opts.store.appendRecords(opts.loc.agentId, transcript.records().slice(prior.length));\n invalidateSessionCache(opts.loc.cwd, opts.loc.agentId);\n });\n}\n"]}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkPNVDQL5Y_cjs = require('../../chunk-PNVDQL5Y.cjs');
|
|
4
4
|
var chunkFMDZZRYE_cjs = require('../../chunk-FMDZZRYE.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkZVQJHY4Y_cjs = require('../../chunk-ZVQJHY4Y.cjs');
|
|
6
6
|
var chunk4H2QARXM_cjs = require('../../chunk-4H2QARXM.cjs');
|
|
7
7
|
var chunkYLQQX5W2_cjs = require('../../chunk-YLQQX5W2.cjs');
|
|
8
8
|
var chunk33B2BSME_cjs = require('../../chunk-33B2BSME.cjs');
|
|
@@ -65,23 +65,23 @@ Object.defineProperty(exports, "writeVersionedJson", {
|
|
|
65
65
|
});
|
|
66
66
|
Object.defineProperty(exports, "JsonlParseError", {
|
|
67
67
|
enumerable: true,
|
|
68
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkZVQJHY4Y_cjs.JsonlParseError; }
|
|
69
69
|
});
|
|
70
70
|
Object.defineProperty(exports, "appendJsonl", {
|
|
71
71
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkZVQJHY4Y_cjs.appendJsonl; }
|
|
73
73
|
});
|
|
74
74
|
Object.defineProperty(exports, "loadJsonl", {
|
|
75
75
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkZVQJHY4Y_cjs.loadJsonl; }
|
|
77
77
|
});
|
|
78
78
|
Object.defineProperty(exports, "readJsonlIds", {
|
|
79
79
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkZVQJHY4Y_cjs.readJsonlIds; }
|
|
81
81
|
});
|
|
82
82
|
Object.defineProperty(exports, "withFileLock", {
|
|
83
83
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
84
|
+
get: function () { return chunkZVQJHY4Y_cjs.withFileLock; }
|
|
85
85
|
});
|
|
86
86
|
Object.defineProperty(exports, "applyWalWithFallback", {
|
|
87
87
|
enumerable: true,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { PersistenceSchema } from '../../chunk-CAH3G4IS.js';
|
|
2
2
|
export { displayTheokitHome, getProfilesRoot, getTheokitHome, migrateSchema, readVersionedJson, writeVersionedJson } from '../../chunk-RMCHJZNZ.js';
|
|
3
|
-
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from '../../chunk-
|
|
3
|
+
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from '../../chunk-5VKUZ26Q.js';
|
|
4
4
|
export { applyWalWithFallback, containsCjk, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from '../../chunk-VTDQRUAJ.js';
|
|
5
5
|
export { withCwdMutex } from '../../chunk-2XLKLVVR.js';
|
|
6
6
|
export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from '../../chunk-5XPKYDK7.js';
|
package/dist/models.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var chunkPY7G7YWK_cjs = require('./chunk-PY7G7YWK.cjs');
|
|
4
4
|
var chunkVYHJZVL5_cjs = require('./chunk-VYHJZVL5.cjs');
|
|
5
|
-
var
|
|
5
|
+
var chunkT6KFGMNY_cjs = require('./chunk-T6KFGMNY.cjs');
|
|
6
6
|
require('./chunk-V7CA3CX5.cjs');
|
|
7
7
|
require('./chunk-C6Y6CWYD.cjs');
|
|
8
8
|
require('./chunk-E7WWIX34.cjs');
|
|
@@ -34,11 +34,11 @@ function capsFromCatalog(m) {
|
|
|
34
34
|
}
|
|
35
35
|
function resolveModelCapabilities(modelId) {
|
|
36
36
|
const bare = stripVariantSuffix(stripRoutingPrefix(modelId));
|
|
37
|
-
const fromIndex =
|
|
37
|
+
const fromIndex = chunkT6KFGMNY_cjs.getCatalogModelInfo(bare);
|
|
38
38
|
if (fromIndex !== void 0) return capsFromCatalog(fromIndex);
|
|
39
39
|
const withVendor = inferVendorPrefix(bare);
|
|
40
40
|
if (withVendor !== bare) {
|
|
41
|
-
const vendored =
|
|
41
|
+
const vendored = chunkT6KFGMNY_cjs.getCatalogModelInfo(withVendor);
|
|
42
42
|
if (vendored !== void 0) return capsFromCatalog(vendored);
|
|
43
43
|
}
|
|
44
44
|
return CONSERVATIVE_DEFAULTS;
|
|
@@ -123,7 +123,7 @@ function catalogTargets() {
|
|
|
123
123
|
if (_catalogTargets !== void 0) return _catalogTargets;
|
|
124
124
|
_catalogTargets = /* @__PURE__ */ new Map();
|
|
125
125
|
try {
|
|
126
|
-
for (const entry of Object.values(
|
|
126
|
+
for (const entry of Object.values(chunkT6KFGMNY_cjs.loadProviderCatalog())) {
|
|
127
127
|
const keys = [entry.id, ...entry.aliases ?? []];
|
|
128
128
|
for (const k of keys) {
|
|
129
129
|
if (!_catalogTargets.has(k)) _catalogTargets.set(k, { keys });
|
|
@@ -137,7 +137,7 @@ function resolvePatchKeys(externalId) {
|
|
|
137
137
|
const mapped = MODELS_DEV_ID_MAP[externalId] ?? externalId;
|
|
138
138
|
const fromCatalog = catalogTargets().get(mapped);
|
|
139
139
|
if (fromCatalog !== void 0) return fromCatalog.keys;
|
|
140
|
-
const profile =
|
|
140
|
+
const profile = chunkT6KFGMNY_cjs.getProviderProfile(mapped);
|
|
141
141
|
if (profile !== void 0) return [profile.name, ...profile.aliases ?? []];
|
|
142
142
|
return void 0;
|
|
143
143
|
}
|
|
@@ -154,9 +154,9 @@ function patchIndexFromApiJson(raw) {
|
|
|
154
154
|
continue;
|
|
155
155
|
}
|
|
156
156
|
for (const [modelId, rawModel] of Object.entries(models)) {
|
|
157
|
-
const parsed =
|
|
157
|
+
const parsed = chunkT6KFGMNY_cjs.catalogModelSchema.safeParse(rawModel);
|
|
158
158
|
if (!parsed.success) continue;
|
|
159
|
-
for (const key of keys)
|
|
159
|
+
for (const key of keys) chunkT6KFGMNY_cjs.patchModelInfo(`${key}/${modelId}`, parsed.data);
|
|
160
160
|
patched++;
|
|
161
161
|
}
|
|
162
162
|
}
|
|
@@ -197,7 +197,7 @@ function loadCacheIntoIndex(url = DEFAULT_URL) {
|
|
|
197
197
|
}
|
|
198
198
|
}
|
|
199
199
|
async function refreshModelCatalog(opts = {}) {
|
|
200
|
-
|
|
200
|
+
chunkT6KFGMNY_cjs.registerBuiltins();
|
|
201
201
|
const kill = process.env.THEOKIT_DISABLE_MODELS_FETCH;
|
|
202
202
|
if (kill !== void 0 && kill !== "" && kill !== "0" && kill.toLowerCase() !== "false") {
|
|
203
203
|
return { source: "skipped", models: 0 };
|
|
@@ -253,7 +253,7 @@ async function refreshModelCatalog(opts = {}) {
|
|
|
253
253
|
}
|
|
254
254
|
}
|
|
255
255
|
function getModelInfo(modelId) {
|
|
256
|
-
return
|
|
256
|
+
return chunkT6KFGMNY_cjs.getCatalogModelInfo(modelId);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
259
|
Object.defineProperty(exports, "parseModelId", {
|
package/dist/models.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Retry } from './chunk-4H2DCO6P.js';
|
|
2
2
|
import { parseModelId } from './chunk-X2FR4OIT.js';
|
|
3
3
|
export { parseModelId } from './chunk-X2FR4OIT.js';
|
|
4
|
-
import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-
|
|
4
|
+
import { getCatalogModelInfo, registerBuiltins, catalogModelSchema, patchModelInfo, getProviderProfile, loadProviderCatalog } from './chunk-23HI77BZ.js';
|
|
5
5
|
import './chunk-AKMPQJPX.js';
|
|
6
6
|
import './chunk-5NBUH3NO.js';
|
|
7
7
|
import './chunk-VQ33XLC6.js';
|
package/dist/persistence.cjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkPNVDQL5Y_cjs = require('./chunk-PNVDQL5Y.cjs');
|
|
4
4
|
var chunk4E3HLSYE_cjs = require('./chunk-4E3HLSYE.cjs');
|
|
5
5
|
var chunkNJVV5OAV_cjs = require('./chunk-NJVV5OAV.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkZVQJHY4Y_cjs = require('./chunk-ZVQJHY4Y.cjs');
|
|
7
7
|
var chunk4H2QARXM_cjs = require('./chunk-4H2QARXM.cjs');
|
|
8
8
|
var chunkYLQQX5W2_cjs = require('./chunk-YLQQX5W2.cjs');
|
|
9
9
|
var chunk33B2BSME_cjs = require('./chunk-33B2BSME.cjs');
|
|
@@ -107,23 +107,23 @@ Object.defineProperty(exports, "transcriptRoot", {
|
|
|
107
107
|
});
|
|
108
108
|
Object.defineProperty(exports, "JsonlParseError", {
|
|
109
109
|
enumerable: true,
|
|
110
|
-
get: function () { return
|
|
110
|
+
get: function () { return chunkZVQJHY4Y_cjs.JsonlParseError; }
|
|
111
111
|
});
|
|
112
112
|
Object.defineProperty(exports, "appendJsonl", {
|
|
113
113
|
enumerable: true,
|
|
114
|
-
get: function () { return
|
|
114
|
+
get: function () { return chunkZVQJHY4Y_cjs.appendJsonl; }
|
|
115
115
|
});
|
|
116
116
|
Object.defineProperty(exports, "loadJsonl", {
|
|
117
117
|
enumerable: true,
|
|
118
|
-
get: function () { return
|
|
118
|
+
get: function () { return chunkZVQJHY4Y_cjs.loadJsonl; }
|
|
119
119
|
});
|
|
120
120
|
Object.defineProperty(exports, "readJsonlIds", {
|
|
121
121
|
enumerable: true,
|
|
122
|
-
get: function () { return
|
|
122
|
+
get: function () { return chunkZVQJHY4Y_cjs.readJsonlIds; }
|
|
123
123
|
});
|
|
124
124
|
Object.defineProperty(exports, "withFileLock", {
|
|
125
125
|
enumerable: true,
|
|
126
|
-
get: function () { return
|
|
126
|
+
get: function () { return chunkZVQJHY4Y_cjs.withFileLock; }
|
|
127
127
|
});
|
|
128
128
|
Object.defineProperty(exports, "applyWalWithFallback", {
|
|
129
129
|
enumerable: true,
|
package/dist/persistence.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { PersistenceSchema } from './chunk-CAH3G4IS.js';
|
|
2
2
|
export { SessionBusyError, acquireSessionWriter, sessionHasWriter } from './chunk-LWVKI75U.js';
|
|
3
3
|
export { encodeProjectDir, transcriptPath, transcriptRoot } from './chunk-EYUZZXHZ.js';
|
|
4
|
-
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-
|
|
4
|
+
export { JsonlParseError, appendJsonl, loadJsonl, readJsonlIds, withFileLock } from './chunk-5VKUZ26Q.js';
|
|
5
5
|
export { applyWalWithFallback, isCorruptionError, openSqliteResilient, sanitizeFts5Query } from './chunk-VTDQRUAJ.js';
|
|
6
6
|
export { withCwdMutex } from './chunk-2XLKLVVR.js';
|
|
7
7
|
export { atomicWriteJson, atomicWriteText, replaceFileAtomic } from './chunk-5XPKYDK7.js';
|
package/package.json
CHANGED