@theokit/sdk 5.0.0 → 5.0.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 +27 -0
- package/dist/{agent-5BJF255U.cjs → agent-TKJBWGGQ.cjs} +7 -7
- package/dist/{agent-5BJF255U.cjs.map → agent-TKJBWGGQ.cjs.map} +1 -1
- package/dist/{agent-HACVHN2V.js → agent-UGYIYC3R.js} +6 -6
- package/dist/{agent-HACVHN2V.js.map → agent-UGYIYC3R.js.map} +1 -1
- package/dist/{chunk-SYVWE64W.cjs → chunk-5AXMNUCY.cjs} +5 -5
- package/dist/{chunk-SYVWE64W.cjs.map → chunk-5AXMNUCY.cjs.map} +1 -1
- package/dist/{chunk-4S5TWFIZ.js → chunk-7RHC7HMS.js} +3 -3
- package/dist/{chunk-4S5TWFIZ.js.map → chunk-7RHC7HMS.js.map} +1 -1
- package/dist/{chunk-WWZO2TTK.cjs → chunk-CC7EYKBJ.cjs} +4 -4
- package/dist/{chunk-WWZO2TTK.cjs.map → chunk-CC7EYKBJ.cjs.map} +1 -1
- package/dist/{chunk-VVJ7FQAQ.cjs → chunk-CQLVA4CO.cjs} +39 -39
- package/dist/{chunk-VVJ7FQAQ.cjs.map → chunk-CQLVA4CO.cjs.map} +1 -1
- package/dist/{chunk-XJZEBGXD.js → chunk-D7WAROJR.js} +3 -3
- package/dist/{chunk-XJZEBGXD.js.map → chunk-D7WAROJR.js.map} +1 -1
- package/dist/{chunk-GGZ5GPE3.cjs → chunk-DLRP7BI6.cjs} +3 -3
- package/dist/chunk-DLRP7BI6.cjs.map +1 -0
- package/dist/{chunk-67ADYSTW.js → chunk-GUKPXDGJ.js} +4 -4
- package/dist/chunk-GUKPXDGJ.js.map +1 -0
- package/dist/{chunk-H6YM3PV6.cjs → chunk-LTLPBGHC.cjs} +5 -5
- package/dist/{chunk-H6YM3PV6.cjs.map → chunk-LTLPBGHC.cjs.map} +1 -1
- package/dist/{chunk-OXQSNOYV.js → chunk-SVWMQCXF.js} +7 -7
- package/dist/{chunk-OXQSNOYV.js.map → chunk-SVWMQCXF.js.map} +1 -1
- package/dist/{chunk-M3QNTHMV.js → chunk-YEL3SP6X.js} +3 -3
- package/dist/{chunk-M3QNTHMV.js.map → chunk-YEL3SP6X.js.map} +1 -1
- package/dist/context-FM6UZPTL.js +6 -0
- package/dist/{context-Y7B7SI5X.js.map → context-FM6UZPTL.js.map} +1 -1
- package/dist/{context-NI33FS2R.cjs → context-XQJIGZMR.cjs} +7 -7
- package/dist/{context-NI33FS2R.cjs.map → context-XQJIGZMR.cjs.map} +1 -1
- package/dist/cron.cjs +6 -6
- package/dist/cron.js +5 -5
- package/dist/eval.cjs +5 -5
- package/dist/eval.js +4 -4
- package/dist/index.cjs +21 -21
- package/dist/index.js +7 -7
- package/dist/internal/persistence/index.cjs +4 -4
- package/dist/internal/persistence/index.js +1 -1
- package/dist/internal/runtime/compat/foreign-config-sources.d.ts +29 -6
- package/dist/subagents-loader-7ES7PJNM.js +7 -0
- package/dist/{subagents-loader-Y6JFYXAY.js.map → subagents-loader-7ES7PJNM.js.map} +1 -1
- package/dist/subagents-loader-OMOH6ERO.cjs +16 -0
- package/dist/{subagents-loader-TPZLTXYZ.cjs.map → subagents-loader-OMOH6ERO.cjs.map} +1 -1
- package/dist/subagents-loader.cjs +3 -3
- package/dist/subagents-loader.js +2 -2
- package/package.json +1 -1
- package/dist/chunk-67ADYSTW.js.map +0 -1
- package/dist/chunk-GGZ5GPE3.cjs.map +0 -1
- package/dist/context-Y7B7SI5X.js +0 -6
- package/dist/subagents-loader-TPZLTXYZ.cjs +0 -16
- package/dist/subagents-loader-Y6JFYXAY.js +0 -7
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
var chunkKVSAY6NZ_cjs = require('./chunk-KVSAY6NZ.cjs');
|
|
4
4
|
var chunkY2KYR2ED_cjs = require('./chunk-Y2KYR2ED.cjs');
|
|
5
5
|
var chunkZ2JFX372_cjs = require('./chunk-Z2JFX372.cjs');
|
|
6
|
-
var
|
|
6
|
+
var chunkLTLPBGHC_cjs = require('./chunk-LTLPBGHC.cjs');
|
|
7
7
|
var chunkBV2MWEMV_cjs = require('./chunk-BV2MWEMV.cjs');
|
|
8
8
|
var chunkD6POWE7E_cjs = require('./chunk-D6POWE7E.cjs');
|
|
9
9
|
var chunkTMKTSYDS_cjs = require('./chunk-TMKTSYDS.cjs');
|
|
@@ -26,8 +26,8 @@ var chunkGZV6AVRL_cjs = require('./chunk-GZV6AVRL.cjs');
|
|
|
26
26
|
var chunkBJUJT5ED_cjs = require('./chunk-BJUJT5ED.cjs');
|
|
27
27
|
var chunkZF2LDKQQ_cjs = require('./chunk-ZF2LDKQQ.cjs');
|
|
28
28
|
var chunkJLRLCBJ4_cjs = require('./chunk-JLRLCBJ4.cjs');
|
|
29
|
-
var
|
|
30
|
-
var
|
|
29
|
+
var chunk5AXMNUCY_cjs = require('./chunk-5AXMNUCY.cjs');
|
|
30
|
+
var chunkDLRP7BI6_cjs = require('./chunk-DLRP7BI6.cjs');
|
|
31
31
|
var chunkHW7SEELD_cjs = require('./chunk-HW7SEELD.cjs');
|
|
32
32
|
var chunkATT276RD_cjs = require('./chunk-ATT276RD.cjs');
|
|
33
33
|
var chunk3EE6LVWT_cjs = require('./chunk-3EE6LVWT.cjs');
|
|
@@ -382,7 +382,7 @@ function serializeAgents(agents2) {
|
|
|
382
382
|
return out;
|
|
383
383
|
}
|
|
384
384
|
function registryPath(cwd) {
|
|
385
|
-
return path.join(
|
|
385
|
+
return path.join(chunkDLRP7BI6_cjs.theokitConfigRoot(cwd), REGISTRY_RELATIVE_SUFFIX);
|
|
386
386
|
}
|
|
387
387
|
async function loadRegistry(cwd) {
|
|
388
388
|
void chunkJLRLCBJ4_cjs.sweepStaleAtomicTemps(registryPath(cwd)).catch(() => void 0);
|
|
@@ -2121,14 +2121,14 @@ async function readState(filePath) {
|
|
|
2121
2121
|
try {
|
|
2122
2122
|
parsed = JSON.parse(raw);
|
|
2123
2123
|
} catch {
|
|
2124
|
-
|
|
2124
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
2125
2125
|
"personality-store-json-parse",
|
|
2126
2126
|
"[theokit-sdk] personality.json is malformed; treating as empty"
|
|
2127
2127
|
);
|
|
2128
2128
|
return emptyState();
|
|
2129
2129
|
}
|
|
2130
2130
|
if (!isStateV1(parsed)) {
|
|
2131
|
-
|
|
2131
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
2132
2132
|
"personality-store-bad-version",
|
|
2133
2133
|
`[theokit-sdk] personality.json has unknown version; treating as empty (file kept untouched)`
|
|
2134
2134
|
);
|
|
@@ -2159,7 +2159,7 @@ var PersonalityStore = class {
|
|
|
2159
2159
|
try {
|
|
2160
2160
|
await this.#persist(agentId, slug);
|
|
2161
2161
|
} catch (err) {
|
|
2162
|
-
|
|
2162
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
2163
2163
|
`personality-store-persist-failure-${agentId}`,
|
|
2164
2164
|
`[theokit-sdk] personality persist failed for ${chunk6LHQPOMI_cjs.redactSecrets(agentId)}: ${chunk6LHQPOMI_cjs.redactSecrets(
|
|
2165
2165
|
err.message
|
|
@@ -2176,7 +2176,7 @@ var PersonalityStore = class {
|
|
|
2176
2176
|
try {
|
|
2177
2177
|
state = await readState(filePath);
|
|
2178
2178
|
} catch (err) {
|
|
2179
|
-
|
|
2179
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
2180
2180
|
`personality-store-hydrate-failure-${agentId}`,
|
|
2181
2181
|
`[theokit-sdk] personality hydrate failed for ${chunk6LHQPOMI_cjs.redactSecrets(agentId)}: ${chunk6LHQPOMI_cjs.redactSecrets(
|
|
2182
2182
|
err.message
|
|
@@ -2205,7 +2205,7 @@ var PersonalityStore = class {
|
|
|
2205
2205
|
});
|
|
2206
2206
|
}
|
|
2207
2207
|
#filePath() {
|
|
2208
|
-
return path.join(
|
|
2208
|
+
return path.join(chunkDLRP7BI6_cjs.getTheokitHome(this.#cwd), FILE_NAME);
|
|
2209
2209
|
}
|
|
2210
2210
|
};
|
|
2211
2211
|
|
|
@@ -2522,7 +2522,7 @@ function removeAll(arr, toRemove) {
|
|
|
2522
2522
|
}
|
|
2523
2523
|
}
|
|
2524
2524
|
function readCompatConfigFile(cwd) {
|
|
2525
|
-
const path$1 = path.join(
|
|
2525
|
+
const path$1 = path.join(chunkDLRP7BI6_cjs.theokitConfigRoot(cwd), "config.json");
|
|
2526
2526
|
if (!fs.existsSync(path$1)) return [];
|
|
2527
2527
|
let raw;
|
|
2528
2528
|
try {
|
|
@@ -2614,7 +2614,7 @@ var HooksExecutor = class {
|
|
|
2614
2614
|
this.config = {};
|
|
2615
2615
|
return;
|
|
2616
2616
|
}
|
|
2617
|
-
this.config = await
|
|
2617
|
+
this.config = await chunkLTLPBGHC_cjs.loadHookConfig(this.cwd, this.compatSources);
|
|
2618
2618
|
}
|
|
2619
2619
|
/** Fire every hook registered for `event` and aggregate the decisions. */
|
|
2620
2620
|
async run(payload) {
|
|
@@ -2667,7 +2667,7 @@ var HooksExecutor = class {
|
|
|
2667
2667
|
if (result.exitCode !== 0) {
|
|
2668
2668
|
const stderr = result.stderr.trim();
|
|
2669
2669
|
const base = stderr.length > 0 ? stderr : `Hook exited with code ${result.exitCode}`;
|
|
2670
|
-
const missing =
|
|
2670
|
+
const missing = chunkDLRP7BI6_cjs.undefinedVariablesIn(command.command, env);
|
|
2671
2671
|
if (missing.length === 0) return { decision: "deny", reason: base };
|
|
2672
2672
|
return {
|
|
2673
2673
|
decision: "deny",
|
|
@@ -2679,7 +2679,7 @@ var HooksExecutor = class {
|
|
|
2679
2679
|
};
|
|
2680
2680
|
function runtimeEnvFor(sourcePath, cwd) {
|
|
2681
2681
|
if (sourcePath === void 0) return {};
|
|
2682
|
-
return
|
|
2682
|
+
return chunkDLRP7BI6_cjs.adapterForConfigPath(sourcePath)?.runtimeEnv(cwd) ?? {};
|
|
2683
2683
|
}
|
|
2684
2684
|
function parseDecisionFromStdout(stdout) {
|
|
2685
2685
|
const trimmed = stdout.trim();
|
|
@@ -2852,10 +2852,10 @@ var SkillsManager = class {
|
|
|
2852
2852
|
}
|
|
2853
2853
|
async refresh() {
|
|
2854
2854
|
const roots = this.skillsDir === void 0 ? [
|
|
2855
|
-
...
|
|
2855
|
+
...chunkDLRP7BI6_cjs.projectConfigRoots(this.cwd, this.compatSources, "skills").map(
|
|
2856
2856
|
(root) => path.join(root, "skills")
|
|
2857
2857
|
),
|
|
2858
|
-
...(await
|
|
2858
|
+
...(await chunk5AXMNUCY_cjs.pluginBundleDirs(this.cwd, this.compatSources)).map((b) => path.join(b, "skills"))
|
|
2859
2859
|
] : [this.skillsDir];
|
|
2860
2860
|
const discovered = [];
|
|
2861
2861
|
const seen = /* @__PURE__ */ new Set();
|
|
@@ -3439,7 +3439,7 @@ var HISTOGRAM_NAMES = {
|
|
|
3439
3439
|
};
|
|
3440
3440
|
function safeRequire(moduleName) {
|
|
3441
3441
|
try {
|
|
3442
|
-
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
3442
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-CQLVA4CO.cjs', document.baseURI).href)));
|
|
3443
3443
|
return r(moduleName);
|
|
3444
3444
|
} catch {
|
|
3445
3445
|
return void 0;
|
|
@@ -3682,7 +3682,7 @@ var cachedOtel;
|
|
|
3682
3682
|
function loadOtel() {
|
|
3683
3683
|
if (cachedOtel === void 0) {
|
|
3684
3684
|
try {
|
|
3685
|
-
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-
|
|
3685
|
+
const r = module$1.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('chunk-CQLVA4CO.cjs', document.baseURI).href)));
|
|
3686
3686
|
const mod = r("@opentelemetry/api");
|
|
3687
3687
|
cachedOtel = mod;
|
|
3688
3688
|
} catch {
|
|
@@ -4136,8 +4136,8 @@ var FileContextManager = class {
|
|
|
4136
4136
|
}
|
|
4137
4137
|
};
|
|
4138
4138
|
async function loadContextConfig(cwd) {
|
|
4139
|
-
const mdDir = path.join(
|
|
4140
|
-
const jsonPath = path.join(
|
|
4139
|
+
const mdDir = path.join(chunkDLRP7BI6_cjs.theokitConfigRoot(cwd), "context");
|
|
4140
|
+
const jsonPath = path.join(chunkDLRP7BI6_cjs.theokitConfigRoot(cwd), "context.json");
|
|
4141
4141
|
const mdEntities = await loadMarkdownEntities({
|
|
4142
4142
|
dir: mdDir,
|
|
4143
4143
|
schema: ContextSourceFrontmatterSchema,
|
|
@@ -4146,7 +4146,7 @@ async function loadContextConfig(cwd) {
|
|
|
4146
4146
|
});
|
|
4147
4147
|
if (mdEntities.length > 0) {
|
|
4148
4148
|
if (fs.existsSync(jsonPath)) {
|
|
4149
|
-
|
|
4149
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
4150
4150
|
"context-both-present",
|
|
4151
4151
|
"[theokit-sdk] both .theokit/context/ and .theokit/context.json detected \u2014 using markdown; remove context.json"
|
|
4152
4152
|
);
|
|
@@ -4156,7 +4156,7 @@ async function loadContextConfig(cwd) {
|
|
|
4156
4156
|
};
|
|
4157
4157
|
}
|
|
4158
4158
|
if (!fs.existsSync(jsonPath)) return { sources: [] };
|
|
4159
|
-
|
|
4159
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
4160
4160
|
"context-json-deprecated",
|
|
4161
4161
|
// Names no command: `theokit-migrate-config` was unpublished with the `bin` entry, and a warning
|
|
4162
4162
|
// that tells you to run something the package does not ship is worse than one that tells you
|
|
@@ -4297,7 +4297,7 @@ var PluginsManager = class {
|
|
|
4297
4297
|
}
|
|
4298
4298
|
async refresh() {
|
|
4299
4299
|
this.plugins = [];
|
|
4300
|
-
for (const pluginsRoot of
|
|
4300
|
+
for (const pluginsRoot of chunkDLRP7BI6_cjs.pluginBundleRoots(this.cwd, this.compatSources)) {
|
|
4301
4301
|
await this.refreshRoot(pluginsRoot);
|
|
4302
4302
|
}
|
|
4303
4303
|
}
|
|
@@ -4319,13 +4319,13 @@ var PluginsManager = class {
|
|
|
4319
4319
|
const jsonPath = path.join(pluginsRoot, folderName, "plugin.json");
|
|
4320
4320
|
const metadata = fs.existsSync(mdPath) ? await loadPluginManifestFromMarkdown(this.cwd, pluginsRoot, folderName) : await loadPluginManifestFromJson(this.cwd, jsonPath, folderName);
|
|
4321
4321
|
if (fs.existsSync(mdPath) && fs.existsSync(jsonPath)) {
|
|
4322
|
-
|
|
4322
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
4323
4323
|
`plugin-${folderName}-both`,
|
|
4324
4324
|
`[theokit-sdk] both ${folderName}/PLUGIN.md and ${folderName}/plugin.json detected \u2014 using markdown; remove plugin.json`
|
|
4325
4325
|
);
|
|
4326
4326
|
}
|
|
4327
4327
|
if (!fs.existsSync(mdPath) && fs.existsSync(jsonPath)) {
|
|
4328
|
-
|
|
4328
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
4329
4329
|
"plugin-json-deprecated",
|
|
4330
4330
|
// Same reason as the context.json warning: the CLI it used to name is no longer published.
|
|
4331
4331
|
"[theokit-sdk] plugin.json manifests are deprecated; replace each with a PLUGIN.md"
|
|
@@ -7209,7 +7209,7 @@ function applyPersonalityFilter(exposedTools, whitelist, opts) {
|
|
|
7209
7209
|
if (exposedSet.has(name)) continue;
|
|
7210
7210
|
const hint = suggestClosest(name, exposedSet);
|
|
7211
7211
|
const message = hint !== void 0 ? `[theokit-sdk] personality "${opts?.personalityName ?? "?"}" references unknown tool "${name}"; did you mean "${hint}"?` : `[theokit-sdk] personality "${opts?.personalityName ?? "?"}" references unknown tool "${name}" (not exposed)`;
|
|
7212
|
-
|
|
7212
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
7213
7213
|
`personality-tool-missing|${opts?.agentId ?? "?"}|${opts?.personalityName ?? "?"}|${name}`,
|
|
7214
7214
|
message
|
|
7215
7215
|
);
|
|
@@ -7652,7 +7652,7 @@ async function dispatchLocalRun(args) {
|
|
|
7652
7652
|
});
|
|
7653
7653
|
}
|
|
7654
7654
|
async function readProjectMcpServers(cwd) {
|
|
7655
|
-
const path$1 = path.join(
|
|
7655
|
+
const path$1 = path.join(chunkDLRP7BI6_cjs.theokitConfigRoot(cwd), "mcp.json");
|
|
7656
7656
|
try {
|
|
7657
7657
|
const raw = await promises.readFile(path$1, "utf8");
|
|
7658
7658
|
const parsed = JSON.parse(raw);
|
|
@@ -7894,7 +7894,7 @@ async function reloadLocalAgent(agent) {
|
|
|
7894
7894
|
if (agent.context !== void 0) await agent.context.refresh();
|
|
7895
7895
|
if (agent.skillsManager !== void 0) await agent.skillsManager.refresh();
|
|
7896
7896
|
if (agent.pluginsManager !== void 0) await agent.pluginsManager.refresh();
|
|
7897
|
-
return await
|
|
7897
|
+
return await chunk5AXMNUCY_cjs.loadSubagents(
|
|
7898
7898
|
agent.workspaceCwd,
|
|
7899
7899
|
agent.settingSourcesIncludeProject,
|
|
7900
7900
|
agent.options.agents
|
|
@@ -8928,7 +8928,7 @@ var PersonalityRegistry = class _PersonalityRegistry {
|
|
|
8928
8928
|
* @internal
|
|
8929
8929
|
*/
|
|
8930
8930
|
static async load(cwd) {
|
|
8931
|
-
const projectDir = path.join(
|
|
8931
|
+
const projectDir = path.join(chunkDLRP7BI6_cjs.theokitConfigRoot(cwd), PERSONALITIES_SUFFIX);
|
|
8932
8932
|
const userDir = path.join(os.homedir(), USER_SUBDIR);
|
|
8933
8933
|
const [userEntities, projectEntities] = await Promise.all([
|
|
8934
8934
|
loadMarkdownEntities({
|
|
@@ -8980,7 +8980,7 @@ function addEntity(byName, entity, origin, collisionMap) {
|
|
|
8980
8980
|
);
|
|
8981
8981
|
}
|
|
8982
8982
|
if (origin === "project" && collisionMap?.has(fm.name)) {
|
|
8983
|
-
|
|
8983
|
+
chunkLTLPBGHC_cjs.warnOnce(
|
|
8984
8984
|
`personality-collision-${fm.name}`,
|
|
8985
8985
|
`[theokit-sdk] personality "${fm.name}" overridden by project preset`
|
|
8986
8986
|
);
|
|
@@ -9030,14 +9030,14 @@ async function performPersonalitySwitch(args) {
|
|
|
9030
9030
|
|
|
9031
9031
|
// src/internal/local-agent/local-agent-personality-extensions.ts
|
|
9032
9032
|
function resolveActivePersonalityPreset(args) {
|
|
9033
|
-
const forkCtx =
|
|
9033
|
+
const forkCtx = chunkLTLPBGHC_cjs.currentPersonalityContext();
|
|
9034
9034
|
const slug = forkCtx !== void 0 ? forkCtx.slug : args.personalityStore.active(args.agentId);
|
|
9035
9035
|
if (slug === void 0) return void 0;
|
|
9036
9036
|
return args.personalityRegistry?.get(slug);
|
|
9037
9037
|
}
|
|
9038
9038
|
async function ensurePersonalityRegistryIfNeeded(args) {
|
|
9039
9039
|
if (args.personalityRegistry !== void 0) return args.personalityRegistry;
|
|
9040
|
-
const forkSlug =
|
|
9040
|
+
const forkSlug = chunkLTLPBGHC_cjs.currentPersonalityContext()?.slug;
|
|
9041
9041
|
const ownSlug = args.personalityStore.active(args.agentId);
|
|
9042
9042
|
if (forkSlug === void 0 && ownSlug === void 0) return void 0;
|
|
9043
9043
|
return await PersonalityRegistry.load(args.workspaceCwd);
|
|
@@ -9050,8 +9050,8 @@ function applyPersonalityOverlay(preset, base) {
|
|
|
9050
9050
|
${preset.systemPrompt}`;
|
|
9051
9051
|
}
|
|
9052
9052
|
async function localAgentUsePersonality(agent, name, opts) {
|
|
9053
|
-
if (
|
|
9054
|
-
|
|
9053
|
+
if (chunkLTLPBGHC_cjs.currentPersonalityContext() !== void 0) {
|
|
9054
|
+
chunkLTLPBGHC_cjs.warnPersonalitySwitchInsideFork(agent.agentId);
|
|
9055
9055
|
return null;
|
|
9056
9056
|
}
|
|
9057
9057
|
if (agent.personalityRegistry === void 0) {
|
|
@@ -9112,7 +9112,7 @@ async function* localAgentStreamToCompletion(agent, message, options) {
|
|
|
9112
9112
|
async function localAgentFork(parent, options) {
|
|
9113
9113
|
const { forkAgentImpl } = await import('./fork-agent-WAEQI2DL.cjs');
|
|
9114
9114
|
const { getAgentFacade } = await import('./agent-factory-registry-UU46BUMU.cjs');
|
|
9115
|
-
const { withPersonalityContext } = await import('./context-
|
|
9115
|
+
const { withPersonalityContext } = await import('./context-XQJIGZMR.cjs');
|
|
9116
9116
|
const create = getAgentFacade().create;
|
|
9117
9117
|
return withPersonalityContext(
|
|
9118
9118
|
{ slug: parent.personalitySlugSnapshot, isFork: true },
|
|
@@ -9904,7 +9904,7 @@ var LocalAgent = class {
|
|
|
9904
9904
|
if (sub.plugins !== void 0) this.plugins = sub.plugins;
|
|
9905
9905
|
reportUnknownLocalOptions(options.local);
|
|
9906
9906
|
const compatSources = resolveCompatSources(options, this.workspaceCwd);
|
|
9907
|
-
|
|
9907
|
+
chunkDLRP7BI6_cjs.reportUndeclaredSources(this.workspaceCwd, compatSources);
|
|
9908
9908
|
this.hooksExecutor = new HooksExecutor(this.workspaceCwd, compatSources);
|
|
9909
9909
|
this.defaultMemoryProviderForLoop = createLocalAgentMemoryProvider({
|
|
9910
9910
|
agentOptions: options,
|
|
@@ -9932,7 +9932,7 @@ var LocalAgent = class {
|
|
|
9932
9932
|
if (this.pluginsManager !== void 0) await this.pluginsManager.initialize();
|
|
9933
9933
|
const codePlugins = chunkBV2MWEMV_cjs.extractCodePlugins(this.options.plugins);
|
|
9934
9934
|
await this.pluginManagerCode.initialize(codePlugins);
|
|
9935
|
-
this.resolvedSubagents = await
|
|
9935
|
+
this.resolvedSubagents = await chunk5AXMNUCY_cjs.loadSubagents(
|
|
9936
9936
|
this.workspaceCwd,
|
|
9937
9937
|
this.settingSourcesIncludeProject,
|
|
9938
9938
|
this.options.agents,
|
|
@@ -10885,7 +10885,7 @@ var Agent = class _Agent {
|
|
|
10885
10885
|
*/
|
|
10886
10886
|
static async describe(agentId) {
|
|
10887
10887
|
const agent = await getRegisteredAgentOrThrow(agentId);
|
|
10888
|
-
const { loadSubagents: loadSubagents2 } = await import('./subagents-loader-
|
|
10888
|
+
const { loadSubagents: loadSubagents2 } = await import('./subagents-loader-OMOH6ERO.cjs');
|
|
10889
10889
|
const settingSources = agent.options.local?.settingSources;
|
|
10890
10890
|
const subagents = await loadSubagents2(
|
|
10891
10891
|
agent.cwd ?? process.cwd(),
|
|
@@ -10984,5 +10984,5 @@ exports.generateCronId = generateCronId;
|
|
|
10984
10984
|
exports.getPricingEntry = getPricingEntry;
|
|
10985
10985
|
exports.openRouterMemoryEmbeddingProviderAdapter = openRouterMemoryEmbeddingProviderAdapter;
|
|
10986
10986
|
exports.resolveSessionDir = resolveSessionDir;
|
|
10987
|
-
//# sourceMappingURL=chunk-
|
|
10988
|
-
//# sourceMappingURL=chunk-
|
|
10987
|
+
//# sourceMappingURL=chunk-CQLVA4CO.cjs.map
|
|
10988
|
+
//# sourceMappingURL=chunk-CQLVA4CO.cjs.map
|