@ff-labs/pi-fff 0.7.2 → 0.7.3-nightly.b3e112d

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.
Files changed (2) hide show
  1. package/package.json +3 -3
  2. package/src/index.ts +4 -4
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ff-labs/pi-fff",
3
3
  "public": true,
4
- "version": "0.7.2",
4
+ "version": "0.7.3-nightly.b3e112d",
5
5
  "description": "pi extension: FFF-powered fuzzy file and content search",
6
6
  "type": "module",
7
7
  "license": "MIT",
@@ -43,8 +43,8 @@
43
43
  "@ff-labs/fff-node": "*"
44
44
  },
45
45
  "peerDependencies": {
46
- "@mariozechner/pi-coding-agent": "*",
47
- "@mariozechner/pi-tui": "*",
46
+ "@earendil-works/pi-coding-agent": "*",
47
+ "@earendil-works/pi-tui": "*",
48
48
  "@sinclair/typebox": "*"
49
49
  },
50
50
  "devDependencies": {
package/src/index.ts CHANGED
@@ -5,13 +5,13 @@
5
5
  * @-mention autocomplete suggestions in the interactive editor.
6
6
  */
7
7
 
8
- import type { ExtensionAPI } from "@mariozechner/pi-coding-agent";
9
- import { CustomEditor } from "@mariozechner/pi-coding-agent";
8
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
9
+ import { CustomEditor } from "@earendil-works/pi-coding-agent";
10
10
  import {
11
11
  Text,
12
12
  type AutocompleteItem,
13
13
  type AutocompleteProvider,
14
- } from "@mariozechner/pi-tui";
14
+ } from "@earendil-works/pi-tui";
15
15
  import { Type } from "@sinclair/typebox";
16
16
  import { FileFinder } from "@ff-labs/fff-node";
17
17
  import type {
@@ -496,8 +496,8 @@ export default function fffExtension(pi: ExtensionAPI) {
496
496
  pi.on("session_start", async (_event, ctx) => {
497
497
  try {
498
498
  activeCwd = ctx.cwd;
499
+ if (shouldEnableMentions()) applyEditorMode(ctx);
499
500
  await ensureFinder(activeCwd);
500
- applyEditorMode(ctx);
501
501
  } catch (e: unknown) {
502
502
  ctx.ui.notify(
503
503
  `FFF init failed: ${e instanceof Error ? e.message : String(e)}`,