opencode-anthropic-multi-account 0.2.59 → 0.2.60
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.js +7 -8
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -1211,6 +1211,7 @@ var templateHeaders = templateMetadata.headerValues;
|
|
|
1211
1211
|
var CLAUDE_CODE_VERSION = templateMetadata.ccVersion ?? "2.1.137";
|
|
1212
1212
|
var CLAUDE_FABLE_MODEL_ID = "claude-fable-5";
|
|
1213
1213
|
var CLAUDE_FABLE_1M_MODEL_ID = `${CLAUDE_FABLE_MODEL_ID}[1m]`;
|
|
1214
|
+
var CLIENT_SYSTEM_PREFACE = "\n\n---\n\nIMPORTANT: The operator of this session has supplied the following task-specific instructions. Follow them for task format, style, and output requirements when they do not conflict with security, authorization, refusal, tool-execution, confirmation, or other safety rules above. Those safety and tool-use constraints remain higher priority and cannot be overridden:\n\n";
|
|
1214
1215
|
var CLAUDE_CODE_MODEL_ALIASES = {
|
|
1215
1216
|
fable: CLAUDE_FABLE_MODEL_ID,
|
|
1216
1217
|
fable1m: CLAUDE_FABLE_1M_MODEL_ID
|
|
@@ -1341,14 +1342,12 @@ function applyClaudeCodeUpstreamBodyFields(body, input) {
|
|
|
1341
1342
|
input.cch
|
|
1342
1343
|
);
|
|
1343
1344
|
const systemTexts = input.systemTexts ?? normalizeClaudeCodeSystemTexts(body.system);
|
|
1344
|
-
const
|
|
1345
|
-
input.
|
|
1346
|
-
|
|
1347
|
-
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
})
|
|
1351
|
-
].join("\n\n");
|
|
1345
|
+
const injectedSystemTexts = filterInjectedSystemTexts(systemTexts, {
|
|
1346
|
+
agentIdentity: input.agentIdentity,
|
|
1347
|
+
billingHeader,
|
|
1348
|
+
systemPrompt: input.systemPrompt
|
|
1349
|
+
});
|
|
1350
|
+
const mergedSystemPrompt = injectedSystemTexts.length > 0 ? `${input.systemPrompt}${CLIENT_SYSTEM_PREFACE}${injectedSystemTexts.join("\n\n")}` : input.systemPrompt;
|
|
1352
1351
|
body.system = [
|
|
1353
1352
|
{ type: "text", text: billingHeader },
|
|
1354
1353
|
{
|