@super-one/cli 0.51.1-alpha → 0.51.2-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 +2 -2
- package/lib/cli.mjs +17 -4
- package/package.json +1 -1
package/MANIFEST.json
CHANGED
package/lib/cli.mjs
CHANGED
|
@@ -42231,8 +42231,13 @@ function mapWorkflowPhases(raw) {
|
|
|
42231
42231
|
if (!p2) continue;
|
|
42232
42232
|
const title = strField(p2, "title");
|
|
42233
42233
|
if (!title) continue;
|
|
42234
|
+
const detail = strField(p2, "detail");
|
|
42234
42235
|
const state = strField(p2, "state");
|
|
42235
|
-
out.push({
|
|
42236
|
+
out.push({
|
|
42237
|
+
title,
|
|
42238
|
+
...detail ? { detail } : {},
|
|
42239
|
+
...state ? { state } : {}
|
|
42240
|
+
});
|
|
42236
42241
|
}
|
|
42237
42242
|
return out;
|
|
42238
42243
|
}
|
|
@@ -43115,11 +43120,19 @@ function mapSessionUpdate(update, ctx, opts) {
|
|
|
43115
43120
|
const isSkill = Boolean(
|
|
43116
43121
|
c._meta && typeof c._meta === "object" && typeof c._meta.path === "string" && /SKILL\.md$/i.test(c._meta.path)
|
|
43117
43122
|
);
|
|
43123
|
+
const workflowSource = c._meta && typeof c._meta === "object" && typeof c._meta.workflowSource === "string" ? c._meta.workflowSource : void 0;
|
|
43124
|
+
const workflowPath = c._meta && typeof c._meta === "object" && typeof c._meta.workflowPath === "string" ? c._meta.workflowPath : void 0;
|
|
43125
|
+
const isWorkflow = Boolean(workflowSource) || Boolean(workflowPath) || typeof c.description === "string" && /^Workflow:\s/i.test(c.description);
|
|
43118
43126
|
commands.push({
|
|
43119
43127
|
name,
|
|
43120
43128
|
description: typeof c.description === "string" ? c.description : "",
|
|
43121
43129
|
argumentHint: hint,
|
|
43122
|
-
isSkill
|
|
43130
|
+
isSkill,
|
|
43131
|
+
...isWorkflow ? {
|
|
43132
|
+
isWorkflow: true,
|
|
43133
|
+
workflowSource: workflowSource ?? "workflow",
|
|
43134
|
+
...workflowPath ? { workflowPath } : {}
|
|
43135
|
+
} : {}
|
|
43123
43136
|
});
|
|
43124
43137
|
}
|
|
43125
43138
|
return [{ type: "acp_commands", commands }];
|
|
@@ -58231,8 +58244,8 @@ import { fileURLToPath } from "node:url";
|
|
|
58231
58244
|
function resolveCliReleaseVersion() {
|
|
58232
58245
|
const fromEnv = process.env.SUPERONE_CLI_VERSION?.trim();
|
|
58233
58246
|
if (fromEnv) return fromEnv;
|
|
58234
|
-
if ("0.51.
|
|
58235
|
-
return "0.51.
|
|
58247
|
+
if ("0.51.2-alpha".trim()) {
|
|
58248
|
+
return "0.51.2-alpha".trim();
|
|
58236
58249
|
}
|
|
58237
58250
|
const fromDist = readDistManifestVersion();
|
|
58238
58251
|
if (fromDist) return fromDist;
|
package/package.json
CHANGED