bkper 4.12.2 → 4.12.3

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/README.md CHANGED
@@ -115,7 +115,7 @@ bkper agent install <pi-package-source>
115
115
  bkper agent --help
116
116
  ```
117
117
 
118
- `bkper agent` keeps Bkper defaults (including the Bkper system prompt) unless you explicitly pass `--system-prompt`.
118
+ `bkper agent` keeps Bkper defaults (appending Bkper domain context to Pi's default prompt) unless you explicitly pass `--system-prompt`.
119
119
  Use `bkper help agent` for the Bkper CLI command help, and `bkper agent --help` for Pi help.
120
120
 
121
121
  For all available passthrough flags and commands, see the Pi CLI reference:
@@ -871,7 +871,7 @@ deployment:
871
871
  #### Agent
872
872
 
873
873
  - `agent` - Start the interactive Bkper Agent
874
- - `agent <pi-args...>` - Run Pi CLI with Bkper defaults (system prompt/resources)
874
+ - `agent <pi-args...>` - Run Pi CLI with Bkper defaults (domain context/resources)
875
875
 
876
876
  #### App Lifecycle
877
877
 
@@ -24,6 +24,7 @@ export interface AgentModeDependencies {
24
24
  run(): Promise<void>;
25
25
  };
26
26
  }
27
+ export declare function appendBkperAgentPrompt(base: string[]): string[];
27
28
  export declare function registerBkperAgentStartupExtension(pi: StartupExtensionAPI, startupMaintenance?: typeof runStartupMaintenance): void;
28
29
  export declare function runAgentMode(dependencies?: AgentModeDependencies): Promise<void>;
29
30
  export {};
@@ -1 +1 @@
1
- {"version":3,"file":"run-agent-mode.d.ts","sourceRoot":"","sources":["../../src/agent/run-agent-mode.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AAGjE,KAAK,wBAAwB,GAAG;IAC5B,MAAM,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;CAC3B,CAAC;AAEF,KAAK,gBAAgB,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,CAAC;AAErD,KAAK,mBAAmB,GAAG;IACvB,EAAE,EAAE;QACA,MAAM,EA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mB,GAAG;IACvB,EAAE,EAAE;QACA,MAAM,EAAE,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,gBAAgB,KAAK,IAAI,CAAC;KAC9D,CAAC;CACL,CAAC;AAEF,KAAK,mBAAmB,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,OAAO,EAAE,mBAAmB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC;AAE3F,KAAK,mBAAmB,GAAG;IACvB,EAAE,EAAE,CAAC,KAAK,EAAE,eAAe,EAAE,OAAO,EAAE,mBAAmB,KAAK,IAAI,CAAC;CACtE,CAAC;AAEF,MAAM,WAAW,qBAAqB;IAClC,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;IACrD,aAAa,EAAE,CAAC,OAAO,EAAE;QACrB,cAAc,EAAE,wBAAwB,CAAC;KAC5C,KAAK,OAAO,CAAC;QACV,OAAO,EAAE,OAAO,CAAC;QACjB,oBAAoB,CAAC,EAAE,MAAM,CAAC;KACjC,CAAC,CAAC;IACH,qBAAqB,EAAE,CACnB,OAAO,EAAE,OAAO,EAChB,oBAAoB,CAAC,EAAE,MAAM,KAC5B;QACD,GAAG,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;KACxB,CAAC;CACL;AAED,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,MAAM,EAAE,CAE/D;AAED,wBAAgB,kCAAkC,CAC9C,EAAE,EAAE,mBAAmB,EACvB,kBAAkB,GAAE,OAAO,qBAA6C,GACzE,IAAI,CAeN;AAyBD,wBAAsB,YAAY,CAC9B,YAAY,GAAE,qBAAmD,GAClE,OAAO,CAAC,IAAI,CAAC,CAUf"}
@@ -9,7 +9,10 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { createAgentSession, DefaultResourceLoader, InteractiveMode, } from '@mariozechner/pi-coding-agent';
11
11
  import { runStartupMaintenance } from './startup-maintenance.js';
12
- import { getBkperAgentSystemPrompt } from './system-prompt.js';
12
+ import { getBkperAgentAppendPrompt } from './system-prompt.js';
13
+ export function appendBkperAgentPrompt(base) {
14
+ return [...base, getBkperAgentAppendPrompt()];
15
+ }
13
16
  export function registerBkperAgentStartupExtension(pi, startupMaintenance = runStartupMaintenance) {
14
17
  let startupMaintenanceTriggered = false;
15
18
  pi.on('session_start', (_event, ctx) => __awaiter(this, void 0, void 0, function* () {
@@ -26,8 +29,7 @@ export function registerBkperAgentStartupExtension(pi, startupMaintenance = runS
26
29
  function createDefaultDependencies() {
27
30
  return {
28
31
  createResourceLoader: () => new DefaultResourceLoader({
29
- systemPromptOverride: () => getBkperAgentSystemPrompt(),
30
- appendSystemPromptOverride: () => [],
32
+ appendSystemPromptOverride: appendBkperAgentPrompt,
31
33
  extensionFactories: [
32
34
  (pi) => {
33
35
  registerBkperAgentStartupExtension(pi);
@@ -1 +1 @@
1
- {"version":3,"file":"run-agent-mode.js","sourceRoot":"","sources":["../../src/agent/run-agent-mode.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,kBAAkB,EAClB,qBAAqB,EACrB,eAAe,GAGlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,qBAAqB,EAAE,MAAM,0BAA0B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAAE,MAAM,oBAAoB,CAAC;AAoC/D,MAAM,UAAU,kCAAkC,CAC9C,EAAuB,EACvB,qBAAmD,qBAAqB;IAExE,IAAI,2BAA2B,GAAG,KAAK,CAAC;IAExC,EAAE,CAAC,EAAE,CAAC,eAAe,EAAE,CAAO,MAAM,EAAE,GAAG,EAAE,EAAE;QACzC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,oBAAoB,EAAE,MAAM,CAAC,CAAC;QAE5C,IAAI,2BAA2B,EAAE,CAAC;YAC9B,OAAO;QACX,CAAC;QACD,2BAA2B,GAAG,IAAI,CAAC;QAEnC,KAAK,kBAAkB,CAAC;YACpB,MAAM,EAAE,CAAC,OAAO,EA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Ac,EAAE;YACpC,OAAA,kBAAkB,CAAC;gBACf,cAAc,EACV,cAA0E;aACjF,CAAC,CAAA;UAAA;QACN,qBAAqB,EAAE,CAAC,OAAO,EAAE,oBAAoB,EAAE,EAAE,CACrD,IAAI,eAAe,CAAC,OAA2D,EAAE;YAC7E,oBAAoB;SACvB,CAAC;KACT,CAAC;AACN,CAAC;AAED,MAAM,UAAgB,YAAY;yDAC9B,eAAsC,yBAAyB,EAAE;;;QAEjE,YAAA,OAAO,CAAC,GAAG,EAAC,qBAAqB,uCAArB,qBAAqB,GAAK,GAAG,EAAC;QAE1C,MAAM,cAAc,GAAG,YAAY,CAAC,oBAAoB,EAAE,CAAC;QAC3D,MAAM,cAAc,CAAC,MAAM,EAAE,CAAC;QAE9B,MAAM,EAAE,OAAO,EAAE,oBAAoB,EAAE,GAAG,MAAM,YAAY,CAAC,aAAa,CAAC,EAAE,cAAc,EAAE,CAAC,CAAC;QAC/F,MAAM,IAAI,GAAG,YAAY,CAAC,qBAAqB,CAAC,OAAO,EAAE,oBAAoB,CAAC,CAAC;QAE/E,MAAM,IAAI,CAAC,GAAG,EAAE,CAAC;IACrB,CAAC;CAAA"}
@@ -1,3 +1,3 @@
1
- export declare function getBkperAgentSystemPrompt(): string;
2
- export declare const BKPER_AGENT_SYSTEM_PROMPT = "# You are a Bkper team member\n\nYou think in resources, movements, and balances \u2014 not debits and credits. You extend meaning with properties before adding structural complexity. You protect the zero-sum invariant above all else.\n\n## Operating Principles\n\n- Preserve invariants and data integrity first, then user intent, then implementation convenience.\n- Model domain and flows before coding; represent business reality, not technical shortcuts.\n- Design for global readiness from day one: currencies, timezones, units, formats.\n- For conceptual questions, answer directly and concisely before reaching for tools.\n";
1
+ export declare function getBkperAgentAppendPrompt(): string;
2
+ export declare const BKPER_AGENT_APPEND_PROMPT = "# Bkper Context\n\nYou are a Bkper team member.\n\nFor normal Bkper work, prioritize Bkper domain context, local project instructions, and surrounding files over Pi customization topics. Pi documentation is relevant only when the task is specifically about Pi itself or its runtime or customization.\n\n## Operating Principles\n\n- Protect the zero-sum invariant above all else.\n- Preserve invariants and data integrity first, then user intent, then implementation convenience.\n- Think in resources, movements, and balances \u2014 not debits and credits.\n- Extend meaning with properties before adding structural complexity.\n- Model domain and flows before coding; represent business reality, not technical shortcuts.\n- Prefer simplicity over cleverness; choose small, boring, maintainable solutions.\n- Question the premise before adding complexity; prefer simplifying or removing over layering new structure.\n- Design for global readiness from day one: currencies, timezones, units, and formats.\n- Treat performance and security as foundational concerns.\n- For conceptual questions, answer directly and concisely before reaching for tools.\n";
3
3
  //# sourceMappingURL=system-prompt.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAaA,wBAAgB,yBAAyB,IAAI,MAAM,CAsBlD;AAED,eAAO,MAAM,yBAAyB,0nBAUrC,CAAC"}
1
+ {"version":3,"file":"system-prompt.d.ts","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAaA,wBAAgB,yBAAyB,IAAI,MAAM,CAuBlD;AAED,eAAO,MAAM,yBAAyB,ooCAkBrC,CAAC"}
@@ -8,38 +8,47 @@ function resolveCoreConceptsPath() {
8
8
  const thisDir = path.dirname(fileURLToPath(import.meta.url));
9
9
  return path.resolve(thisDir, '..', 'docs', 'core-concepts.md');
10
10
  }
11
- export function getBkperAgentSystemPrompt() {
11
+ export function getBkperAgentAppendPrompt() {
12
12
  const cliRefPath = resolveCliReferencePath();
13
13
  const coreConceptsPath = resolveCoreConceptsPath();
14
- return `${BKPER_AGENT_SYSTEM_PROMPT}
15
- ## Reference Loading Rules
14
+ return `${BKPER_AGENT_APPEND_PROMPT}
15
+ ## Reference Routing
16
16
 
17
- If the task touches Bkper accounting semantics or data modeling — such as Accounts, Transactions, balances, account types, groups, books, or mapping real-world flows into Bkper — read:
17
+ - Read local \`AGENTS.md\`, nearby files, and existing tests first for project-specific work.
18
+ - If the task touches Bkper accounting semantics or data modeling — such as Accounts, Transactions, balances, account types, groups, books, or mapping real-world flows into Bkper — read:
18
19
 
19
20
  \`\`\`
20
21
  ${coreConceptsPath}
21
22
  \`\`\`
22
23
 
23
- If the task involves using or executing \`bkper\` CLI commands, read:
24
+ - If the task involves using, generating, or executing \`bkper\` CLI commands, read:
24
25
 
25
26
  \`\`\`
26
27
  ${cliRefPath}
27
28
  \`\`\`
28
29
 
29
- For generic engineering work, you may proceed without loading either reference unless those semantics become relevant.
30
-
31
- When in doubt, read first.
30
+ - Read Pi documentation only when the task is specifically about Pi itself: prompt behavior, extensions, skills, themes, TUI, SDK, custom tools, model/provider integration, or other Pi runtime customization.
31
+ - For generic engineering work, do not load Bkper or Pi reference docs unless directly relevant.
32
+ - When scope is unclear, inspect local files and project instructions first; load reference docs only after identifying a concrete need.
32
33
  `;
