pi-fabric 0.84.4 → 0.84.5

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.
@@ -0,0 +1,4 @@
1
+ import type { ExtensionAPI } from "@earendil-works/pi-coding-agent";
2
+ export declare const HANDOFF_COMPLETION_MESSAGE_TYPE = "pi-fabric-handoff-complete";
3
+ export declare const queueHandoffCompletion: (extension: ExtensionAPI, args: Record<string, unknown>, result: Record<string, unknown>) => void;
4
+ //# sourceMappingURL=handoff-completion.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"handoff-completion.d.ts","sourceRoot":"","sources":["../../src/agents/handoff-completion.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAGpE,eAAO,MAAM,+BAA+B,+BAA+B,CAAC;AAE5E,eAAO,MAAM,sBAAsB,GACjC,WAAW,YAAY,EACvB,MAAM,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC7B,QAAQ,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,KAC9B,IAgCF,CAAC"}
@@ -10,11 +10,12 @@ import {
10
10
  } from "./chunk-ZZ4LHQYJ.js";
11
11
  import {
12
12
  countContentLines,
13
+ countNewlines,
13
14
  isFabricAgentToolPreview,
14
15
  selectPreviewTextLines,
15
16
  shouldSkipWriteDiffBytes,
16
17
  shouldSkipWriteDiffComplexity
17
- } from "./chunk-T3GPMH5E.js";
18
+ } from "./chunk-ZITISNO3.js";
18
19
  import {
19
20
  headlineArg
20
21
  } from "./chunk-VE5LH2Z7.js";
@@ -22,27 +23,6 @@ import {
22
23
  fabricStringLiterals
23
24
  } from "./chunk-4VEGQHZO.js";
24
25
 
25
- // src/util.ts
26
- var countNewlines = (value) => {
27
- let count = 0;
28
- for (let index = 0; index < value.length; index++) {
29
- if (value.charCodeAt(index) === 10) count++;
30
- }
31
- return count;
32
- };
33
- var truncateMiddle = (value, maxChars) => {
34
- if (value.length <= maxChars) return value;
35
- const marker = `
36
-
37
- ... ${value.length - maxChars} characters omitted by Pi Fabric ...
38
-
39
- `;
40
- const available = Math.max(0, maxChars - marker.length);
41
- const head = Math.ceil(available / 2);
42
- const tail = Math.floor(available / 2);
43
- return `${value.slice(0, head)}${marker}${value.slice(value.length - tail)}`;
44
- };
45
-
46
26
  // src/ui/structured.ts
47
27
  import { stringify } from "yaml";
48
28
  var normalizeJsonValue = (value) => {
@@ -4204,8 +4184,6 @@ var updateSpinner = (state, active, invalidate, now = Date.now()) => {
4204
4184
  export {
4205
4185
  continueArcGroup,
4206
4186
  arcItemStyled,
4207
- countNewlines,
4208
- truncateMiddle,
4209
4187
  isCoreToolAudit,
4210
4188
  coreToolRendererEnabled,
4211
4189
  coreToolPreviewEnabled,
@@ -4238,4 +4216,4 @@ export {
4238
4216
  formatJsonAsYaml,
4239
4217
  formatFabricValue
4240
4218
  };
4241
- //# sourceMappingURL=chunk-MPNEVZIH.js.map
4219
+ //# sourceMappingURL=chunk-MHHOFZKX.js.map