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/agent-helpers.js
CHANGED
|
@@ -2147,7 +2147,7 @@ var init_claude_registry = __esm(() => {
|
|
|
2147
2147
|
});
|
|
2148
2148
|
|
|
2149
2149
|
// ../../packages/core/src/version.ts
|
|
2150
|
-
var NEGOTIUM_VERSION = "0.2.
|
|
2150
|
+
var NEGOTIUM_VERSION = "0.2.9";
|
|
2151
2151
|
|
|
2152
2152
|
// ../../packages/core/src/agents/codex-native-multi-agent.ts
|
|
2153
2153
|
import { spawn as spawn2 } from "child_process";
|
|
@@ -3088,6 +3088,9 @@ function existingCreatedAt(path) {
|
|
|
3088
3088
|
return;
|
|
3089
3089
|
}
|
|
3090
3090
|
}
|
|
3091
|
+
function nonEmptyTurnText(text) {
|
|
3092
|
+
return text.trim().length > 0 ? text : BLANK_TURN_PLACEHOLDER;
|
|
3093
|
+
}
|
|
3091
3094
|
function writeRollout(options) {
|
|
3092
3095
|
const sessionId = options.reuseSessionId ?? randomUUID3();
|
|
3093
3096
|
assertUuidLike("sessionId", sessionId);
|
|
@@ -3095,8 +3098,8 @@ function writeRollout(options) {
|
|
|
3095
3098
|
const path = maestroSessionPath(sessionId);
|
|
3096
3099
|
mkdirSync6(maestroSessionsDir(), { recursive: true });
|
|
3097
3100
|
const messages = extractChatPairs(options.entries).flatMap((pair) => [
|
|
3098
|
-
{ role: "user", content: pair.userText },
|
|
3099
|
-
{ role: "assistant", content: pair.assistantText }
|
|
3101
|
+
{ role: "user", content: nonEmptyTurnText(pair.userText) },
|
|
3102
|
+
{ role: "assistant", content: nonEmptyTurnText(pair.assistantText) }
|
|
3100
3103
|
]);
|
|
3101
3104
|
const lines = [
|
|
3102
3105
|
{
|
|
@@ -3116,7 +3119,7 @@ function writeRollout(options) {
|
|
|
3116
3119
|
});
|
|
3117
3120
|
return { sessionId, rolloutPath: path };
|
|
3118
3121
|
}
|
|
3119
|
-
var ALIAS_MAP2, VALID_MODELS, VALID_EFFORTS3, maestroRegistry, maestroRegistryOperations;
|
|
3122
|
+
var ALIAS_MAP2, VALID_MODELS, VALID_EFFORTS3, maestroRegistry, BLANK_TURN_PLACEHOLDER = "(no text content in this turn)", maestroRegistryOperations;
|
|
3120
3123
|
var init_maestro_registry = __esm(() => {
|
|
3121
3124
|
init_shared();
|
|
3122
3125
|
init_logger();
|
|
@@ -16231,10 +16234,9 @@ function startAiTurn(params) {
|
|
|
16231
16234
|
].join(`
|
|
16232
16235
|
`);
|
|
16233
16236
|
}
|
|
16237
|
+
const turnReminders = [];
|
|
16234
16238
|
if (params.from === FROM_AUTO_CONTINUE) {
|
|
16235
|
-
|
|
16236
|
-
|
|
16237
|
-
<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>`;
|
|
16239
|
+
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>");
|
|
16238
16240
|
}
|
|
16239
16241
|
if (!silent && !sessionRetried) {
|
|
16240
16242
|
const promptsToRecord = userConversationPromptsToRecord(renderedUserPrompts, loggedUserMessageCount, agentPrompt);
|
|
@@ -16317,26 +16319,24 @@ function startAiTurn(params) {
|
|
|
16317
16319
|
logger.warn({ topicId, err: err2 }, "ai: ensureBgBash failed \u2014 proceeding without background bash tools");
|
|
16318
16320
|
}
|
|
16319
16321
|
}
|
|
16320
|
-
let effectiveSystemPrompt = systemPrompt;
|
|
16321
16322
|
if (playwrightRequested && !browserProfileOwner) {
|
|
16322
|
-
|
|
16323
|
-
effectiveSystemPrompt = `${effectiveSystemPrompt}
|
|
16324
|
-
|
|
16325
|
-
${ownerOnlyNote}`;
|
|
16323
|
+
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>");
|
|
16326
16324
|
}
|
|
16327
16325
|
if (consumePlaywrightUnavailable(userId, topic.title)) {
|
|
16328
|
-
|
|
16329
|
-
effectiveSystemPrompt = `${effectiveSystemPrompt}
|
|
16330
|
-
|
|
16331
|
-
${playwrightNote}`;
|
|
16326
|
+
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>");
|
|
16332
16327
|
}
|
|
16328
|
+
const effectivePrompt = turnReminders.length > 0 ? `${agentPrompt}
|
|
16329
|
+
|
|
16330
|
+
${turnReminders.join(`
|
|
16331
|
+
|
|
16332
|
+
`)}` : agentPrompt;
|
|
16333
16333
|
try {
|
|
16334
16334
|
yield* runAgent({
|
|
16335
16335
|
agent: agentKind,
|
|
16336
|
-
prompt:
|
|
16336
|
+
prompt: effectivePrompt,
|
|
16337
16337
|
attachments: promptAttachments,
|
|
16338
16338
|
cwd: workspaceCwd,
|
|
16339
|
-
systemPrompt
|
|
16339
|
+
systemPrompt,
|
|
16340
16340
|
sessionId,
|
|
16341
16341
|
userId,
|
|
16342
16342
|
vaultUserId,
|
|
@@ -18309,4 +18309,4 @@ export {
|
|
|
18309
18309
|
DEFAULT_SELF_CONFIG_PRODUCT
|
|
18310
18310
|
};
|
|
18311
18311
|
|
|
18312
|
-
//# debugId=
|
|
18312
|
+
//# debugId=8D09CAB15E720F3E64756E2164756E21
|