@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.
- package/CHANGELOG.md +10 -0
- package/dist/cli.js +37 -37
- package/dist/types/config/settings-schema.d.ts +12 -1
- package/dist/types/tools/tool-result.d.ts +2 -0
- package/package.json +12 -12
- package/src/config/settings-schema.ts +14 -1
- package/src/internal-urls/docs-index.generated.ts +2 -2
- package/src/lsp/index.ts +11 -0
- package/src/session/agent-session.ts +22 -12
- package/src/tools/ast-grep.ts +3 -1
- package/src/tools/find.ts +3 -1
- package/src/tools/gh.ts +20 -6
- package/src/tools/irc.ts +4 -0
- package/src/tools/job.ts +12 -4
- package/src/tools/memory-recall.ts +2 -0
- package/src/tools/search.ts +3 -1
- package/src/tools/tool-result.ts +8 -0
|
@@ -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: "
|
|
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.
|
|
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.
|
|
51
|
-
"@oh-my-pi/omp-stats": "15.12.
|
|
52
|
-
"@oh-my-pi/pi-agent-core": "15.12.
|
|
53
|
-
"@oh-my-pi/pi-ai": "15.12.
|
|
54
|
-
"@oh-my-pi/pi-catalog": "15.12.
|
|
55
|
-
"@oh-my-pi/pi-mnemopi": "15.12.
|
|
56
|
-
"@oh-my-pi/pi-natives": "15.12.
|
|
57
|
-
"@oh-my-pi/pi-tui": "15.12.
|
|
58
|
-
"@oh-my-pi/pi-utils": "15.12.
|
|
59
|
-
"@oh-my-pi/pi-wire": "15.12.
|
|
60
|
-
"@oh-my-pi/snapcompact": "15.12.
|
|
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: "
|
|
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 {
|