pi-advisor-flow 0.14.4-dev.3 → 0.14.4
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 +7 -0
- package/README.md +1 -1
- package/dist/index.js +25 -5
- package/package.json +5 -5
- package/src/commands/settings-persistence.ts +2 -0
- package/src/config/defaults.ts +3 -0
- package/src/config/schema.ts +7 -0
- package/src/config/state.ts +6 -0
- package/src/config/types.ts +1 -0
- package/src/tools/budget-feedback.ts +2 -1
- package/src/tools/register-lifecycle.ts +11 -2
- package/src/tools/scout-status.ts +9 -4
- package/src/ui/settings-items.ts +7 -0
- package/src/ui/settings-mutations.ts +1 -0
- package/src/ui/types.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -6,8 +6,15 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and
|
|
|
6
6
|
|
|
7
7
|
## Unreleased
|
|
8
8
|
|
|
9
|
+
## 0.14.4 - 2026-11-03
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
|
|
13
|
+
- Added an opt-in **Advisor log feedback** setting in `/advisor-settings`; budget and Scout status messages are off by default while actual Advisor calls/results and budget enforcement remain unchanged.
|
|
14
|
+
|
|
9
15
|
### Changed
|
|
10
16
|
|
|
17
|
+
- Updated development dependencies: Pi packages (`pi-ai`, `pi-coding-agent`, and `pi-tui`) to 1.5.0 and Ultracite to 8.1.1. Pi 1.5 adds extension-update changelogs and faster streaming; tool argument validation now uses `pi-schema`, so TypeBox-only features outside JSON Schema are no longer applied to tool arguments.
|
|
11
18
|
- Updated Knip to 6.44.1. Bun 1.4.4 remains the latest stable version.
|
|
12
19
|
|
|
13
20
|
## 0.14.3 - 2026-10-26
|
package/README.md
CHANGED
|
@@ -83,7 +83,7 @@ The Executor is whichever model your Pi session is using; `/advisor` never switc
|
|
|
83
83
|
/advisor executor=openai-codex/gpt-5.6-luna advisor=openai-codex/gpt-5.6-sol
|
|
84
84
|
```
|
|
85
85
|
|
|
86
|
-
From the Executor, `ask_advisor({})` requests a general review. A targeted `question` or concise `draft` can focus the review on a particular decision. `/advisor-settings` can restrict this tool and every automatic Advisor gate to a whitelist of exact `provider/model` Executor references; an empty whitelist preserves the default of allowing every model.
|
|
86
|
+
From the Executor, `ask_advisor({})` requests a general review. A targeted `question` or concise `draft` can focus the review on a particular decision. Advisor log feedback is off by default; enable **Advisor log feedback** in `/advisor-settings` to include budget and Scout status messages in session logs. Actual Advisor call and result messages remain visible either way, and call limits and enforcement are unchanged. `/advisor-settings` can restrict this tool and every automatic Advisor gate to a whitelist of exact `provider/model` Executor references; an empty whitelist preserves the default of allowing every model.
|
|
87
87
|
|
|
88
88
|
In the Settings, enable Simple Mode for a quick start.
|
|
89
89
|
|
package/dist/index.js
CHANGED
|
@@ -61,6 +61,7 @@ var advisorLoopThresholdRef = 3;
|
|
|
61
61
|
var advisorMaxCallsPerSessionRef;
|
|
62
62
|
var advisorModelWhitelistRef = [];
|
|
63
63
|
var advisorSessionSummaryRef = false;
|
|
64
|
+
var advisorLogFeedbackRef = false;
|
|
64
65
|
var simpleModeRef = false;
|
|
65
66
|
var advisorToolsEnabledRef = true;
|
|
66
67
|
var alwaysOnRef = false;
|
|
@@ -164,6 +165,9 @@ var setAdvisorModelWhitelistRef = (models) => {
|
|
|
164
165
|
var setAdvisorSessionSummaryRef = (enabled) => {
|
|
165
166
|
advisorSessionSummaryRef = enabled;
|
|
166
167
|
};
|
|
168
|
+
var setAdvisorLogFeedbackRef = (enabled) => {
|
|
169
|
+
advisorLogFeedbackRef = enabled;
|
|
170
|
+
};
|
|
167
171
|
var setSimpleModeRef = (enabled) => {
|
|
168
172
|
simpleModeRef = enabled;
|
|
169
173
|
};
|
|
@@ -294,6 +298,7 @@ var getAdvisorSettings = () => ({
|
|
|
294
298
|
jevTransport: advisorJevTransportRef,
|
|
295
299
|
jevTurnGateEveryTurns: advisorJevTurnGateEveryTurnsRef,
|
|
296
300
|
jevTurnGateNoulThreshold: advisorJevTurnGateNoulThresholdRef,
|
|
301
|
+
logFeedback: advisorLogFeedbackRef,
|
|
297
302
|
loopThreshold: advisorLoopThresholdRef,
|
|
298
303
|
maxCallsPerSession: advisorMaxCallsPerSessionRef,
|
|
299
304
|
modelWhitelist: [...advisorModelWhitelistRef],
|
|
@@ -725,6 +730,12 @@ var CONFIG_SCHEMA = {
|
|
|
725
730
|
type: "number",
|
|
726
731
|
validate: isValidJevSkipConfidence
|
|
727
732
|
},
|
|
733
|
+
advisorLogFeedback: {
|
|
734
|
+
accepted: "true or false",
|
|
735
|
+
current: () => advisorLogFeedbackRef,
|
|
736
|
+
persisted: true,
|
|
737
|
+
type: "boolean"
|
|
738
|
+
},
|
|
728
739
|
advisorLoopThreshold: {
|
|
729
740
|
accepted: "a safe integer of at least 2",
|
|
730
741
|
current: () => advisorLoopThresholdRef,
|
|
@@ -971,6 +982,7 @@ var resetDefaults = () => {
|
|
|
971
982
|
setAdvisorMaxCallsPerSessionRef(undefined);
|
|
972
983
|
setAdvisorModelWhitelistRef([]);
|
|
973
984
|
setAdvisorSessionSummaryRef(false);
|
|
985
|
+
setAdvisorLogFeedbackRef(false);
|
|
974
986
|
setSimpleModeRef(false);
|
|
975
987
|
setAdvisorToolsEnabledRef(true);
|
|
976
988
|
setAlwaysOnRef(false);
|
|
@@ -1035,6 +1047,7 @@ var applyConfig = (config) => {
|
|
|
1035
1047
|
applyOptionalConfig(config, "advisorMaxCallsPerSession", setAdvisorMaxCallsPerSessionRef);
|
|
1036
1048
|
applyOptionalConfig(config, "advisorModelWhitelist", setAdvisorModelWhitelistRef);
|
|
1037
1049
|
applyOptionalConfig(config, "advisorSessionSummary", setAdvisorSessionSummaryRef);
|
|
1050
|
+
applyOptionalConfig(config, "advisorLogFeedback", setAdvisorLogFeedbackRef);
|
|
1038
1051
|
applyOptionalConfig(config, "advisorScoutEnabled", setAdvisorScoutEnabledRef);
|
|
1039
1052
|
applyOptionalConfig(config, "advisorScoutTimeoutMs", setAdvisorScoutTimeoutMsRef);
|
|
1040
1053
|
applyOptionalConfig(config, "showUsageDetails", setShowUsageDetailsRef);
|
|
@@ -4672,7 +4685,7 @@ var scoutDetailsFromEvent = (event, previous) => {
|
|
|
4672
4685
|
};
|
|
4673
4686
|
var appendScoutLifecycleEntry = (pi, event, previous) => {
|
|
4674
4687
|
const scout = scoutDetailsFromEvent(event, previous);
|
|
4675
|
-
if (event.type === "success" || event.type === "fallback" || event.type === "cancelled") {
|
|
4688
|
+
if (advisorLogFeedbackRef && (event.type === "success" || event.type === "fallback" || event.type === "cancelled")) {
|
|
4676
4689
|
pi.appendEntry?.("advisor-scout-result", scout);
|
|
4677
4690
|
}
|
|
4678
4691
|
return scout;
|
|
@@ -8067,7 +8080,7 @@ var createSettingsItems = ({
|
|
|
8067
8080
|
id: "maxCallsPerSession",
|
|
8068
8081
|
label: "Max Advisor calls/session",
|
|
8069
8082
|
values: maxCallValues(settings.maxCallsPerSession === undefined ? "∞" : String(settings.maxCallsPerSession))
|
|
8070
|
-
}, toggle("sessionSummary", "Session Advisor Summary", "Show a local summary when the session ends.", settings.sessionSummary, false), {
|
|
8083
|
+
}, toggle("sessionSummary", "Session Advisor Summary", "Show a local summary when the session ends.", settings.sessionSummary, false), toggle("logFeedback", "Advisor log feedback", "Include budget and Scout status messages in session logs. Actual Advisor calls and results remain visible either way.", settings.logFeedback, false), {
|
|
8071
8084
|
currentValue: settings.failureMode ?? "block-session",
|
|
8072
8085
|
description: "Choose what happens when an Advisor gate fails.",
|
|
8073
8086
|
id: "failureMode",
|
|
@@ -8218,6 +8231,7 @@ var BOOLEAN_SETTING_FIELDS = [
|
|
|
8218
8231
|
"agentsMdContext",
|
|
8219
8232
|
"autoLoopGate",
|
|
8220
8233
|
"blockOnBlocked",
|
|
8234
|
+
"logFeedback",
|
|
8221
8235
|
"collapseResponses",
|
|
8222
8236
|
"completionGate",
|
|
8223
8237
|
"disableSameModel",
|
|
@@ -8584,6 +8598,7 @@ var applySessionSettings = (settings) => {
|
|
|
8584
8598
|
setAdvisorMaxCallsPerSessionRef(settings.maxCallsPerSession);
|
|
8585
8599
|
setAdvisorModelWhitelistRef(settings.modelWhitelist ?? []);
|
|
8586
8600
|
setAdvisorSessionSummaryRef(settings.sessionSummary ?? false);
|
|
8601
|
+
setAdvisorLogFeedbackRef(settings.logFeedback ?? false);
|
|
8587
8602
|
setAdvisorScoutEnabledRef(settings.scoutEnabled ?? false);
|
|
8588
8603
|
setAdvisorScoutTimeoutMsRef(settings.scoutTimeoutMs ?? DEFAULT_SCOUT_TIMEOUT_MS);
|
|
8589
8604
|
setShowUsageDetailsRef(settings.showUsageDetails ?? true);
|
|
@@ -8776,7 +8791,7 @@ var advisorBudgetMessage = (session) => {
|
|
|
8776
8791
|
};
|
|
8777
8792
|
};
|
|
8778
8793
|
var advisorBudgetUpdate = (event, ctx, pi, session) => {
|
|
8779
|
-
if (!pi.getActiveTools().includes("ask_advisor")) {
|
|
8794
|
+
if (!advisorLogFeedbackRef || !pi.getActiveTools().includes("ask_advisor")) {
|
|
8780
8795
|
return;
|
|
8781
8796
|
}
|
|
8782
8797
|
try {
|
|
@@ -9620,14 +9635,19 @@ var registerToolLifecycle = ({
|
|
|
9620
9635
|
}
|
|
9621
9636
|
const guidelines = advisorInvocationGuidelines();
|
|
9622
9637
|
if (!isSimpleMode()) {
|
|
9623
|
-
guidelines.push("
|
|
9638
|
+
guidelines.push("Reserve Advisor calls for material decisions, repeated failures, or final review.");
|
|
9639
|
+
if (advisorLogFeedbackRef) {
|
|
9640
|
+
guidelines.push("Use the latest advisor-budget message for the current call allowance.");
|
|
9641
|
+
}
|
|
9624
9642
|
}
|
|
9625
9643
|
if (guidelines.length > 0) {
|
|
9626
9644
|
sections.advisor_invocation_settings = `Advisor invocation settings:
|
|
9627
9645
|
${guidelines.map((rule) => `- ${rule}`).join(`
|
|
9628
9646
|
`)}`;
|
|
9629
9647
|
}
|
|
9630
|
-
|
|
9648
|
+
if (advisorLogFeedbackRef) {
|
|
9649
|
+
return { message: advisorBudgetMessage(session) };
|
|
9650
|
+
}
|
|
9631
9651
|
});
|
|
9632
9652
|
pi.on("input", () => {
|
|
9633
9653
|
session.clearFollowUps();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "pi-advisor-flow",
|
|
3
|
-
"version": "0.14.4
|
|
3
|
+
"version": "0.14.4",
|
|
4
4
|
"description": "Advanced Executor/Advisor flow for Pi, fully configurable and extendable.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"advisor",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"format:check": "bun fmt --no-script --print-width 80 --trailing-comma es5 --sort-imports --bracket-same-line --ignore-pattern 'bench/tasks/**/traps.toml' --ignore-pattern 'dist/**' --check"
|
|
55
55
|
},
|
|
56
56
|
"devDependencies": {
|
|
57
|
-
"@earendil-works/pi-ai": "1.
|
|
58
|
-
"@earendil-works/pi-coding-agent": "1.
|
|
59
|
-
"@earendil-works/pi-tui": "1.
|
|
57
|
+
"@earendil-works/pi-ai": "1.5.0",
|
|
58
|
+
"@earendil-works/pi-coding-agent": "1.5.0",
|
|
59
|
+
"@earendil-works/pi-tui": "1.5.0",
|
|
60
60
|
"@oxlint/plugins": "1.90.0",
|
|
61
61
|
"@types/node": "^26.6.6",
|
|
62
62
|
"@typesafe-ai/sdk": "^0.7.0",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"oxlint": "1.90.0",
|
|
68
68
|
"typebox": "1.4.3",
|
|
69
69
|
"typescript": "^7.0.2",
|
|
70
|
-
"ultracite": "8.1.
|
|
70
|
+
"ultracite": "8.1.1"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"@earendil-works/pi-ai": "^1.0.0",
|
|
@@ -26,6 +26,7 @@ import {
|
|
|
26
26
|
setAdvisorJevTimeoutMsRef,
|
|
27
27
|
setAdvisorJevTurnGateEveryTurnsRef,
|
|
28
28
|
setAdvisorJevTurnGateNoulThresholdRef,
|
|
29
|
+
setAdvisorLogFeedbackRef,
|
|
29
30
|
setAdvisorLoopThresholdRef,
|
|
30
31
|
setAdvisorMaxCallsPerSessionRef,
|
|
31
32
|
setAdvisorModelWhitelistRef,
|
|
@@ -78,6 +79,7 @@ const applySessionSettings = (settings: AdvisorSettings) => {
|
|
|
78
79
|
setAdvisorMaxCallsPerSessionRef(settings.maxCallsPerSession);
|
|
79
80
|
setAdvisorModelWhitelistRef(settings.modelWhitelist ?? []);
|
|
80
81
|
setAdvisorSessionSummaryRef(settings.sessionSummary ?? false);
|
|
82
|
+
setAdvisorLogFeedbackRef(settings.logFeedback ?? false);
|
|
81
83
|
setAdvisorScoutEnabledRef(settings.scoutEnabled ?? false);
|
|
82
84
|
setAdvisorScoutTimeoutMsRef(
|
|
83
85
|
settings.scoutTimeoutMs ?? DEFAULT_SCOUT_TIMEOUT_MS
|
package/src/config/defaults.ts
CHANGED
|
@@ -27,6 +27,7 @@ import {
|
|
|
27
27
|
setAdvisorJevTransportRef,
|
|
28
28
|
setAdvisorJevTurnGateEveryTurnsRef,
|
|
29
29
|
setAdvisorJevTurnGateNoulThresholdRef,
|
|
30
|
+
setAdvisorLogFeedbackRef,
|
|
30
31
|
setAdvisorLoopThresholdRef,
|
|
31
32
|
setAdvisorMaxCallsPerSessionRef,
|
|
32
33
|
setAdvisorModelWhitelistRef,
|
|
@@ -92,6 +93,7 @@ export const resetDefaults = () => {
|
|
|
92
93
|
setAdvisorMaxCallsPerSessionRef(undefined);
|
|
93
94
|
setAdvisorModelWhitelistRef([]);
|
|
94
95
|
setAdvisorSessionSummaryRef(false);
|
|
96
|
+
setAdvisorLogFeedbackRef(false);
|
|
95
97
|
setSimpleModeRef(false);
|
|
96
98
|
setAdvisorToolsEnabledRef(true);
|
|
97
99
|
setAlwaysOnRef(false);
|
|
@@ -210,6 +212,7 @@ export const applyConfig = (config: AdvisorConfig) => {
|
|
|
210
212
|
"advisorSessionSummary",
|
|
211
213
|
setAdvisorSessionSummaryRef
|
|
212
214
|
);
|
|
215
|
+
applyOptionalConfig(config, "advisorLogFeedback", setAdvisorLogFeedbackRef);
|
|
213
216
|
applyOptionalConfig(config, "advisorScoutEnabled", setAdvisorScoutEnabledRef);
|
|
214
217
|
applyOptionalConfig(
|
|
215
218
|
config,
|
package/src/config/schema.ts
CHANGED
|
@@ -31,6 +31,7 @@ import {
|
|
|
31
31
|
advisorJevTransportRef,
|
|
32
32
|
advisorJevTurnGateEveryTurnsRef,
|
|
33
33
|
advisorJevTurnGateNoulThresholdRef,
|
|
34
|
+
advisorLogFeedbackRef,
|
|
34
35
|
advisorLoopThresholdRef,
|
|
35
36
|
advisorMaxCallsPerSessionRef,
|
|
36
37
|
advisorModelWhitelistRef,
|
|
@@ -366,6 +367,12 @@ export const CONFIG_SCHEMA = {
|
|
|
366
367
|
type: "number",
|
|
367
368
|
validate: isValidJevSkipConfidence,
|
|
368
369
|
},
|
|
370
|
+
advisorLogFeedback: {
|
|
371
|
+
accepted: "true or false",
|
|
372
|
+
current: () => advisorLogFeedbackRef,
|
|
373
|
+
persisted: true,
|
|
374
|
+
type: "boolean",
|
|
375
|
+
},
|
|
369
376
|
advisorLoopThreshold: {
|
|
370
377
|
accepted: "a safe integer of at least 2",
|
|
371
378
|
current: () => advisorLoopThresholdRef,
|
package/src/config/state.ts
CHANGED
|
@@ -44,6 +44,7 @@ export let advisorLoopThresholdRef = 3;
|
|
|
44
44
|
export let advisorMaxCallsPerSessionRef: number | undefined;
|
|
45
45
|
export let advisorModelWhitelistRef: string[] = [];
|
|
46
46
|
export let advisorSessionSummaryRef = false;
|
|
47
|
+
export let advisorLogFeedbackRef = false;
|
|
47
48
|
export let simpleModeRef = false;
|
|
48
49
|
export let advisorToolsEnabledRef = true;
|
|
49
50
|
export let alwaysOnRef = false;
|
|
@@ -186,6 +187,10 @@ export const setAdvisorSessionSummaryRef = (enabled: boolean) => {
|
|
|
186
187
|
advisorSessionSummaryRef = enabled;
|
|
187
188
|
};
|
|
188
189
|
|
|
190
|
+
export const setAdvisorLogFeedbackRef = (enabled: boolean) => {
|
|
191
|
+
advisorLogFeedbackRef = enabled;
|
|
192
|
+
};
|
|
193
|
+
|
|
189
194
|
export const setSimpleModeRef = (enabled: boolean) => {
|
|
190
195
|
simpleModeRef = enabled;
|
|
191
196
|
};
|
|
@@ -355,6 +360,7 @@ export const getAdvisorSettings = () => ({
|
|
|
355
360
|
jevTransport: advisorJevTransportRef,
|
|
356
361
|
jevTurnGateEveryTurns: advisorJevTurnGateEveryTurnsRef,
|
|
357
362
|
jevTurnGateNoulThreshold: advisorJevTurnGateNoulThresholdRef,
|
|
363
|
+
logFeedback: advisorLogFeedbackRef,
|
|
358
364
|
loopThreshold: advisorLoopThresholdRef,
|
|
359
365
|
maxCallsPerSession: advisorMaxCallsPerSessionRef,
|
|
360
366
|
modelWhitelist: [...advisorModelWhitelistRef],
|
package/src/config/types.ts
CHANGED
|
@@ -74,6 +74,7 @@ export interface AdvisorConfig {
|
|
|
74
74
|
advisorAgentsMdContext?: boolean;
|
|
75
75
|
advisorAutoLoopGate?: boolean;
|
|
76
76
|
advisorBlockOnBlocked?: boolean;
|
|
77
|
+
advisorLogFeedback?: boolean;
|
|
77
78
|
advisorCollapseResponses?: boolean;
|
|
78
79
|
advisorCompletionGate?: boolean;
|
|
79
80
|
advisorCustomInvocation?: string;
|
|
@@ -5,6 +5,7 @@ import type {
|
|
|
5
5
|
} from "@earendil-works/pi-coding-agent";
|
|
6
6
|
|
|
7
7
|
import {
|
|
8
|
+
advisorLogFeedbackRef,
|
|
8
9
|
advisorToolsEnabledRef,
|
|
9
10
|
getAdvisorMaxCallsPerSession,
|
|
10
11
|
isSimpleMode,
|
|
@@ -39,7 +40,7 @@ export const advisorBudgetUpdate = (
|
|
|
39
40
|
pi: ExtensionAPI,
|
|
40
41
|
session: AdvisorSessionState
|
|
41
42
|
) => {
|
|
42
|
-
if (!pi.getActiveTools().includes("ask_advisor")) {
|
|
43
|
+
if (!advisorLogFeedbackRef || !pi.getActiveTools().includes("ask_advisor")) {
|
|
43
44
|
return;
|
|
44
45
|
}
|
|
45
46
|
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import {
|
|
2
|
+
advisorLogFeedbackRef,
|
|
2
3
|
advisorSessionSummaryRef,
|
|
3
4
|
advisorToolsEnabledRef,
|
|
4
5
|
getAdvisorMaxCallsPerSession,
|
|
@@ -109,15 +110,23 @@ export const registerToolLifecycle = ({
|
|
|
109
110
|
|
|
110
111
|
if (!isSimpleMode()) {
|
|
111
112
|
guidelines.push(
|
|
112
|
-
"
|
|
113
|
+
"Reserve Advisor calls for material decisions, repeated failures, or final review."
|
|
113
114
|
);
|
|
115
|
+
|
|
116
|
+
if (advisorLogFeedbackRef) {
|
|
117
|
+
guidelines.push(
|
|
118
|
+
"Use the latest advisor-budget message for the current call allowance."
|
|
119
|
+
);
|
|
120
|
+
}
|
|
114
121
|
}
|
|
115
122
|
|
|
116
123
|
if (guidelines.length > 0) {
|
|
117
124
|
sections.advisor_invocation_settings = `Advisor invocation settings:\n${guidelines.map((rule) => `- ${rule}`).join("\n")}`;
|
|
118
125
|
}
|
|
119
126
|
|
|
120
|
-
|
|
127
|
+
if (advisorLogFeedbackRef) {
|
|
128
|
+
return { message: advisorBudgetMessage(session) };
|
|
129
|
+
}
|
|
121
130
|
});
|
|
122
131
|
|
|
123
132
|
pi.on("input", () => {
|
|
@@ -6,7 +6,11 @@ import type {
|
|
|
6
6
|
import { Text } from "@earendil-works/pi-tui";
|
|
7
7
|
import type { Box } from "@earendil-works/pi-tui";
|
|
8
8
|
|
|
9
|
-
import {
|
|
9
|
+
import {
|
|
10
|
+
advisorLogFeedbackRef,
|
|
11
|
+
executorRef,
|
|
12
|
+
getAdvisorSettings,
|
|
13
|
+
} from "../config/state.ts";
|
|
10
14
|
import type { ScoutLifecycleEvent } from "../scout.ts";
|
|
11
15
|
import { uiAction, uiAvailable } from "../ui-guard.ts";
|
|
12
16
|
import { formatAdvisorUsage, snapshotAdvisorUsage } from "../usage.ts";
|
|
@@ -71,9 +75,10 @@ export const appendScoutLifecycleEntry = (
|
|
|
71
75
|
const scout = scoutDetailsFromEvent(event, previous);
|
|
72
76
|
|
|
73
77
|
if (
|
|
74
|
-
|
|
75
|
-
event.type === "
|
|
76
|
-
|
|
78
|
+
advisorLogFeedbackRef &&
|
|
79
|
+
(event.type === "success" ||
|
|
80
|
+
event.type === "fallback" ||
|
|
81
|
+
event.type === "cancelled")
|
|
77
82
|
) {
|
|
78
83
|
pi.appendEntry?.("advisor-scout-result", scout);
|
|
79
84
|
}
|
package/src/ui/settings-items.ts
CHANGED
|
@@ -489,6 +489,13 @@ export const createSettingsItems = ({
|
|
|
489
489
|
settings.sessionSummary,
|
|
490
490
|
false
|
|
491
491
|
),
|
|
492
|
+
toggle(
|
|
493
|
+
"logFeedback",
|
|
494
|
+
"Advisor log feedback",
|
|
495
|
+
"Include budget and Scout status messages in session logs. Actual Advisor calls and results remain visible either way.",
|
|
496
|
+
settings.logFeedback,
|
|
497
|
+
false
|
|
498
|
+
),
|
|
492
499
|
{
|
|
493
500
|
currentValue: settings.failureMode ?? "block-session",
|
|
494
501
|
description: "Choose what happens when an Advisor gate fails.",
|