@oh-my-pi/pi-coding-agent 3.6.1337 → 3.9.1337
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 +39 -0
- package/package.json +4 -4
- package/src/core/bash-executor.ts +115 -154
- package/src/core/index.ts +2 -0
- package/src/core/session-manager.ts +16 -6
- package/src/core/settings-manager.ts +2 -2
- package/src/core/tools/edit-diff.ts +45 -33
- package/src/core/tools/edit.ts +70 -182
- package/src/core/tools/find.ts +141 -160
- package/src/core/tools/index.ts +10 -9
- package/src/core/tools/ls.ts +64 -82
- package/src/core/tools/lsp/client.ts +66 -0
- package/src/core/tools/lsp/edits.ts +13 -4
- package/src/core/tools/lsp/index.ts +191 -85
- package/src/core/tools/notebook.ts +89 -144
- package/src/core/tools/read.ts +110 -158
- package/src/core/tools/write.ts +22 -115
- package/src/core/utils.ts +187 -0
- package/src/modes/interactive/components/{footer.ts → status-line.ts} +124 -71
- package/src/modes/interactive/components/tool-execution.ts +14 -14
- package/src/modes/interactive/interactive-mode.ts +57 -73
- package/src/modes/interactive/theme/dark.json +13 -13
- package/src/modes/interactive/theme/light.json +13 -13
- package/src/modes/interactive/theme/theme.ts +29 -28
|
@@ -79,19 +79,19 @@
|
|
|
79
79
|
|
|
80
80
|
"bashMode": "cyan",
|
|
81
81
|
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
92
|
-
"
|
|
93
|
-
"
|
|
94
|
-
"
|
|
82
|
+
"statusLineBg": "#121212",
|
|
83
|
+
"statusLineSep": 244,
|
|
84
|
+
"statusLineModel": "#d787af",
|
|
85
|
+
"statusLinePath": "#00afaf",
|
|
86
|
+
"statusLineGitClean": "#5faf5f",
|
|
87
|
+
"statusLineGitDirty": "#d7af5f",
|
|
88
|
+
"statusLineContext": "#8787af",
|
|
89
|
+
"statusLineSpend": "#5fafaf",
|
|
90
|
+
"statusLineStaged": 70,
|
|
91
|
+
"statusLineDirty": 178,
|
|
92
|
+
"statusLineUntracked": 39,
|
|
93
|
+
"statusLineOutput": 205,
|
|
94
|
+
"statusLineCost": 205
|
|
95
95
|
},
|
|
96
96
|
"export": {
|
|
97
97
|
"pageBg": "#18181e",
|
|
@@ -76,19 +76,19 @@
|
|
|
76
76
|
|
|
77
77
|
"bashMode": "green",
|
|
78
78
|
|
|
79
|
-
"
|
|
80
|
-
"
|
|
81
|
-
"
|
|
82
|
-
"
|
|
83
|
-
"
|
|
84
|
-
"
|
|
85
|
-
"
|
|
86
|
-
"
|
|
87
|
-
"
|
|
88
|
-
"
|
|
89
|
-
"
|
|
90
|
-
"
|
|
91
|
-
"
|
|
79
|
+
"statusLineBg": "#e0e0e0",
|
|
80
|
+
"statusLineSep": "#808080",
|
|
81
|
+
"statusLineModel": "#875f87",
|
|
82
|
+
"statusLinePath": "#005f87",
|
|
83
|
+
"statusLineGitClean": "#005f00",
|
|
84
|
+
"statusLineGitDirty": "#af5f00",
|
|
85
|
+
"statusLineContext": "#5f5f87",
|
|
86
|
+
"statusLineSpend": "#005f5f",
|
|
87
|
+
"statusLineStaged": 28,
|
|
88
|
+
"statusLineDirty": 136,
|
|
89
|
+
"statusLineUntracked": 31,
|
|
90
|
+
"statusLineOutput": 133,
|
|
91
|
+
"statusLineCost": 133
|
|
92
92
|
},
|
|
93
93
|
"export": {
|
|
94
94
|
"pageBg": "#f8f8f8",
|
|
@@ -85,20 +85,20 @@ const ThemeJsonSchema = Type.Object({
|
|
|
85
85
|
thinkingXhigh: ColorValueSchema,
|
|
86
86
|
// Bash Mode (1 color)
|
|
87
87
|
bashMode: ColorValueSchema,
|
|
88
|
-
// Footer Status Line
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
88
|
+
// Footer Status Line
|
|
89
|
+
statusLineBg: ColorValueSchema,
|
|
90
|
+
statusLineSep: ColorValueSchema,
|
|
91
|
+
statusLineModel: ColorValueSchema,
|
|
92
|
+
statusLinePath: ColorValueSchema,
|
|
93
|
+
statusLineGitClean: ColorValueSchema,
|
|
94
|
+
statusLineGitDirty: ColorValueSchema,
|
|
95
|
+
statusLineContext: ColorValueSchema,
|
|
96
|
+
statusLineSpend: ColorValueSchema,
|
|
97
|
+
statusLineStaged: ColorValueSchema,
|
|
98
|
+
statusLineDirty: ColorValueSchema,
|
|
99
|
+
statusLineUntracked: ColorValueSchema,
|
|
100
|
+
statusLineOutput: ColorValueSchema,
|
|
101
|
+
statusLineCost: ColorValueSchema,
|
|
102
102
|
}),
|
|
103
103
|
export: Type.Optional(
|
|
104
104
|
Type.Object({
|
|
@@ -160,19 +160,18 @@ export type ThemeColor =
|
|
|
160
160
|
| "thinkingHigh"
|
|
161
161
|
| "thinkingXhigh"
|
|
162
162
|
| "bashMode"
|
|
163
|
-
| "
|
|
164
|
-
| "
|
|
165
|
-
| "
|
|
166
|
-
| "
|
|
167
|
-
| "
|
|
168
|
-
| "
|
|
169
|
-
| "
|
|
170
|
-
| "
|
|
171
|
-
| "
|
|
172
|
-
| "
|
|
173
|
-
| "
|
|
174
|
-
| "
|
|
175
|
-
| "footerCost";
|
|
163
|
+
| "statusLineSep"
|
|
164
|
+
| "statusLineModel"
|
|
165
|
+
| "statusLinePath"
|
|
166
|
+
| "statusLineGitClean"
|
|
167
|
+
| "statusLineGitDirty"
|
|
168
|
+
| "statusLineContext"
|
|
169
|
+
| "statusLineSpend"
|
|
170
|
+
| "statusLineStaged"
|
|
171
|
+
| "statusLineDirty"
|
|
172
|
+
| "statusLineUntracked"
|
|
173
|
+
| "statusLineOutput"
|
|
174
|
+
| "statusLineCost";
|
|
176
175
|
|
|
177
176
|
export type ThemeBg =
|
|
178
177
|
| "selectedBg"
|
|
@@ -180,7 +179,8 @@ export type ThemeBg =
|
|
|
180
179
|
| "customMessageBg"
|
|
181
180
|
| "toolPendingBg"
|
|
182
181
|
| "toolSuccessBg"
|
|
183
|
-
| "toolErrorBg"
|
|
182
|
+
| "toolErrorBg"
|
|
183
|
+
| "statusLineBg";
|
|
184
184
|
|
|
185
185
|
type ColorMode = "truecolor" | "256color";
|
|
186
186
|
|
|
@@ -536,6 +536,7 @@ function createTheme(themeJson: ThemeJson, mode?: ColorMode): Theme {
|
|
|
536
536
|
"toolPendingBg",
|
|
537
537
|
"toolSuccessBg",
|
|
538
538
|
"toolErrorBg",
|
|
539
|
+
"statusLineBg",
|
|
539
540
|
]);
|
|
540
541
|
for (const [key, value] of Object.entries(resolvedColors)) {
|
|
541
542
|
if (bgColorKeys.has(key)) {
|