@cardor/agent-harness-kit 1.7.0 → 1.7.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/README.md +1 -1
- package/dist/cli.js +6 -6
- package/dist/cli.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -163,7 +163,7 @@ ahk init --name "my-app" --provider codex-cli --docs ./docs --tasks local
|
|
|
163
163
|
|
|
164
164
|
Run this once per project. If the project is already initialized, the command prints an 'already initialized' message with suggested next-step commands (`ahk build`, `ahk build --sync`, `ahk reset`, `ahk serve`) and exits without overwriting anything.
|
|
165
165
|
|
|
166
|
-
The config file extension is chosen automatically: `.ts` if a `tsconfig.json` is present, `.mjs` for ESM-only projects (`"type": "module"` in `package.json`), or `.
|
|
166
|
+
The config file extension is chosen automatically: `.ts` if a `tsconfig.json` is present, `.mjs` for ESM-only projects (`"type": "module"` in `package.json`), or `.mjs` otherwise.
|
|
167
167
|
|
|
168
168
|
---
|
|
169
169
|
|
package/dist/cli.js
CHANGED
|
@@ -455,8 +455,8 @@ function configTs(params) {
|
|
|
455
455
|
|
|
456
456
|
export default defineHarness({
|
|
457
457
|
project: {
|
|
458
|
-
name: '${params.name}',
|
|
459
|
-
description:
|
|
458
|
+
name: '${JSON.stringify(params.name)}',
|
|
459
|
+
description: ${JSON.stringify(params.description)},
|
|
460
460
|
docsPath: '${params.docsPath}',
|
|
461
461
|
},
|
|
462
462
|
|
|
@@ -506,8 +506,8 @@ function configCjs(params) {
|
|
|
506
506
|
|
|
507
507
|
module.exports = defineHarness({
|
|
508
508
|
project: {
|
|
509
|
-
name: '${params.name}',
|
|
510
|
-
description:
|
|
509
|
+
name: '${JSON.stringify(params.name)}',
|
|
510
|
+
description: ${JSON.stringify(params.description)},
|
|
511
511
|
docsPath: '${params.docsPath}',
|
|
512
512
|
},
|
|
513
513
|
|
|
@@ -1998,12 +1998,12 @@ function detectConfigExtension(cwd2) {
|
|
|
1998
1998
|
try {
|
|
1999
1999
|
if (existsSync8(join11(cwd2, "tsconfig.json"))) return "ts";
|
|
2000
2000
|
const pkgPath2 = join11(cwd2, "package.json");
|
|
2001
|
-
if (!existsSync8(pkgPath2)) return "
|
|
2001
|
+
if (!existsSync8(pkgPath2)) return "mjs";
|
|
2002
2002
|
const pkg2 = JSON.parse(readFileSync5(pkgPath2, "utf8"));
|
|
2003
2003
|
if (pkg2?.type === "module") return "mjs";
|
|
2004
2004
|
} catch {
|
|
2005
2005
|
}
|
|
2006
|
-
return "
|
|
2006
|
+
return "mjs";
|
|
2007
2007
|
}
|
|
2008
2008
|
function applyConfigDefaults(params) {
|
|
2009
2009
|
return {
|