agentplane 0.1.1 → 0.1.2
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/prompts.js +1 -1
- package/dist/cli/recipes-bundled.js +3 -3
- package/dist/run-cli.d.ts.map +1 -1
- package/dist/run-cli.js +1119 -363
- package/dist/task-backend.d.ts.map +1 -1
- package/dist/task-backend.js +37 -22
- package/dist/version.js +1 -1
- package/package.json +2 -2
package/dist/cli/prompts.js
CHANGED
|
@@ -8,7 +8,7 @@ export async function promptChoice(prompt, choices, defaultValue) {
|
|
|
8
8
|
if (!trimmed)
|
|
9
9
|
return defaultValue;
|
|
10
10
|
if (!choices.includes(trimmed)) {
|
|
11
|
-
process.stdout.write(`Invalid choice
|
|
11
|
+
process.stdout.write(`Invalid choice; using default ${defaultValue}\n`);
|
|
12
12
|
return defaultValue;
|
|
13
13
|
}
|
|
14
14
|
return trimmed;
|
|
@@ -10,9 +10,9 @@ export function listBundledRecipes() {
|
|
|
10
10
|
export function renderBundledRecipesHint() {
|
|
11
11
|
const entries = listBundledRecipes();
|
|
12
12
|
if (entries.length === 0) {
|
|
13
|
-
return "
|
|
13
|
+
return "Bundled recipes: none";
|
|
14
14
|
}
|
|
15
|
-
return `
|
|
15
|
+
return `Bundled recipes: ${entries.map((entry) => entry.id).join(", ")}`;
|
|
16
16
|
}
|
|
17
17
|
export function validateBundledRecipesSelection(recipes) {
|
|
18
18
|
if (recipes.length === 0)
|
|
@@ -27,7 +27,7 @@ export function validateBundledRecipesSelection(recipes) {
|
|
|
27
27
|
throw new CliError({
|
|
28
28
|
exitCode: 2,
|
|
29
29
|
code: "E_USAGE",
|
|
30
|
-
message: `Unknown
|
|
30
|
+
message: `Unknown recipe id(s): ${missing.join(", ")}. ${renderBundledRecipesHint()}`,
|
|
31
31
|
});
|
|
32
32
|
}
|
|
33
33
|
}
|
package/dist/run-cli.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run-cli.d.ts","sourceRoot":"","sources":["../src/run-cli.ts"],"names":[],"mappings":"AAgtQA,wBAAsB,MAAM,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAu/D5D"}
|