33
34
  }
34
- export const BKPER_AGENT_SYSTEM_PROMPT = `# You are a Bkper team member
35
+ export const BKPER_AGENT_APPEND_PROMPT = `# Bkper Context
36
+
37
+ You are a Bkper team member.
35
38
 
36
- You think in resources, movements, and balances not debits and credits. You extend meaning with properties before adding structural complexity. You protect the zero-sum invariant above all else.
39
+ For normal Bkper work, prioritize Bkper domain context, local project instructions, and surrounding files over Pi customization topics. Pi documentation is relevant only when the task is specifically about Pi itself or its runtime or customization.
37
40
 
38
41
  ## Operating Principles
39
42
 
43
+ - Protect the zero-sum invariant above all else.
40
44
  - Preserve invariants and data integrity first, then user intent, then implementation convenience.
45
+ - Think in resources, movements, and balances — not debits and credits.
46
+ - Extend meaning with properties before adding structural complexity.
41
47
  - Model domain and flows before coding; represent business reality, not technical shortcuts.
42
- - Design for global readiness from day one: currencies, timezones, units, formats.
48
+ - Prefer simplicity over cleverness; choose small, boring, maintainable solutions.
49
+ - Question the premise before adding complexity; prefer simplifying or removing over layering new structure.
50
+ - Design for global readiness from day one: currencies, timezones, units, and formats.
51
+ - Treat performance and security as foundational concerns.
43
52
  - For conceptual questions, answer directly and concisely before reaching for tools.
