@timurproko/a1 0.1.6 → 0.1.8-dev.820b4a4

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.
@@ -5,7 +5,7 @@
5
5
  "platform": "darwin",
6
6
  "architecture": "arm64",
7
7
  "capability": "unsupported",
8
- "builtAt": "2026-08-23T18:47:53.654Z",
8
+ "builtAt": "2026-08-24T06:21:14.306Z",
9
9
  "artifact": {
10
10
  "filename": "process-guardian",
11
11
  "sha256": "7524bf568992517f50ed53196c861c5edeba0d7275633bb4735ab45bd5963a28",
@@ -5,7 +5,7 @@
5
5
  "platform": "linux",
6
6
  "architecture": "x64",
7
7
  "capability": "supported",
8
- "builtAt": "2026-08-23T18:48:04.514Z",
8
+ "builtAt": "2026-08-24T06:21:16.988Z",
9
9
  "artifact": {
10
10
  "filename": "process-guardian",
11
11
  "sha256": "29e22fe29de2828982bc67ef418c4adcaab1490281477b7bea592ec6fe621bcd",
@@ -5,10 +5,10 @@
5
5
  "platform": "win32",
6
6
  "architecture": "x64",
7
7
  "capability": "supported",
8
- "builtAt": "2026-08-23T18:48:28.755Z",
8
+ "builtAt": "2026-08-24T06:21:59.348Z",
9
9
  "artifact": {
10
10
  "filename": "process-guardian.exe",
11
- "sha256": "5d7fd064a814b48628bc9a47ef7fe0b9f2a3e315eeb00e6d492733ce982b6f0c",
11
+ "sha256": "a6130ee1d6a5008de29c91aba4ed592381aa9e192faa27a4b7d07b817555fbac",
12
12
  "size": 172544
13
13
  },
14
14
  "provenance": {
@@ -14,6 +14,13 @@ import { materializeRelease, readMaterializedRelease } from "./release-store.js"
14
14
  import { UpdateTransactionStore } from "./update-transaction.js";
15
15
  export const PRODUCT_PACKAGE = PRODUCT_TEXT.packageName;
16
16
  const UPDATE_DIST_TAGS = { stable: "latest", next: "next" };
17
+ /**
18
+ * What each channel is called when A1 says it out loud. The internal name stays
19
+ * `stable` because that is what the channel is, but what a reader is moving to is
20
+ * a release, and that is the word the repository, its tags, and its GitHub
21
+ * releases all use.
22
+ */
23
+ const UPDATE_CHANNEL_LABELS = { stable: "release", next: "next" };
17
24
  const defaultFileSystem = {
18
25
  async readFile(path) { return await readFile(path, "utf8"); },
19
26
  realpath,
@@ -192,12 +199,17 @@ function createUpdateProgress(output, enabled) {
192
199
  }, PROGRESS_TICK_MS);
193
200
  timer.unref?.();
194
201
  },
202
+ // The bar exists to say the update is still moving. Once it has finished
203
+ // there is a better line to occupy that row — the one naming what is now
204
+ // installed — so the bar gives the row back rather than leaving a full
205
+ // meter above a message that already implies it.
195
206
  finish() {
196
207
  stopCreep();
197
208
  if (!visible)
198
209
  return;
199
- output.stdout(`\r${renderProgressBar(100)}\n`);
210
+ output.stdout(`\r${" ".repeat(PROGRESS_BAR_WIDTH + 6)}\r`);
200
211
  visible = false;
212
+ shown = -1;
201
213
  },
202
214
  clear() {
203
215
  stopCreep();
@@ -245,7 +257,7 @@ export async function runSelfUpdate(options) {
245
257
  output.stderr(`${PRODUCT_TEXT.diagnostic(`received a malformed ${distTag} version from npm: ${JSON.stringify(targetLookup.result.stdout.trim())}.`)}\n`);
246
258
  return 1;
247
259
  }
248
- output.stdout(`${PRODUCT_TEXT.commandName} update (${channel}): ${runningVersion} → ${targetVersion}.\n`);
260
+ output.stdout(`${PRODUCT_TEXT.commandName} update (${UPDATE_CHANNEL_LABELS[channel]}): ${runningVersion} → ${targetVersion}.\n`);
249
261
  const progress = createUpdateProgress(output, options.progress ?? (options.output === undefined && process.stdout.isTTY === true));
250
262
  const rootLookup = await measure("global-root", async () => await runNpm(runner, ["root", "--global"], true, output, "resolve npm's global package root"));
251
263
  if (rootLookup.result === null)
@@ -334,7 +346,7 @@ export async function runSelfUpdate(options) {
334
346
  await transactionStore.clearCompleted();
335
347
  options.onPhaseTiming?.({ phase: "transaction-complete", durationMs: Math.max(0, now() - transactionStartedAt) });
336
348
  progress.finish();
337
- output.stdout(`${PRODUCT_TEXT.commandName} updated successfully: ${targetVersion} (${channel}).\n`);
349
+ output.stdout(`${PRODUCT_TEXT.commandName} updated successfully: ${targetVersion}.\n`);
338
350
  return 0;
339
351
  }
340
352
  catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@timurproko/a1",
3
- "version": "0.1.6",
3
+ "version": "0.1.8-dev.820b4a4",
4
4
  "description": "Standalone terminal workspace for supervised native and managed agents",
5
5
  "type": "module",
6
6
  "packageManager": "npm@11.13.0",