la-machina-engine 0.9.0 → 0.10.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/index.cjs +6 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +29 -0
- package/dist/index.d.ts +29 -0
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -7979,7 +7979,10 @@ function getMcpSection(options) {
|
|
|
7979
7979
|
// src/prompts/systemPrompt.ts
|
|
7980
7980
|
async function buildSystemPrompt(options) {
|
|
7981
7981
|
const sections = [];
|
|
7982
|
-
if (
|
|
7982
|
+
if (options.coordinatorMode) {
|
|
7983
|
+
} else if (options.staticBase !== void 0 && options.staticBase.length > 0) {
|
|
7984
|
+
sections.push(options.staticBase);
|
|
7985
|
+
} else {
|
|
7983
7986
|
sections.push(getBaseSection());
|
|
7984
7987
|
sections.push(getDoingTasksSection());
|
|
7985
7988
|
sections.push(getActionsSection());
|
|
@@ -10522,6 +10525,7 @@ var Engine = class {
|
|
|
10522
10525
|
const knowledgeRuntime = this.resolveKnowledgeRuntime(options.knowledge, storage);
|
|
10523
10526
|
let systemPrompt = await buildSystemPrompt({
|
|
10524
10527
|
...coordinatorBase !== void 0 ? { base: coordinatorBase } : {},
|
|
10528
|
+
...options.systemPromptBase !== void 0 ? { staticBase: options.systemPromptBase } : {},
|
|
10525
10529
|
memory,
|
|
10526
10530
|
storage,
|
|
10527
10531
|
// When an override was supplied, skip the legacy disk-scan path.
|
|
@@ -10719,6 +10723,7 @@ var Engine = class {
|
|
|
10719
10723
|
const knowledgeRuntime = this.resolveKnowledgeRuntime(options.knowledge, storage);
|
|
10720
10724
|
let systemPrompt = await buildSystemPrompt({
|
|
10721
10725
|
...coordinatorBase !== void 0 ? { base: coordinatorBase } : {},
|
|
10726
|
+
...options.systemPromptBase !== void 0 ? { staticBase: options.systemPromptBase } : {},
|
|
10722
10727
|
memory,
|
|
10723
10728
|
storage,
|
|
10724
10729
|
// When an override was supplied, skip the legacy disk-scan path.
|