@phnx-labs/agents-cli 1.23.53 → 1.23.54
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 +4 -0
- package/README.md +1 -1
- package/dist/commands/recordings.js +1 -1
- package/dist/lib/recordings/config.js +16 -2
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.23.54
|
|
4
|
+
|
|
5
|
+
- **`agents recordings` keeps its ledger under `~/.agents/.history/recordings/`.** It wrote `config.json` and `ledger.json` to `~/.agents/recordings/`, the root of your tracked resources repo, so they showed up as untracked files there. An existing `~/.agents/recordings/` is moved on first use, so already-published recordings keep their rows and are not uploaded again. Source: `cli/src/lib/recordings/config.ts`.
|
|
6
|
+
|
|
3
7
|
## 1.23.53
|
|
4
8
|
|
|
5
9
|
- **Antigravity runs headless with JSON, resume, plan, effort and extra directories, and picks only a login it will actually use.** `agents run antigravity "…" --json` passes `agy --output-format stream-json` (the old TODO said it was broken upstream; agy 1.5.16 streams `init`, `step_update` and `result` events), and `agents teams` now parses those events into messages, `bash`, `file_create`/`file_write` and results instead of `unknown`. `--resume <id>` maps to `agy --conversation <id>` (agy 1.1.27+). `--mode plan` maps to `agy --mode plan` and runs read-only headless, so it no longer degrades to a writable run; `--mode edit` maps to `agy --mode accept-edits`. `-e/--effort` passes `agy --effort <level>` and `--add-dir` passes `agy --add-dir`, where both were silently dropped. Under `--strategy balanced`, an Antigravity version counted as signed in when its own home held a token, but agy reads whichever home `~/.gemini/antigravity-cli` points at, so the run asked for a Google login and timed out after 60 s. A symlink-adopted harness (antigravity, droid, goose and the others without a config env) now counts a version as launchable only while the symlink names its home; `agents use antigravity@<version>` switches it. The same verdict feeds `launchable` in fleet probes, the accounts limits column and the `run.launch` event's `signedIn`. The `agy` preset no longer claims a gemini-3.5-flash default, and `prices.json` adds Gemini 4 Carbon, Argon, Neon and Hydrogen, Gemini 3.8 Flash and Gemini 3.1 Pro at Google's list prices after the introductory prices end (2026-12-01 for Carbon and Argon, 2027-01-01 for 3.8 Flash). Source: `cli/src/lib/exec.ts`, `cli/src/lib/teams/parsers.ts`, `cli/src/lib/accounting/rotate.ts`, `cli/src/lib/models.ts`, `cli/src/lib/add-dir.ts`, `cli/src/lib/pricing/prices.json`.
|
package/README.md
CHANGED
|
@@ -421,7 +421,7 @@ Install `ffmpeg` and `@phnx-labs/artifacts-cli`, then sign in to `artifacts` wit
|
|
|
421
421
|
organization email. Every publish uses `--visibility org --expire never`; public inbox
|
|
422
422
|
identities are refused rather than turning a team recording into a personal artifact.
|
|
423
423
|
CleanShot re-exports such as `… AM 3.mp4` replace the earlier artifact at the same slug.
|
|
424
|
-
The restart-safe ledger is `~/.agents/recordings/ledger.json`. See
|
|
424
|
+
The restart-safe ledger is `~/.agents/.history/recordings/ledger.json`. See
|
|
425
425
|
[the recordings guide](cli/docs/recordings.md) for the data flow and failure behavior.
|
|
426
426
|
|
|
427
427
|
### Back up sessions off-box
|
|
@@ -99,7 +99,7 @@ agents recordings watch --dir ~/Movies/CleanShot`,
|
|
|
99
99
|
setHelpSections(list, {
|
|
100
100
|
examples: `agents recordings list
|
|
101
101
|
agents recordings list --json`,
|
|
102
|
-
notes: 'The ledger lives at ~/.agents/recordings/ledger.json and is reused after daemon restarts.',
|
|
102
|
+
notes: 'The ledger lives at ~/.agents/.history/recordings/ledger.json and is reused after daemon restarts.',
|
|
103
103
|
});
|
|
104
104
|
const upload = command.command('upload <file>')
|
|
105
105
|
.description('Transcode and publish one recording through the watcher pipeline.')
|
|
@@ -1,10 +1,24 @@
|
|
|
1
1
|
import * as fs from 'node:fs/promises';
|
|
2
|
+
import { existsSync, mkdirSync, renameSync } from 'node:fs';
|
|
2
3
|
import * as path from 'node:path';
|
|
3
|
-
import { getUserAgentsDir } from '../state.js';
|
|
4
|
+
import { getHistoryDir, getUserAgentsDir } from '../state.js';
|
|
4
5
|
import { atomicWriteFile } from '../fs-atomic.js';
|
|
5
6
|
import { runProcess } from './process.js';
|
|
6
7
|
export function recordingsStateDir() {
|
|
7
|
-
|
|
8
|
+
const dir = path.join(getHistoryDir(), 'recordings');
|
|
9
|
+
const legacy = path.join(getUserAgentsDir(), 'recordings');
|
|
10
|
+
if (!existsSync(dir) && existsSync(legacy)) {
|
|
11
|
+
mkdirSync(getHistoryDir(), { recursive: true, mode: 0o700 });
|
|
12
|
+
try {
|
|
13
|
+
renameSync(legacy, dir);
|
|
14
|
+
}
|
|
15
|
+
catch (error) {
|
|
16
|
+
const code = error.code;
|
|
17
|
+
if (code !== 'ENOENT' && code !== 'EEXIST' && code !== 'ENOTEMPTY')
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return dir;
|
|
8
22
|
}
|
|
9
23
|
export function recordingsConfigPath() {
|
|
10
24
|
return path.join(recordingsStateDir(), 'config.json');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/agents-cli",
|
|
3
|
-
"version": "1.23.
|
|
3
|
+
"version": "1.23.54",
|
|
4
4
|
"description": "One CLI for all your AI coding agents - versions, config, cloud dispatch, sessions, and teams (now with first-class Grok Build CLI support)",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|