@azad-73/cli 0.2.0 → 0.2.1

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.
Files changed (2) hide show
  1. package/dist/azad.js +24 -1
  2. package/package.json +1 -1
package/dist/azad.js CHANGED
@@ -273,6 +273,19 @@ var TIP_ITEMS = [
273
273
  { cmd: "/model", desc: "switch the active model" },
274
274
  { cmd: "/hotkeys", desc: "show all keyboard shortcuts" }
275
275
  ];
276
+ var HELP_LINES = [
277
+ "Slash commands (type here):",
278
+ " /login connect a provider (API key or subscription)",
279
+ " /model switch model",
280
+ " /mode choose approval mode (also alt+a)",
281
+ " /ask approval: ask before mutating tools",
282
+ " /auto approval: auto-pilot",
283
+ " /hotkeys keyboard shortcuts",
284
+ "Shell (run: azad <cmd>):",
285
+ " agents list|show|new|edit",
286
+ " workflow list|show|new|edit|run",
287
+ " auth status|set|remove \xB7 update \xB7 version"
288
+ ];
276
289
  var ANIM_STYLE = "wipe";
277
290
  var ANIM_MS = 750;
278
291
  function animateLogoCell(theme, rowText, progress) {
@@ -325,6 +338,12 @@ function boxedHeader(theme, version, width, progress) {
325
338
  }
326
339
  function createBrandingExtension(opts) {
327
340
  return (pi) => {
341
+ pi.registerCommand("help", {
342
+ description: "Show Azad73 commands",
343
+ handler: async (_args, ctx) => {
344
+ await ctx.ui.select("Azad73 commands (Esc to close)", [...HELP_LINES]);
345
+ }
346
+ });
328
347
  pi.on("session_start", async (_event, ctx) => {
329
348
  if (ctx.mode !== "tui") return;
330
349
  ctx.ui.setTitle("Azad73");
@@ -846,7 +865,11 @@ function printHelp() {
846
865
  " azad workflow run <name> run a workflow (--model <id> to override the model)",
847
866
  " azad auth status|set|remove manage the Anthropic credential (~/.azad/auth.json)",
848
867
  " azad version print version",
849
- " azad update update to the latest published version"
868
+ " azad update update to the latest published version",
869
+ "",
870
+ "inside the TUI (type in azad):",
871
+ " /login connect a provider /model switch model /hotkeys shortcuts",
872
+ " /mode approval mode (alt+a) /ask \xB7 /auto /help commands"
850
873
  ].join("\n")
851
874
  );
852
875
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azad-73/cli",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "Azad73 — agentic AI platform CLI (branded TUI + agents) built on the Pi SDK",
5
5
  "license": "UNLICENSED",
6
6
  "type": "module",