iteration-cli 0.16.0 → 0.16.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 +2 -2
- package/dist/cli.js +14 -15
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Iteration CLI (private source)
|
|
2
2
|
|
|
3
|
-
This package owns the `iteration-cli@0.16.
|
|
3
|
+
This package owns the `iteration-cli@0.16.1` product executable. Clerk sign-in,
|
|
4
4
|
workspace enrollment and automatic expansion, the default Iteration endpoint,
|
|
5
5
|
commands/status UI, history progress, friction summaries and Codex/Cursor billing
|
|
6
6
|
clients live here, not in the public Trace Vault repository.
|
|
@@ -38,7 +38,7 @@ From the private repository root after workspace initialization:
|
|
|
38
38
|
```sh
|
|
39
39
|
pnpm --filter "iteration-cli..." --recursive --workspace-concurrency=4 run build
|
|
40
40
|
pnpm --filter iteration-cli pack --pack-destination /tmp/iteration-cli-pack
|
|
41
|
-
node packages/cli/smoke.mjs /tmp/iteration-cli-pack/iteration-cli-0.16.
|
|
41
|
+
node packages/cli/smoke.mjs /tmp/iteration-cli-pack/iteration-cli-0.16.1.tgz
|
|
42
42
|
```
|
|
43
43
|
|
|
44
44
|
The package smoke installs the tarball offline under a disposable home and checks
|
package/dist/cli.js
CHANGED
|
@@ -23950,12 +23950,14 @@ ${detail}` : ""}`,
|
|
|
23950
23950
|
}
|
|
23951
23951
|
async function stopTask(source) {
|
|
23952
23952
|
const task = await observedTask(source);
|
|
23953
|
-
if (task === null
|
|
23953
|
+
if (task === null) return false;
|
|
23954
|
+
if (task.state === 1 || task.state === 3) return true;
|
|
23954
23955
|
await schtasks(source, "/End");
|
|
23955
23956
|
const deadline = Date.now() + TASK_TIMEOUT_MS;
|
|
23956
23957
|
while (Date.now() < deadline) {
|
|
23957
23958
|
const current = await observedTask(source);
|
|
23958
|
-
if (current === null
|
|
23959
|
+
if (current === null) return false;
|
|
23960
|
+
if (current.state === 1 || current.state === 3) return true;
|
|
23959
23961
|
await delay3(100);
|
|
23960
23962
|
}
|
|
23961
23963
|
throw new Error(`Windows did not stop the ${source} collector task.`);
|
|
@@ -23991,9 +23993,7 @@ async function installScheduledTask(dataDirectory2, source) {
|
|
|
23991
23993
|
return file;
|
|
23992
23994
|
}
|
|
23993
23995
|
async function uninstallScheduledTask(source) {
|
|
23994
|
-
await stopTask(source);
|
|
23995
|
-
if (await observedTask(source) !== null)
|
|
23996
|
-
await schtasks(source, "/Delete", "/F");
|
|
23996
|
+
if (await stopTask(source)) await schtasks(source, "/Delete", "/F");
|
|
23997
23997
|
await fs15.rm(taskDefinitionPath(source), { force: true });
|
|
23998
23998
|
}
|
|
23999
23999
|
async function scheduledTaskStatus(source) {
|
|
@@ -25641,16 +25641,15 @@ async function logout(extraDirectory) {
|
|
|
25641
25641
|
}
|
|
25642
25642
|
}
|
|
25643
25643
|
await savePendingDirectories(pending, directories);
|
|
25644
|
-
|
|
25645
|
-
|
|
25646
|
-
|
|
25647
|
-
|
|
25648
|
-
|
|
25649
|
-
|
|
25650
|
-
|
|
25651
|
-
|
|
25652
|
-
|
|
25653
|
-
}
|
|
25644
|
+
const stopped = await Promise.all(
|
|
25645
|
+
COLLECTOR_SOURCES2.filter((source) => !unreadableServices.has(source)).map(
|
|
25646
|
+
(source) => uninstallBackgroundService(source).then(
|
|
25647
|
+
() => null,
|
|
25648
|
+
(error3) => `${source}: ${error3 instanceof Error ? error3.message : "Could not stop collector startup."}`
|
|
25649
|
+
)
|
|
25650
|
+
)
|
|
25651
|
+
);
|
|
25652
|
+
for (const failure3 of stopped) if (failure3 !== null) failures.push(failure3);
|
|
25654
25653
|
for (const directory of directories) {
|
|
25655
25654
|
try {
|
|
25656
25655
|
await clearConnection(directory);
|