@cydm/pie 1.0.30 → 1.0.31
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/cli.js +29 -18
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -47140,7 +47140,7 @@ function createExtensionContext(extension, cwd, uiContext, abortFn, isIdleFn, ha
|
|
|
47140
47140
|
path: cmdPath,
|
|
47141
47141
|
hidden: command.hidden === true
|
|
47142
47142
|
};
|
|
47143
|
-
extension.commands.set(
|
|
47143
|
+
extension.commands.set(cmdPath.join("/"), registeredCmd);
|
|
47144
47144
|
commandTree.register(cmdPath, {
|
|
47145
47145
|
description: command.description,
|
|
47146
47146
|
handler: command.handler,
|
|
@@ -60742,6 +60742,9 @@ var ExtensionEnablementSelectorComponent = class extends Container {
|
|
|
60742
60742
|
getSettingsList() {
|
|
60743
60743
|
return this.settingsList;
|
|
60744
60744
|
}
|
|
60745
|
+
handleInput(data) {
|
|
60746
|
+
this.settingsList.handleInput(data);
|
|
60747
|
+
}
|
|
60745
60748
|
};
|
|
60746
60749
|
|
|
60747
60750
|
// src/commands/interactive-extensions-command.ts
|
|
@@ -60859,23 +60862,28 @@ function handleExtensionsCommand(host, args) {
|
|
|
60859
60862
|
// src/slash-commands.ts
|
|
60860
60863
|
var BUILTIN_SLASH_COMMANDS = [
|
|
60861
60864
|
{ name: "sessions/compact", description: "Summarize history and add a compact checkpoint to the session" },
|
|
60865
|
+
{ name: "sessions/new", description: "Start a new session" },
|
|
60866
|
+
{ name: "sessions/resume", description: "Resume a different session" },
|
|
60867
|
+
{ name: "sessions/tree", description: "Navigate session tree" },
|
|
60868
|
+
{ name: "sessions/info", description: "Show session info" },
|
|
60869
|
+
{ name: "sessions/fork", description: "Fork from a message" },
|
|
60862
60870
|
{ name: "settings", description: "Open settings menu" },
|
|
60863
60871
|
{ name: "settings/extensions", description: "Manage extensions" },
|
|
60864
60872
|
{ name: "settings/help", description: "Show help information (keyboard shortcuts and commands)" },
|
|
60865
|
-
{ name: "settings/
|
|
60866
|
-
{ name: "model", description: "Select
|
|
60867
|
-
{ name: "
|
|
60868
|
-
{ name: "
|
|
60869
|
-
{ name: "
|
|
60870
|
-
{ name: "resume", description: "Resume a different session" },
|
|
60871
|
-
{ name: "tree", description: "Navigate session tree" },
|
|
60872
|
-
{ name: "fork", description: "Create a new fork from a previous message" },
|
|
60873
|
-
{ name: "skills", description: "List available skills" },
|
|
60874
|
-
{ name: "skill", description: "Activate a skill (e.g., /skill code-review)" },
|
|
60875
|
-
{ name: "new", description: "Start a new session" },
|
|
60873
|
+
{ name: "settings/hotkeys", description: "Show keyboard shortcuts" },
|
|
60874
|
+
{ name: "settings/model", description: "Select AI model" },
|
|
60875
|
+
{ name: "settings/theme", description: "Change theme" },
|
|
60876
|
+
{ name: "settings/thinking", description: "Set thinking level" },
|
|
60877
|
+
{ name: "settings/yolo", description: "Toggle or set YOLO mode" },
|
|
60876
60878
|
{ name: "settings/debugs/cache-test", description: "Run provider cache diagnostics with a dedicated 2-request probe" },
|
|
60877
60879
|
{ name: "settings/debugs/context", description: "Append a context summary to ~/.pie/logs/pie-cli.log" },
|
|
60878
|
-
{ name: "settings/debugs/package", description: "Append a package summary to ~/.pie/logs/pie-cli.log" }
|
|
60880
|
+
{ name: "settings/debugs/package", description: "Append a package summary to ~/.pie/logs/pie-cli.log" },
|
|
60881
|
+
{ name: "settings/quit", description: "Exit Pie" },
|
|
60882
|
+
{ name: "skills", description: "Open skills menu" },
|
|
60883
|
+
{ name: "skills/list", description: "List available skills" },
|
|
60884
|
+
{ name: "skills/reload", description: "Reload skills from disk" },
|
|
60885
|
+
{ name: "skills/use", description: "Use a skill" },
|
|
60886
|
+
{ name: "tools/subagent", description: "Spawn subagents in parallel to handle tasks" }
|
|
60879
60887
|
];
|
|
60880
60888
|
|
|
60881
60889
|
// src/commands/interactive-debug-commands.ts
|
|
@@ -63389,7 +63397,7 @@ function handleSkillsCommand(host) {
|
|
|
63389
63397
|
}
|
|
63390
63398
|
function handleSkillCommand(host, name) {
|
|
63391
63399
|
if (!name) {
|
|
63392
|
-
host.showError("Usage: /skill <
|
|
63400
|
+
host.showError("Usage: /skills/skill:<name> <your request>");
|
|
63393
63401
|
return;
|
|
63394
63402
|
}
|
|
63395
63403
|
const skill = host.skills.find((s) => s.name === name);
|
|
@@ -63626,13 +63634,15 @@ async function handleSkillsReload(host) {
|
|
|
63626
63634
|
function showSettingsSelector(host) {
|
|
63627
63635
|
host.showSelector((done) => {
|
|
63628
63636
|
const currentModelId = host.options.model?.id || "unknown";
|
|
63637
|
+
const currentProvider = host.options.model?.provider || "unknown";
|
|
63638
|
+
const currentFullId = `${currentProvider}/${currentModelId}`;
|
|
63629
63639
|
const availableModels = host.options.modelRegistry.listAvailableModels();
|
|
63630
63640
|
const selector = new SettingsSelectorComponent(
|
|
63631
63641
|
{
|
|
63632
63642
|
thinkingLevel: host.thinkingLevel,
|
|
63633
63643
|
currentTheme: getCurrentThemeName(),
|
|
63634
63644
|
availableThemes: getAvailableThemes(),
|
|
63635
|
-
currentModel:
|
|
63645
|
+
currentModel: currentFullId,
|
|
63636
63646
|
availableModels,
|
|
63637
63647
|
yoloMode: host.yoloMode
|
|
63638
63648
|
},
|
|
@@ -63836,9 +63846,10 @@ function handleHotkeysCommand(host) {
|
|
|
63836
63846
|
"",
|
|
63837
63847
|
...BUILTIN_SLASH_COMMANDS.map((cmd) => ` /${cmd.name.padEnd(12)} ${theme.fg("muted", cmd.description)}`),
|
|
63838
63848
|
...host.extensions.flatMap(
|
|
63839
|
-
(ext) => Array.from(ext.commands.
|
|
63840
|
-
|
|
63841
|
-
|
|
63849
|
+
(ext) => Array.from(ext.commands.values()).filter((cmd) => !cmd.hidden).map((cmd) => {
|
|
63850
|
+
const pathName = cmd.path?.join("/") ?? cmd.name;
|
|
63851
|
+
return ` /${pathName.padEnd(12)} ${theme.fg("muted", cmd.description)}${theme.fg("dim", " [ext]")}`;
|
|
63852
|
+
})
|
|
63842
63853
|
)
|
|
63843
63854
|
];
|
|
63844
63855
|
host.chatContainer.addChild(new Spacer(1));
|