@sweny-ai/core 0.1.158 → 0.1.159
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.
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
*/
|
|
9
9
|
import type { ExecutionTrace, NodeResult, Workflow } from "../types.js";
|
|
10
10
|
import { type RunSummary } from "./run-output.js";
|
|
11
|
-
export declare const RUN_COMMENT_FOOTER = "Run with [SWEny](https://sweny
|
|
11
|
+
export declare const RUN_COMMENT_FOOTER = "Run with [SWEny](https://github.com/swenyai/sweny): `npx @sweny-ai/core new`";
|
|
12
12
|
export interface RunCommentOptions {
|
|
13
13
|
trace?: ExecutionTrace;
|
|
14
14
|
/** Per-node wall-clock duration in ms, keyed by node id. Missing entries render as "-". */
|
|
@@ -10,7 +10,7 @@ import fs from "node:fs";
|
|
|
10
10
|
import path from "node:path";
|
|
11
11
|
import { toMermaidBlock } from "../mermaid.js";
|
|
12
12
|
import { STEP_SUMMARY_CLASS_DEFS, formatReceipt, formatReceiptDuration, nodeStates, } from "./run-output.js";
|
|
13
|
-
export const RUN_COMMENT_FOOTER = "Run with [SWEny](https://sweny
|
|
13
|
+
export const RUN_COMMENT_FOOTER = "Run with [SWEny](https://github.com/swenyai/sweny): `npx @sweny-ai/core new`";
|
|
14
14
|
/** Hidden marker the poster searches for to update the comment in place. */
|
|
15
15
|
export function runCommentMarker(workflowId) {
|
|
16
16
|
const safe = workflowId.replace(/[^A-Za-z0-9._-]+/g, "_").replace(/-{2,}/g, "-") || "workflow";
|
package/dist/cli/main.js
CHANGED
|
@@ -82,7 +82,7 @@ const program = new Command()
|
|
|
82
82
|
// ── sweny new ─────────────────────────────────────────────────────────
|
|
83
83
|
program
|
|
84
84
|
.command("new [id]")
|
|
85
|
-
.description("Create a new workflow. With no id, opens the interactive picker. With an id, uses that built-in template
|
|
85
|
+
.description("Create a new workflow. With no id, opens the interactive picker. With an id, uses that built-in template.")
|
|
86
86
|
.option("--template <id>", "Use a built-in template without the picker")
|
|
87
87
|
.option("-y, --yes", "Skip every prompt (never overwrites existing files)")
|
|
88
88
|
.action(async (id, options) => {
|
package/dist/cli/marketplace.js
CHANGED
|
@@ -27,7 +27,7 @@ export async function fetchMarketplaceWorkflow(id) {
|
|
|
27
27
|
throw err;
|
|
28
28
|
}
|
|
29
29
|
if (res.status === 404) {
|
|
30
|
-
const err = new Error(`Workflow "${id}" not found in ${MARKETPLACE_REPO}
|
|
30
|
+
const err = new Error(`Workflow "${id}" not found in ${MARKETPLACE_REPO}.`);
|
|
31
31
|
err.kind = "not-found";
|
|
32
32
|
throw err;
|
|
33
33
|
}
|
package/dist/cli/new.js
CHANGED
|
@@ -625,12 +625,9 @@ export async function runNew(options) {
|
|
|
625
625
|
const entries = await fetchMarketplaceIndex({ timeoutMs: 3000 });
|
|
626
626
|
if (Array.isArray(entries) && entries.length > 0)
|
|
627
627
|
marketplaceEntries = entries;
|
|
628
|
-
else
|
|
629
|
-
p.log.info("Marketplace has no workflows yet. Showing built-in templates.");
|
|
630
628
|
}
|
|
631
|
-
catch
|
|
632
|
-
|
|
633
|
-
p.log.info(`Marketplace unavailable (${reason}). Showing built-in templates.`);
|
|
629
|
+
catch {
|
|
630
|
+
// No reachable index: built-in templates only, and nothing about a marketplace is shown.
|
|
634
631
|
}
|
|
635
632
|
templateChoice = await p.select({
|
|
636
633
|
message: "What do you want to do?",
|