@oh-my-pi/pi-coding-agent 15.12.0 → 15.12.1

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.
@@ -1184,7 +1184,7 @@ export declare const SETTINGS_SCHEMA: {
1184
1184
  readonly doubleEscapeAction: {
1185
1185
  readonly type: "enum";
1186
1186
  readonly values: readonly ["branch", "tree", "none"];
1187
- readonly default: "tree";
1187
+ readonly default: "branch";
1188
1188
  readonly ui: {
1189
1189
  readonly tab: "interaction";
1190
1190
  readonly group: "Input";
@@ -1777,6 +1777,16 @@ export declare const SETTINGS_SCHEMA: {
1777
1777
  readonly description: "Prune older read results when the same file is read again (cache-aware, runs every turn)";
1778
1778
  };
1779
1779
  };
1780
+ readonly "compaction.dropUseless": {
1781
+ readonly type: "boolean";
1782
+ readonly default: true;
1783
+ readonly ui: {
1784
+ readonly tab: "context";
1785
+ readonly group: "Compaction";
1786
+ readonly label: "Elide Uneventful Results";
1787
+ readonly description: "Prune tool results flagged contextually useless (no matches, timed-out waits) once consumed (cache-aware)";
1788
+ };
1789
+ };
1780
1790
  readonly "snapcompact.systemPrompt": {
1781
1791
  readonly type: "enum";
1782
1792
  readonly values: readonly ["none", "agents-md", "all"];
@@ -4509,6 +4519,7 @@ export interface CompactionSettings {
4509
4519
  idleThresholdTokens: number;
4510
4520
  idleTimeoutSeconds: number;
4511
4521
  supersedeReads: boolean;
4522
+ dropUseless: boolean;
4512
4523
  }
4513
4524
  export interface ContextPromotionSettings {
4514
4525
  enabled: boolean;
@@ -26,6 +26,8 @@ export declare class ToolResultBuilder<TDetails extends DetailsWithMeta> {
26
26
  diagnostics(summary: string, messages: string[]): this;
27
27
  /** Flag the result as a non-throwing failure (agent-loop surfaces it as a tool error). */
28
28
  error(value?: boolean): this;
29
+ /** Marks the result contextually useless — compaction may elide it once consumed. */
30
+ useless(value?: boolean): this;
29
31
  done(): AgentToolResult<TDetails>;
30
32
  }
31
33
  export declare function toolResult<TDetails extends DetailsWithMeta>(details?: TDetails): ToolResultBuilder<TDetails>;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "type": "module",
3
3
  "name": "@oh-my-pi/pi-coding-agent",
4
- "version": "15.12.0",
4
+ "version": "15.12.1",
5
5
  "description": "Coding agent CLI with read, bash, edit, write tools and session management",
6
6
  "homepage": "https://omp.sh",
7
7
  "author": "Can Boluk",
@@ -47,17 +47,17 @@
47
47
  "@agentclientprotocol/sdk": "0.22.1",
48
48
  "@babel/parser": "^7.29.7",
49
49
  "@mozilla/readability": "^0.6.0",
50
- "@oh-my-pi/hashline": "15.12.0",
51
- "@oh-my-pi/omp-stats": "15.12.0",
52
- "@oh-my-pi/pi-agent-core": "15.12.0",
53
- "@oh-my-pi/pi-ai": "15.12.0",
54
- "@oh-my-pi/pi-catalog": "15.12.0",
55
- "@oh-my-pi/pi-mnemopi": "15.12.0",
56
- "@oh-my-pi/pi-natives": "15.12.0",
57
- "@oh-my-pi/pi-tui": "15.12.0",
58
- "@oh-my-pi/pi-utils": "15.12.0",
59
- "@oh-my-pi/pi-wire": "15.12.0",
60
- "@oh-my-pi/snapcompact": "15.12.0",
50
+ "@oh-my-pi/hashline": "15.12.1",
51
+ "@oh-my-pi/omp-stats": "15.12.1",
52
+ "@oh-my-pi/pi-agent-core": "15.12.1",
53
+ "@oh-my-pi/pi-ai": "15.12.1",
54
+ "@oh-my-pi/pi-catalog": "15.12.1",
55
+ "@oh-my-pi/pi-mnemopi": "15.12.1",
56
+ "@oh-my-pi/pi-natives": "15.12.1",
57
+ "@oh-my-pi/pi-tui": "15.12.1",
58
+ "@oh-my-pi/pi-utils": "15.12.1",
59
+ "@oh-my-pi/pi-wire": "15.12.1",
60
+ "@oh-my-pi/snapcompact": "15.12.1",
61
61
  "@opentelemetry/api": "^1.9.1",
62
62
  "@opentelemetry/context-async-hooks": "^2.7.1",
63
63
  "@opentelemetry/exporter-trace-otlp-proto": "^0.218.0",
@@ -1132,7 +1132,7 @@ export const SETTINGS_SCHEMA = {
1132
1132
  doubleEscapeAction: {
1133
1133
  type: "enum",
1134
1134
  values: ["branch", "tree", "none"] as const,
1135
- default: "tree",
1135
+ default: "branch",
1136
1136
  ui: {
1137
1137
  tab: "interaction",
1138
1138
  group: "Input",
@@ -1621,6 +1621,18 @@ export const SETTINGS_SCHEMA = {
1621
1621
  },
1622
1622
  },
1623
1623
 
1624
+ "compaction.dropUseless": {
1625
+ type: "boolean",
1626
+ default: true,
1627
+ ui: {
1628
+ tab: "context",
1629
+ group: "Compaction",
1630
+ label: "Elide Uneventful Results",
1631
+ description:
1632
+ "Prune tool results flagged contextually useless (no matches, timed-out waits) once consumed (cache-aware)",
1633
+ },
1634
+ },
1635
+
1624
1636
  // Experimental: snapcompact inline imaging (transient, per-request; never persisted)
1625
1637
  "snapcompact.systemPrompt": {
1626
1638
  type: "enum",
@@ -4079,6 +4091,7 @@ export interface CompactionSettings {
4079
4091
  idleThresholdTokens: number;
4080
4092
  idleTimeoutSeconds: number;
4081
4093
  supersedeReads: boolean;
4094
+ dropUseless: boolean;
4082
4095
  }
4083
4096
 
4084
4097
  export interface ContextPromotionSettings {