negotium 0.2.8 → 0.2.9
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/agent-helpers.js +19 -19
- package/dist/agent-helpers.js.map +5 -5
- package/dist/hosted-agent.js +2 -2
- package/dist/hosted-agent.js.map +2 -2
- package/dist/main.js +19 -19
- package/dist/main.js.map +5 -5
- package/dist/mcp-factories.js +19 -19
- package/dist/mcp-factories.js.map +5 -5
- package/dist/registry.js +8 -4
- package/dist/registry.js.map +4 -4
- package/dist/runtime/src/agents/maestro-registry.ts +32 -2
- package/dist/runtime/src/runtime/turn-runner.ts +34 -11
- package/dist/runtime/src/version.ts +1 -1
- package/dist/types/packages/core/src/version.d.ts +1 -1
- package/package.json +2 -2
package/dist/mcp-factories.js
CHANGED
|
@@ -940,7 +940,7 @@ var init_claude_registry = __esm(() => {
|
|
|
940
940
|
});
|
|
941
941
|
|
|
942
942
|
// ../../packages/core/src/version.ts
|
|
943
|
-
var NEGOTIUM_VERSION = "0.2.
|
|
943
|
+
var NEGOTIUM_VERSION = "0.2.9";
|
|
944
944
|
|
|
945
945
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
946
946
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -3131,6 +3131,9 @@ function existingCreatedAt(path) {
|
|
|
3131
3131
|
return;
|
|
3132
3132
|
}
|
|
3133
3133
|
}
|
|
3134
|
+
function nonEmptyTurnText(text) {
|
|
3135
|
+
return text.trim().length > 0 ? text : BLANK_TURN_PLACEHOLDER;
|
|
3136
|
+
}
|
|
3134
3137
|
function writeRollout(options) {
|
|
3135
3138
|
const sessionId = options.reuseSessionId ?? randomUUID4();
|
|
3136
3139
|
assertUuidLike("sessionId", sessionId);
|
|
@@ -3138,8 +3141,8 @@ function writeRollout(options) {
|
|
|
3138
3141
|
const path = maestroSessionPath(sessionId);
|
|
3139
3142
|
mkdirSync7(maestroSessionsDir(), { recursive: true });
|
|
3140
3143
|
const messages = extractChatPairs(options.entries).flatMap((pair) => [
|
|
3141
|
-
{ role: "user", content: pair.userText },
|
|
3142
|
-
{ role: "assistant", content: pair.assistantText }
|
|
3144
|
+
{ role: "user", content: nonEmptyTurnText(pair.userText) },
|
|
3145
|
+
{ role: "assistant", content: nonEmptyTurnText(pair.assistantText) }
|
|
3143
3146
|
]);
|
|
3144
3147
|
const lines = [
|
|
3145
3148
|
{
|
|
@@ -3159,7 +3162,7 @@ function writeRollout(options) {
|
|
|
3159
3162
|
});
|
|
3160
3163
|
return { sessionId, rolloutPath: path };
|
|
3161
3164
|
}
|
|
3162
|
-
var ALIAS_MAP2, VALID_MODELS, VALID_EFFORTS3, maestroRegistry, maestroRegistryOperations;
|
|
3165
|
+
var ALIAS_MAP2, VALID_MODELS, VALID_EFFORTS3, maestroRegistry, BLANK_TURN_PLACEHOLDER = "(no text content in this turn)", maestroRegistryOperations;
|
|
3163
3166
|
var init_maestro_registry = __esm(() => {
|
|
3164
3167
|
init_shared();
|
|
3165
3168
|
init_logger();
|
|
@@ -16217,10 +16220,9 @@ function startAiTurn(params) {
|
|
|
16217
16220
|
].join(`
|
|
16218
16221
|
`);
|
|
16219
16222
|
}
|
|
16223
|
+
const turnReminders = [];
|
|
16220
16224
|
if (params.from === FROM_AUTO_CONTINUE) {
|
|
16221
|
-
|
|
16222
|
-
|
|
16223
|
-
<system-reminder>\uC774 \uD134\uC740 \uC124\uC815 \uC790\uB3D9 \uC870\uC815(effort/model/agent) \uD6C4 \uC790\uB3D9 \uC7AC\uAC1C\uB41C \uD134\uC774\uB2E4. effort/model/agent \uB09C\uC774\uB3C4 \uC7AC\uD3C9\uAC00 \uBC0F \uC124\uC815 \uBCC0\uACBD \uC5C6\uC774 \uC989\uC2DC \uC791\uC5C5\uC744 \uC2DC\uC791\uD560 \uAC83.</system-reminder>`;
|
|
16225
|
+
turnReminders.push("<system-reminder>\uC774 \uD134\uC740 \uC124\uC815 \uC790\uB3D9 \uC870\uC815(effort/model/agent) \uD6C4 \uC790\uB3D9 \uC7AC\uAC1C\uB41C \uD134\uC774\uB2E4. effort/model/agent \uB09C\uC774\uB3C4 \uC7AC\uD3C9\uAC00 \uBC0F \uC124\uC815 \uBCC0\uACBD \uC5C6\uC774 \uC989\uC2DC \uC791\uC5C5\uC744 \uC2DC\uC791\uD560 \uAC83.</system-reminder>");
|
|
16224
16226
|
}
|
|
16225
16227
|
if (!silent && !sessionRetried) {
|
|
16226
16228
|
const promptsToRecord = userConversationPromptsToRecord(renderedUserPrompts, loggedUserMessageCount, agentPrompt);
|
|
@@ -16303,26 +16305,24 @@ function startAiTurn(params) {
|
|
|
16303
16305
|
logger.warn({ topicId, err }, "ai: ensureBgBash failed \u2014 proceeding without background bash tools");
|
|
16304
16306
|
}
|
|
16305
16307
|
}
|
|
16306
|
-
let effectiveSystemPrompt = systemPrompt;
|
|
16307
16308
|
if (playwrightRequested && !browserProfileOwner) {
|
|
16308
|
-
|
|
16309
|
-
effectiveSystemPrompt = `${effectiveSystemPrompt}
|
|
16310
|
-
|
|
16311
|
-
${ownerOnlyNote}`;
|
|
16309
|
+
turnReminders.push("<system-reminder>Browser tools are unavailable in this turn because browser profiles are private to the topic owner. Do not attempt browser calls or ask to reuse the owner's login state.</system-reminder>");
|
|
16312
16310
|
}
|
|
16313
16311
|
if (consumePlaywrightUnavailable(userId, topic.title)) {
|
|
16314
|
-
|
|
16315
|
-
effectiveSystemPrompt = `${effectiveSystemPrompt}
|
|
16316
|
-
|
|
16317
|
-
${playwrightNote}`;
|
|
16312
|
+
turnReminders.push("<system-reminder>Playwright browser tools are UNAVAILABLE this turn. The `mcp__playwright__*` tools have been removed from this turn's catalog because the long-lived browser MCP could not be prepared. Do not attempt to call browser tools. If browser interaction is required, ask the user to retry shortly or use a non-browser alternative.</system-reminder>");
|
|
16318
16313
|
}
|
|
16314
|
+
const effectivePrompt = turnReminders.length > 0 ? `${agentPrompt}
|
|
16315
|
+
|
|
16316
|
+
${turnReminders.join(`
|
|
16317
|
+
|
|
16318
|
+
`)}` : agentPrompt;
|
|
16319
16319
|
try {
|
|
16320
16320
|
yield* runAgent({
|
|
16321
16321
|
agent: agentKind,
|
|
16322
|
-
prompt:
|
|
16322
|
+
prompt: effectivePrompt,
|
|
16323
16323
|
attachments: promptAttachments,
|
|
16324
16324
|
cwd: workspaceCwd,
|
|
16325
|
-
systemPrompt
|
|
16325
|
+
systemPrompt,
|
|
16326
16326
|
sessionId,
|
|
16327
16327
|
userId,
|
|
16328
16328
|
vaultUserId,
|
|
@@ -19669,4 +19669,4 @@ export {
|
|
|
19669
19669
|
createAgentHealthMcpServer
|
|
19670
19670
|
};
|
|
19671
19671
|
|
|
19672
|
-
//# debugId=
|
|
19672
|
+
//# debugId=748AFA809FA3BD1164756E2164756E21
|