blun-king-cli 9.1.254 → 9.1.255
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/bin/natural-presence-policy.cjs +13 -0
- package/blun.mjs +4 -2
- package/package.json +1 -1
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
const NATURAL_PRESENCE_BLOCK = `## Natural presence
|
|
4
|
+
|
|
5
|
+
Keep the loaded soul intact and let it shape the voice. Speak like an ongoing teammate, using only real shared context; never invent history or feelings. During active work, the current task and evidence come first. Do not force personal questions, generic offers, praise, or a question at every ending. Silence and a clean ending are valid.`;
|
|
6
|
+
|
|
7
|
+
function naturalPresenceSystemBlock() {
|
|
8
|
+
return NATURAL_PRESENCE_BLOCK;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
module.exports = {
|
|
12
|
+
naturalPresenceSystemBlock,
|
|
13
|
+
};
|
package/blun.mjs
CHANGED
|
@@ -21439,6 +21439,7 @@ var init_list_directory = __esmMin((() => {
|
|
|
21439
21439
|
//#region ../../packages/agent-core/src/profile/context.ts
|
|
21440
21440
|
var { boundSystemPromptDirectoryListing, compactRepeatedConductSections, fingerprintSystemPromptContext, refreshedSystemPromptContext, resolveStableSystemPromptTimestamp } = createRequire(import.meta.url)("./bin/system-prompt-context-policy.cjs");
|
|
21441
21441
|
var { identitySystemBlock, recordChannelIdentity } = createRequire(import.meta.url)("./bin/identity-context-policy.cjs");
|
|
21442
|
+
var { naturalPresenceSystemBlock } = createRequire(import.meta.url)("./bin/natural-presence-policy.cjs");
|
|
21442
21443
|
async function prepareSystemPromptContext(kaos, brandHome, options) {
|
|
21443
21444
|
const additionalDirs = normalizeAdditionalDirs(options?.additionalDirs ?? []);
|
|
21444
21445
|
const [cwdListing, agentsMdResult, additionalDirsInfo] = await Promise.all([
|
|
@@ -28384,9 +28385,10 @@ function buildTemplateVars(context, promptVars, tools) {
|
|
|
28384
28385
|
const now = context.now instanceof Date ? context.now.toISOString() : context.now ?? (/* @__PURE__ */ new Date()).toISOString();
|
|
28385
28386
|
const roleBase = context.roleAdditional ?? promptVars["ROLE_ADDITIONAL"] ?? promptVars["roleAdditional"] ?? "";
|
|
28386
28387
|
const roleAdditional = [
|
|
28387
|
-
identitySystemBlock(),
|
|
28388
28388
|
personaSystemBlock(),
|
|
28389
28389
|
soulSystemBlock(),
|
|
28390
|
+
identitySystemBlock(),
|
|
28391
|
+
naturalPresenceSystemBlock(),
|
|
28390
28392
|
conductSystemBlock(),
|
|
28391
28393
|
roleBase
|
|
28392
28394
|
].filter((s) => s.length > 0).join("\n\n");
|
|
@@ -265005,7 +265007,7 @@ var init_agent = __esmMin((() => {
|
|
|
265005
265007
|
return base.length === 0 ? this.runtimeSystemPromptAppend : `${base}\n\n${this.runtimeSystemPromptAppend}`;
|
|
265006
265008
|
}
|
|
265007
265009
|
get fastConversationSystemPrompt() {
|
|
265008
|
-
return [
|
|
265010
|
+
return [personaSystemBlock(), soulSystemBlock(), identitySystemBlock(), naturalPresenceSystemBlock(), conductSystemBlock(), `## Fast conversation mode
|
|
265009
265011
|
|
|
265010
265012
|
- Answer the user's current conversational message directly and concisely.
|
|
265011
265013
|
- Use the language of the user's latest message unless the persona specifies a language override.
|