@super-one/cli 0.50.6-alpha → 0.50.7-alpha

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/MANIFEST.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.50.6-alpha",
3
+ "version": "0.50.7-alpha",
4
4
  "kind": "npm",
5
5
  "minNodeMajor": 20,
6
- "builtAt": "2026-08-07T21:59:53.372Z"
6
+ "builtAt": "2026-08-08T03:37:34.425Z"
7
7
  }
package/lib/cli.mjs CHANGED
@@ -13840,6 +13840,19 @@ function parseSimpleFrontmatter(content) {
13840
13840
  }
13841
13841
  return result;
13842
13842
  }
13843
+ function resolveArgumentHint(fm) {
13844
+ if (!fm) return "";
13845
+ const fromArguments = (fm.arguments ?? "").trim();
13846
+ if (fromArguments) return fromArguments;
13847
+ return (fm["argument-hint"] ?? "").trim();
13848
+ }
13849
+ function readArgumentHintFromMarkdownFile(filePath) {
13850
+ try {
13851
+ return resolveArgumentHint(parseSimpleFrontmatter(safeReadText(filePath)));
13852
+ } catch {
13853
+ return "";
13854
+ }
13855
+ }
13843
13856
  function firstMarkdownHeading(content) {
13844
13857
  for (const line of content.split("\n")) {
13845
13858
  const m2 = line.match(/^#\s+(.+)$/);
@@ -13870,7 +13883,7 @@ function discoverClaudeSkillsAndCommands(projectRoot2, opts) {
13870
13883
  skills.push({
13871
13884
  name: ent.name,
13872
13885
  description: fm.description ?? "",
13873
- argumentHint: fm.arguments ?? fm["argument-hint"] ?? "",
13886
+ argumentHint: resolveArgumentHint(fm),
13874
13887
  isSkill: true,
13875
13888
  scope
13876
13889
  });
@@ -13894,7 +13907,7 @@ function discoverClaudeSkillsAndCommands(projectRoot2, opts) {
13894
13907
  commands.push({
13895
13908
  name,
13896
13909
  description: fm.description ?? firstMarkdownHeading(content),
13897
- argumentHint: fm["argument-hint"] ?? "",
13910
+ argumentHint: resolveArgumentHint(fm),
13898
13911
  isSkill: false,
13899
13912
  scope
13900
13913
  });
@@ -14127,7 +14140,7 @@ function discoverCodexUserPrompts(opts) {
14127
14140
  out.push({
14128
14141
  name,
14129
14142
  description: fm.description ?? "",
14130
- argumentHint: fm["argument-hint"] ?? "",
14143
+ argumentHint: resolveArgumentHint(fm),
14131
14144
  isSkill: false
14132
14145
  });
14133
14146
  }
@@ -18825,7 +18838,7 @@ function parseFrontmatterFile(filePath) {
18825
18838
  return {
18826
18839
  name: fm.name ?? "",
18827
18840
  description,
18828
- argumentHint: fm.arguments ?? fm["argument-hint"] ?? ""
18841
+ argumentHint: resolveArgumentHint(fm)
18829
18842
  };
18830
18843
  } catch {
18831
18844
  return { name: "", description: "", argumentHint: "" };
@@ -42291,12 +42304,18 @@ function mapSessionUpdate(update, ctx, opts) {
42291
42304
  const name = c.name.replace(/^\//, "").trim();
42292
42305
  if (!name) continue;
42293
42306
  if (isHiddenAcpPermissionSlashCommand(name)) continue;
42294
- const hint = c.input && typeof c.input === "object" && typeof c.input.hint === "string" ? c.input.hint : "";
42307
+ let hint = c.input && typeof c.input === "object" && typeof c.input.hint === "string" ? c.input.hint.trim() : "";
42308
+ if (!hint && c._meta && typeof c._meta === "object" && typeof c._meta.path === "string") {
42309
+ hint = readArgumentHintFromMarkdownFile(c._meta.path);
42310
+ }
42311
+ const isSkill = Boolean(
42312
+ c._meta && typeof c._meta === "object" && typeof c._meta.path === "string" && /SKILL\.md$/i.test(c._meta.path)
42313
+ );
42295
42314
  commands.push({
42296
42315
  name,
42297
42316
  description: typeof c.description === "string" ? c.description : "",
42298
42317
  argumentHint: hint,
42299
- isSkill: false
42318
+ isSkill
42300
42319
  });
42301
42320
  }
42302
42321
  return [{ type: "acp_commands", commands }];
@@ -42481,6 +42500,7 @@ function createAcpAgentEventMapper(options) {
42481
42500
  var init_agent_event_mapper3 = __esm({
42482
42501
  "../../packages/acp/src/agent-event-mapper.ts"() {
42483
42502
  "use strict";
42503
+ init_fs();
42484
42504
  init_config_map();
42485
42505
  init_slash_filter();
42486
42506
  init_tool_normalization();
@@ -57406,8 +57426,8 @@ import { fileURLToPath } from "node:url";
57406
57426
  function resolveCliReleaseVersion() {
57407
57427
  const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
57408
57428
  if (fromEnv) return fromEnv;
57409
- if ("0.50.6-alpha".trim()) {
57410
- return "0.50.6-alpha".trim();
57429
+ if ("0.50.7-alpha".trim()) {
57430
+ return "0.50.7-alpha".trim();
57411
57431
  }
57412
57432
  const fromDist = readDistManifestVersion();
57413
57433
  if (fromDist) return fromDist;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@super-one/cli",
3
- "version": "0.50.6-alpha",
3
+ "version": "0.50.7-alpha",
4
4
  "description": "SuperOne headless node CLI — remote execution environment (RPC, workspaces, sessions).",
5
5
  "type": "module",
6
6
  "license": "BUSL-1.1",