topchester-ai 0.58.0 → 0.59.0
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/dist/bin.mjs
CHANGED
|
@@ -9870,19 +9870,11 @@ const slashCommandSuggestions = [
|
|
|
9870
9870
|
},
|
|
9871
9871
|
{
|
|
9872
9872
|
value: "/effort",
|
|
9873
|
-
description:
|
|
9874
|
-
},
|
|
9875
|
-
{
|
|
9876
|
-
value: "/effort high",
|
|
9877
|
-
description: "set reasoning effort to high"
|
|
9873
|
+
description: `show or set reasoning effort (${reasoningEfforts.join(", ")}, clear)`
|
|
9878
9874
|
},
|
|
9879
9875
|
{
|
|
9880
9876
|
value: "/reasoning",
|
|
9881
|
-
description:
|
|
9882
|
-
},
|
|
9883
|
-
{
|
|
9884
|
-
value: "/reasoning high",
|
|
9885
|
-
description: "set reasoning effort to high"
|
|
9877
|
+
description: `show or set reasoning effort (${reasoningEfforts.join(", ")}, clear)`
|
|
9886
9878
|
},
|
|
9887
9879
|
{
|
|
9888
9880
|
value: "/kb status",
|
|
@@ -10119,8 +10111,24 @@ function getSlashCommandSuggestions(input) {
|
|
|
10119
10111
|
const trimmed = input.trimStart();
|
|
10120
10112
|
if (!trimmed.startsWith("/")) return [];
|
|
10121
10113
|
const query = trimmed.toLowerCase();
|
|
10114
|
+
const reasoningSuggestions = getReasoningEffortValueSuggestions(query);
|
|
10115
|
+
if (reasoningSuggestions) return reasoningSuggestions;
|
|
10122
10116
|
return slashCommandSuggestions.filter((suggestion) => suggestion.value.toLowerCase().startsWith(query));
|
|
10123
10117
|
}
|
|
10118
|
+
function getReasoningEffortValueSuggestions(query) {
|
|
10119
|
+
const match = /^\/(?<command>effort|reasoning)\s+(?<value>\S*)$/u.exec(query);
|
|
10120
|
+
if (!match?.groups) return;
|
|
10121
|
+
const command = match.groups.command;
|
|
10122
|
+
const valuePrefix = match.groups.value;
|
|
10123
|
+
return [
|
|
10124
|
+
...reasoningEfforts,
|
|
10125
|
+
"clear",
|
|
10126
|
+
"default"
|
|
10127
|
+
].filter((option) => option.startsWith(valuePrefix)).map((option) => ({
|
|
10128
|
+
value: `/${command} ${option}`,
|
|
10129
|
+
description: option === "clear" || option === "default" ? "use provider default reasoning effort" : `set reasoning effort to ${option}`
|
|
10130
|
+
}));
|
|
10131
|
+
}
|
|
10124
10132
|
async function executeKbCommand(args, context) {
|
|
10125
10133
|
const subcommand = args[0];
|
|
10126
10134
|
if (subcommand === "status") return { messages: formatKnowledgeCompileStatusResult(filterNonCleanKnowledgeCompileResult(await dryRunKnowledgeCompile(context.workspaceRoot, { config: context.config })), { formatSyncStatus: context.formatSyncStatus }) };
|
|
@@ -16183,4 +16191,4 @@ function formatDryRunSyncStatus(status) {
|
|
|
16183
16191
|
//#endregion
|
|
16184
16192
|
export { runTopchesterCli as t };
|
|
16185
16193
|
|
|
16186
|
-
//# sourceMappingURL=cli-
|
|
16194
|
+
//# sourceMappingURL=cli-DNu9mjMF.mjs.map
|