clawstrap 1.4.0 → 1.4.1
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/index.cjs +12 -5
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -751,7 +751,8 @@ var WORKLOAD_LABELS2 = {
|
|
|
751
751
|
custom: "General Purpose"
|
|
752
752
|
};
|
|
753
753
|
async function init(directory, options) {
|
|
754
|
-
const
|
|
754
|
+
const answers = options.yes ? getDefaults(directory) : await runPrompts();
|
|
755
|
+
const targetDir = directory === "." ? import_node_path3.default.resolve(answers.workspaceName) : import_node_path3.default.resolve(directory);
|
|
755
756
|
if (import_node_fs2.default.existsSync(targetDir)) {
|
|
756
757
|
const hasClawstrap = import_node_fs2.default.existsSync(
|
|
757
758
|
import_node_path3.default.join(targetDir, ".clawstrap.json")
|
|
@@ -775,9 +776,8 @@ async function init(directory, options) {
|
|
|
775
776
|
} else {
|
|
776
777
|
import_node_fs2.default.mkdirSync(targetDir, { recursive: true });
|
|
777
778
|
}
|
|
778
|
-
const answers = options.yes ? getDefaults(directory) : await runPrompts();
|
|
779
779
|
const config = ClawstrapConfigSchema.parse({
|
|
780
|
-
version: "1.
|
|
780
|
+
version: "1.4.1",
|
|
781
781
|
createdAt: (/* @__PURE__ */ new Date()).toISOString(),
|
|
782
782
|
workspaceName: answers.workspaceName,
|
|
783
783
|
targetDirectory: directory,
|
|
@@ -806,9 +806,16 @@ async function init(directory, options) {
|
|
|
806
806
|
for (const dir of result.dirsCreated) {
|
|
807
807
|
console.log(` \u2713 ${dir}/`);
|
|
808
808
|
}
|
|
809
|
-
|
|
809
|
+
const folderName = import_node_path3.default.basename(targetDir);
|
|
810
|
+
if (directory === ".") {
|
|
811
|
+
console.log(`
|
|
812
|
+
Done. Run \`cd ${folderName}\` and open GETTING_STARTED.md to begin.
|
|
813
|
+
`);
|
|
814
|
+
} else {
|
|
815
|
+
console.log(`
|
|
810
816
|
Done. Open GETTING_STARTED.md to begin.
|
|
811
817
|
`);
|
|
818
|
+
}
|
|
812
819
|
}
|
|
813
820
|
|
|
814
821
|
// src/add-agent.ts
|
|
@@ -2221,7 +2228,7 @@ async function analyze() {
|
|
|
2221
2228
|
|
|
2222
2229
|
// src/index.ts
|
|
2223
2230
|
var program = new import_commander.Command();
|
|
2224
|
-
program.name("clawstrap").description("Scaffold a production-ready AI agent workspace").version("1.4.
|
|
2231
|
+
program.name("clawstrap").description("Scaffold a production-ready AI agent workspace").version("1.4.1");
|
|
2225
2232
|
program.command("init").description("Create a new AI workspace in the current directory").argument("[directory]", "Target directory", ".").option("-y, --yes", "Use defaults, skip prompts").option("--sdd", "Enable Spec-Driven Development mode").action(async (directory, options) => {
|
|
2226
2233
|
await init(directory, options);
|
|
2227
2234
|
});
|