44
53
  `;
45
54
  //# sourceMappingURL=system-prompt.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,aAAa,EAAC,MAAM,UAAU,CAAC;AACvC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,SAAS,uBAAuB;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACnE,CAAC;AAED,SAAS,uBAAuB;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,MAAM,UAAU,GAAG,uBAAuB,EAAE,CAAC;IAC7C,MAAM,gBAAgB,GAAG,uBAAuB,EAAE,CAAC;IACnD,OAAO,GAAG,yBAAyB;;;;;;EAMrC,gBAAgB;;;;;;EAMhB,UAAU;;;;;;CAMX,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;CAUxC,CAAC"}
1
+ {"version":3,"file":"system-prompt.js","sourceRoot":"","sources":["../../src/agent/system-prompt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACzC,OAAO,IAAI,MAAM,WAAW,CAAC;AAE7B,SAAS,uBAAuB;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACnE,CAAC;AAED,SAAS,uBAAuB;IAC5B,MAAM,OAAO,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,CAAC,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;IAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,kBAAkB,CAAC,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,yBAAyB;IACrC,MAAM,UAAU,GAAG,uBAAuB,EAAE,CAAC;IAC7C,MAAM,gBAAgB,GAAG,uBAAuB,EAAE,CAAC;IACnD,OAAO,GAAG,yBAAyB;;;;;;;EAOrC,gBAAgB;;;;;;EAMhB,UAAU;;;;;;CAMX,CAAC;AACF,CAAC;AAED,MAAM,CAAC,MAAM,yBAAyB,GAAG;;;;;;;;;;;;;;;;;;CAkBxC,CAAC"}
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  };
10
10
  import { main as runPiMain } from '@mariozechner/pi-coding-agent';
11
11
  import { runAgentMode } from '../agent/run-agent-mode.js';
12
- import { getBkperAgentSystemPrompt } from '../agent/system-prompt.js';
12
+ import { getBkperAgentAppendPrompt } from '../agent/system-prompt.js';
13
13
  function createDefaultDependencies() {
14
14
  return {
15
15
  runPi: (args) => runPiMain(args),
@@ -23,7 +23,7 @@ function buildPiArgs(args) {
23
23
  if (hasSystemPromptArg(args)) {
24
24
  return args;
25
25
  }
26
- return ['--system-prompt', getBkperAgentSystemPrompt(), ...args];
26
+ return ['--append-system-prompt', getBkperAgentAppendPrompt(), ...args];
27
27
  }
28
28
  export function runAgentCommand(piArgs_1) {
29
29
  return __awaiter(this, arguments, void 0, function* (piArgs, dependencies = createDefaultDependencies()) {
@@ -1 +1 @@
1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AAED,MAAM,UAAU,qBAAqB,CAAC,OAAgB;IAClD,OAAO;SACF,OAAO,CAAC,mBAAmB,CAAC;SAC5B,WAAW,CAAC,qDAAqD,CAAC;SAClE,kBAAkB,CAAC,IAAI,CAAC;SACxB,oBAAoB,CAAC,IAAI,CAAC,CAAC;AACpC,CAAC"}
@@ -115,7 +115,7 @@ bkper agent install <pi-package-source>
115
115
  bkper agent --help
116
116
  ```
117
117
 
118
- `bkper agent` keeps Bkper defaults (including the Bkper system prompt) unless you explicitly pass `--system-prompt`.
118
+ `bkper agent` keeps Bkper defaults (appending Bkper domain context to Pi's default prompt) unless you explicitly pass `--system-prompt`.
119
119
  Use `bkper help agent` for the Bkper CLI command help, and `bkper agent --help` for Pi help.
120
120
 
121
121
  For all available passthrough flags and commands, see the Pi CLI reference:
@@ -871,7 +871,7 @@ deployment:
871
871
  #### Agent
872
872
 
873
873
  - `agent` - Start the interactive Bkper Agent
874
- - `agent <pi-args...>` - Run Pi CLI with Bkper defaults (system prompt/resources)
874
+ - `agent <pi-args...>` - Run Pi CLI with Bkper defaults (domain context/resources)
875
875
 
876
876
  #### App Lifecycle
877
877
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "bkper",
3
- "version": "4.12.2",
3
+ "version": "4.12.3",
4
4
  "description": "Command line client for Bkper",
5
5
  "bin": {
6
6
  "bkper": "./lib/cli.js"