@duyquangnvx/create-agent-cli 0.10.0 → 0.10.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/CHANGELOG.md +6 -0
- package/dist/bin.js +3 -3
- package/package.json +2 -2
- package/template/test/global-setup.ts +13 -0
- package/template/vitest.config.ts +1 -0
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,12 @@ What changed in each release of `@duyquangnvx/agent-cli` (the Runtime) and `@duy
|
|
|
4
4
|
|
|
5
5
|
## Unreleased
|
|
6
6
|
|
|
7
|
+
## v0.10.1 (2026-10-22)
|
|
8
|
+
|
|
9
|
+
### Changed
|
|
10
|
+
|
|
11
|
+
- A scaffolded CLI's tests create their temp folders under one root that `test/global-setup.ts` removes after the run, so they leave nothing in `$TMPDIR`.
|
|
12
|
+
|
|
7
13
|
## v0.10.0 (2026-10-21)
|
|
8
14
|
|
|
9
15
|
### Changed
|
package/dist/bin.js
CHANGED
|
@@ -9421,14 +9421,14 @@ async function runProcess(cli) {
|
|
|
9421
9421
|
}
|
|
9422
9422
|
//#endregion
|
|
9423
9423
|
//#region package.json
|
|
9424
|
-
var version$1 = "0.10.
|
|
9424
|
+
var version$1 = "0.10.1";
|
|
9425
9425
|
var description = "Creates a new Agent CLI repository wired to @duyquangnvx/agent-cli.";
|
|
9426
9426
|
//#endregion
|
|
9427
9427
|
//#region src/build.ts
|
|
9428
9428
|
const build = {
|
|
9429
|
-
"sha": "
|
|
9429
|
+
"sha": "0e1aa22",
|
|
9430
9430
|
"dirty": false,
|
|
9431
|
-
"builtAt": "2026-10-
|
|
9431
|
+
"builtAt": "2026-10-22T01:43:18.000Z"
|
|
9432
9432
|
};
|
|
9433
9433
|
//#endregion
|
|
9434
9434
|
//#region src/steps.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@duyquangnvx/create-agent-cli",
|
|
3
|
-
"version": "0.10.
|
|
3
|
+
"version": "0.10.1",
|
|
4
4
|
"description": "Creates a new Agent CLI repository wired to @duyquangnvx/agent-cli.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -19,7 +19,7 @@
|
|
|
19
19
|
"access": "public"
|
|
20
20
|
},
|
|
21
21
|
"devDependencies": {
|
|
22
|
-
"@duyquangnvx/agent-cli": "0.10.
|
|
22
|
+
"@duyquangnvx/agent-cli": "0.10.1",
|
|
23
23
|
"tsdown": "0.23.0",
|
|
24
24
|
"zod": "4.6.7"
|
|
25
25
|
},
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { mkdtempSync, rmSync } from "node:fs";
|
|
2
|
+
import { tmpdir } from "node:os";
|
|
3
|
+
import { join } from "node:path";
|
|
4
|
+
|
|
5
|
+
// Workers and the processes they spawn read the temp dir from these variables, so every
|
|
6
|
+
// temp folder a test makes lands under one root that the teardown removes, even after a failure.
|
|
7
|
+
export default function setup(): () => void {
|
|
8
|
+
const root = mkdtempSync(join(tmpdir(), "{{binName}}-test-"));
|
|
9
|
+
process.env.TMPDIR = root;
|
|
10
|
+
process.env.TEMP = root;
|
|
11
|
+
process.env.TMP = root;
|
|
12
|
+
return () => rmSync(root, { recursive: true, force: true, maxRetries: 3 });
|
|
13
|
+
}
|