@agentclientprotocol/claude-agent-acp 0.108.2-preview.1 → 0.108.2-preview.2
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.
|
@@ -22,9 +22,15 @@ export declare function explainFastModeDisabledReason(reason: FastModeDisabledRe
|
|
|
22
22
|
export declare function normalizeFastModeDisabledReason(reason: FastModeDisabledReason | undefined): FastModeDisabledReason | undefined;
|
|
23
23
|
/** Build the Fast mode config option. When the Client supports boolean config
|
|
24
24
|
* options we expose a native `type: "boolean"` toggle; otherwise we degrade to
|
|
25
|
-
* a two-value `select` ("
|
|
25
|
+
* a two-value `select` ("off"/"on") so older Clients still get a usable
|
|
26
26
|
* control.
|
|
27
27
|
*
|
|
28
|
+
* Its category is `speed`, the unstable ACP category of an option that
|
|
29
|
+
* changes how fast the model responds, in v1 and v2. A category needs no
|
|
30
|
+
* capability: a Client that does not know `speed` handles it as any unknown
|
|
31
|
+
* category. ACP asks for a `speed` select's values from slowest to fastest,
|
|
32
|
+
* so the fallback lists off before on.
|
|
33
|
+
*
|
|
28
34
|
* `disabledReason` (the SDK's `fast_mode_disabled_reason`) is folded into the
|
|
29
35
|
* description while the toggle reads off, so a user whose account or provider
|
|
30
36
|
* can't serve Fast mode sees why instead of a switch that silently refuses to
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"session-fast-mode.d.ts","sourceRoot":"","sources":["../src/session-fast-mode.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EACV,mBAAmB,EACnB,6BAA6B,EAC9B,MAAM,mCAAmC,CAAC;AAC3C,OAAO,KAAK,EAAE,sBAAsB,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAG5F,eAAO,MAAM,mBAAmB,SAAS,CAAC;AAE1C;+DAC+D;AAC/D,eAAO,MAAM,YAAY,OAAO,CAAC;AACjC,eAAO,MAAM,aAAa,QAAQ,CAAC;AAGnC;;;gCAGgC;AAChC,wBAAgB,oBAAoB,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CAAC;CACpB,CAAC"}
|
|
@@ -58,9 +58,15 @@ export function normalizeFastModeDisabledReason(reason) {
|
|
|
58
58
|
}
|
|
59
59
|
/** Build the Fast mode config option. When the Client supports boolean config
|
|
60
60
|
* options we expose a native `type: "boolean"` toggle; otherwise we degrade to
|
|
61
|
-
* a two-value `select` ("
|
|
61
|
+
* a two-value `select` ("off"/"on") so older Clients still get a usable
|
|
62
62
|
* control.
|
|
63
63
|
*
|
|
64
|
+
* Its category is `speed`, the unstable ACP category of an option that
|
|
65
|
+
* changes how fast the model responds, in v1 and v2. A category needs no
|
|
66
|
+
* capability: a Client that does not know `speed` handles it as any unknown
|
|
67
|
+
* category. ACP asks for a `speed` select's values from slowest to fastest,
|
|
68
|
+
* so the fallback lists off before on.
|
|
69
|
+
*
|
|
64
70
|
* `disabledReason` (the SDK's `fast_mode_disabled_reason`) is folded into the
|
|
65
71
|
* description while the toggle reads off, so a user whose account or provider
|
|
66
72
|
* can't serve Fast mode sees why instead of a switch that silently refuses to
|
|
@@ -72,7 +78,7 @@ export function createFastModeConfigOption(enabled, useBooleanOption, disabledRe
|
|
|
72
78
|
id: FAST_MODE_CONFIG_ID,
|
|
73
79
|
name: "Fast mode",
|
|
74
80
|
description: explanation ? `${FAST_MODE_DESCRIPTION} — ${explanation}` : FAST_MODE_DESCRIPTION,
|
|
75
|
-
category: "
|
|
81
|
+
category: "speed",
|
|
76
82
|
};
|
|
77
83
|
if (useBooleanOption) {
|
|
78
84
|
return { ...base, type: "boolean", currentValue: enabled };
|
|
@@ -82,8 +88,8 @@ export function createFastModeConfigOption(enabled, useBooleanOption, disabledRe
|
|
|
82
88
|
type: "select",
|
|
83
89
|
currentValue: enabled ? FAST_MODE_ON : FAST_MODE_OFF,
|
|
84
90
|
options: [
|
|
85
|
-
{ value: FAST_MODE_ON, name: "On" },
|
|
86
91
|
{ value: FAST_MODE_OFF, name: "Off" },
|
|
92
|
+
{ value: FAST_MODE_ON, name: "On" },
|
|
87
93
|
],
|
|
88
94
|
};
|
|
89
95
|
}
|
package/package.json
CHANGED