storybook-addon-designbook 0.6.0 → 0.7.0
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 +13 -9
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -10452,6 +10452,7 @@ async function resolveAllStages(workflowFilePath, config, rawConfig, agentsDir,
|
|
|
10452
10452
|
}
|
|
10453
10453
|
}
|
|
10454
10454
|
let isolate = false;
|
|
10455
|
+
let interactive = false;
|
|
10455
10456
|
if (stageDefs) {
|
|
10456
10457
|
for (const [, stageDef] of Object.entries(stageDefs)) {
|
|
10457
10458
|
if (!stageDef.steps?.includes(step)) continue;
|
|
@@ -10461,6 +10462,7 @@ async function resolveAllStages(workflowFilePath, config, rawConfig, agentsDir,
|
|
|
10461
10462
|
}
|
|
10462
10463
|
}
|
|
10463
10464
|
if (stageDef.isolate) isolate = true;
|
|
10465
|
+
if (stageDef.interactive) interactive = true;
|
|
10464
10466
|
}
|
|
10465
10467
|
}
|
|
10466
10468
|
const isQualified = step.includes(":");
|
|
@@ -10544,7 +10546,8 @@ async function resolveAllStages(workflowFilePath, config, rawConfig, agentsDir,
|
|
|
10544
10546
|
config_rules,
|
|
10545
10547
|
config_instructions,
|
|
10546
10548
|
...hasSchema ? { schema: schemaBlock } : {},
|
|
10547
|
-
...isolate ? { isolate: true } : {}
|
|
10549
|
+
...isolate ? { isolate: true } : {},
|
|
10550
|
+
...interactive ? { interactive: true } : {}
|
|
10548
10551
|
};
|
|
10549
10552
|
} else {
|
|
10550
10553
|
stepResolved[step] = taskFilePaths.map((taskFile) => ({
|
|
@@ -10554,7 +10557,8 @@ async function resolveAllStages(workflowFilePath, config, rawConfig, agentsDir,
|
|
|
10554
10557
|
config_rules,
|
|
10555
10558
|
config_instructions,
|
|
10556
10559
|
...hasSchema ? { schema: schemaBlock } : {},
|
|
10557
|
-
...isolate ? { isolate: true } : {}
|
|
10560
|
+
...isolate ? { isolate: true } : {},
|
|
10561
|
+
...interactive ? { interactive: true } : {}
|
|
10558
10562
|
}));
|
|
10559
10563
|
}
|
|
10560
10564
|
resolvedSteps.push(step);
|
|
@@ -12661,7 +12665,7 @@ function register4(program2) {
|
|
|
12661
12665
|
});
|
|
12662
12666
|
}
|
|
12663
12667
|
|
|
12664
|
-
// src/
|
|
12668
|
+
// src/runbook/sources.ts
|
|
12665
12669
|
function classifyInputs(paramProperties, eachKeys, priorOutputs) {
|
|
12666
12670
|
const out2 = [];
|
|
12667
12671
|
for (const [name, declRaw] of Object.entries(paramProperties)) {
|
|
@@ -12685,7 +12689,7 @@ function classifyInputs(paramProperties, eachKeys, priorOutputs) {
|
|
|
12685
12689
|
return out2;
|
|
12686
12690
|
}
|
|
12687
12691
|
|
|
12688
|
-
// src/
|
|
12692
|
+
// src/runbook/examples.ts
|
|
12689
12693
|
var HEADING_RE = /^##\s+example\s+output\s*$/i;
|
|
12690
12694
|
var FENCE_OPEN_RE = /^```[\w-]*\s*$/;
|
|
12691
12695
|
var FENCE_CLOSE_RE = /^```\s*$/;
|
|
@@ -12765,7 +12769,7 @@ function slugifyArtifactName(filePath) {
|
|
|
12765
12769
|
return stem.toLowerCase().replace(/[_\s]+/g, "-").replace(/[^a-z0-9-]+/g, "").replace(/-+/g, "-").replace(/^-+|-+$/g, "");
|
|
12766
12770
|
}
|
|
12767
12771
|
|
|
12768
|
-
// src/
|
|
12772
|
+
// src/runbook/reverse-index.ts
|
|
12769
12773
|
function buildArtifactIndex(stepResolved, stages, kind) {
|
|
12770
12774
|
const out2 = {};
|
|
12771
12775
|
for (const [stageName, stageDef] of Object.entries(stages)) {
|
|
@@ -12786,7 +12790,7 @@ function buildArtifactIndex(stepResolved, stages, kind) {
|
|
|
12786
12790
|
return out2;
|
|
12787
12791
|
}
|
|
12788
12792
|
|
|
12789
|
-
// src/
|
|
12793
|
+
// src/runbook/resolve.ts
|
|
12790
12794
|
function readBody(filePath) {
|
|
12791
12795
|
const raw = readFileSync(filePath, "utf-8");
|
|
12792
12796
|
const parsed = fm(raw);
|
|
@@ -12972,7 +12976,7 @@ function renderPlan(ctx) {
|
|
|
12972
12976
|
}
|
|
12973
12977
|
function renderHeader(ctx) {
|
|
12974
12978
|
return [
|
|
12975
|
-
`#
|
|
12979
|
+
`# Runbook: ${ctx.workflowFrontmatter.title ?? ctx.workflowId}`,
|
|
12976
12980
|
"",
|
|
12977
12981
|
`> ${ctx.workflowFrontmatter.description ?? ""}`,
|
|
12978
12982
|
""
|
|
@@ -13147,9 +13151,9 @@ function formatScalar(value) {
|
|
|
13147
13151
|
return JSON.stringify(value);
|
|
13148
13152
|
}
|
|
13149
13153
|
|
|
13150
|
-
// src/cli/
|
|
13154
|
+
// src/cli/runbook.ts
|
|
13151
13155
|
function register5(program2) {
|
|
13152
|
-
program2.command("
|
|
13156
|
+
program2.command("runbook <workflow>").description("Resolve a workflow definition into a self-contained markdown runbook written to stdout.").action(async (workflowId) => {
|
|
13153
13157
|
try {
|
|
13154
13158
|
const configPath = findConfig();
|
|
13155
13159
|
const configDir = configPath ? dirname(configPath) : process.cwd();
|
package/package.json
CHANGED