frappe-builder 1.1.0-dev.10 → 1.1.0-dev.12

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/.fb/state.db CHANGED
Binary file
package/dist/cli.mjs CHANGED
@@ -50,7 +50,16 @@ const require = createRequire(import.meta.url);
50
50
  let piCli;
51
51
  try {
52
52
  piCli = require.resolve("@mariozechner/pi-coding-agent/dist/cli.js");
53
- } catch {
53
+ } catch {}
54
+ if (!piCli) {
55
+ const direct = resolve(pkgRoot, "node_modules/@mariozechner/pi-coding-agent/dist/cli.js");
56
+ if (existsSync(direct)) piCli = direct;
57
+ }
58
+ if (!piCli) {
59
+ const sibling = resolve(pkgRoot, "..", "@mariozechner", "pi-coding-agent", "dist", "cli.js");
60
+ if (existsSync(sibling)) piCli = sibling;
61
+ }
62
+ if (!piCli) {
54
63
  console.error("Could not locate pi CLI.");
55
64
  console.error("Try reinstalling: npm install -g frappe-builder@dev");
56
65
  process.exit(1);
@@ -5,6 +5,11 @@ import { appendEntry } from "../state/journal.js";
5
5
  import { buildStateContext, loadSpecialist, loadDebuggerSpecialist } from "./frappe-session.js";
6
6
  import { loadCredentials } from "../config/loader.js";
7
7
 
8
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
9
+ export default function (pi: any) {
10
+ pi.on("after_tool_call", handleAfterToolCall);
11
+ }
12
+
8
13
  /** Reads current_phase and feature_id from the active session. */
9
14
  function readSessionState(): { currentPhase: string; activeFeatureId: string | null } {
10
15
  const row = db
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frappe-builder",
3
- "version": "1.1.0-dev.10",
3
+ "version": "1.1.0-dev.12",
4
4
  "description": "Frappe-native AI co-pilot for building and customising Frappe/ERPNext applications",
5
5
  "type": "module",
6
6
  "bin": {