@phnx-labs/agents-cli 1.22.5 → 1.22.6
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/dist/bin/agents +0 -0
- package/dist/commands/exec.js +11 -1
- package/dist/commands/monitors.js +1 -1
- package/dist/index.js +2 -1
- package/dist/lib/menubar/MenubarHelper.app/Contents/CodeResources +0 -0
- package/dist/lib/menubar/MenubarHelper.app/Contents/MacOS/MenubarHelper +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/CodeResources +0 -0
- package/dist/lib/secrets/Agents CLI.app/Contents/MacOS/Agents CLI +0 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.22.6
|
|
4
|
+
|
|
5
|
+
- **Cost tiers are ignored (with a clear warning) for profile runs.** A profile's model comes from its endpoint (e.g. Kimi/DeepSeek/GLM via `agents run <profile>`), not the host harness's catalog — so passing `--model cheap|default|best|ultra` to a profile used to resolve against the *host* harness and forward an incompatible model id to the profile's endpoint. Now a tier on a profile run is discarded with a standout warning and the profile's configured model is used. Concrete `--model <id>` on a profile is unchanged. Source: `apps/cli/src/commands/exec.ts`.
|
|
6
|
+
|
|
3
7
|
## 1.22.5
|
|
4
8
|
|
|
5
9
|
- **`agents events` can now filter by `--session <id>` and `--bundle <name>` — trace which agent/session triggered a secret access.** Every event already carries the provenance `sessionId`, and secrets events carry the `bundle` in their payload, but neither was queryable: you could see *that* the `share` bundle was read, not *which session* read it. `--session` (wired to the engine's existing `sessionId` filter) and `--bundle` (a new payload filter across both the operational log and the activity stream) close that gap. `agents events --module secrets --bundle share --session <id>` answers "which agent read the share bundle" — the attribution the Touch ID storm investigation needed, since the macOS biometric sheet itself emits no event. Source: `apps/cli/src/lib/event-stream.ts`, `apps/cli/src/commands/events.ts`, `apps/cli/docs/06-observability.md`.
|
package/dist/bin/agents
CHANGED
|
Binary file
|
package/dist/commands/exec.js
CHANGED
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { Option } from 'commander';
|
|
9
9
|
import chalk from 'chalk';
|
|
10
|
+
import { isTierToken } from '../lib/model-tiers.js';
|
|
10
11
|
import { RUN_AUTO_KEYWORD } from '../lib/types.js';
|
|
11
12
|
import { setHelpSections } from '../lib/help.js';
|
|
12
13
|
import { isInteractiveTerminal, isPromptCancelled, requireInteractiveSelection } from './utils.js';
|
|
@@ -2275,10 +2276,19 @@ export function registerRunCommand(program) {
|
|
|
2275
2276
|
? { ...(profileEnv ?? {}), ...(autoShareEnv ?? {}), ...secretsEnv, ...(userEnv ?? {}) }
|
|
2276
2277
|
: undefined;
|
|
2277
2278
|
const modelSource = runCmd.getOptionValueSource('model');
|
|
2278
|
-
|
|
2279
|
+
let model = options.model
|
|
2279
2280
|
?? (!fromProfile && modelSource === undefined
|
|
2280
2281
|
? (workflowModel ?? (options.fallback ? undefined : runDefaults.model))
|
|
2281
2282
|
: undefined);
|
|
2283
|
+
// Cost tiers (cheap|default|best|ultra) resolve against a harness's own model
|
|
2284
|
+
// catalog. A profile's model comes from its endpoint, not the host harness, so a
|
|
2285
|
+
// tier here would forward an incompatible host-harness model to a different API.
|
|
2286
|
+
// Discard it loudly and let the profile's configured model stand.
|
|
2287
|
+
if (fromProfile && model && isTierToken(model)) {
|
|
2288
|
+
process.stderr.write(chalk.yellow(`[agents] --model ${model}: cost tiers don't apply to profile '${rawAgent}' ` +
|
|
2289
|
+
`(its model comes from the endpoint) — ignoring the tier, using the profile's configured model\n`));
|
|
2290
|
+
model = undefined;
|
|
2291
|
+
}
|
|
2282
2292
|
const execOptions = {
|
|
2283
2293
|
agent,
|
|
2284
2294
|
version,
|
|
@@ -257,7 +257,7 @@ export function registerMonitorsCommands(program) {
|
|
|
257
257
|
# SSL cert issued → notify (poll an HTTPS endpoint every 8h)
|
|
258
258
|
agents monitors add cert-issued \\
|
|
259
259
|
--poll-http 'https://secure.ssl.com/team/.../co-ec1l5dgjofa' 8h \\
|
|
260
|
-
--match 'issued' --notify
|
|
260
|
+
--match 'issued' --notify --device zion
|
|
261
261
|
|
|
262
262
|
# Dry-run: evaluate the source once and show what it would emit (no action)
|
|
263
263
|
agents monitors test ci-red
|
package/dist/index.js
CHANGED
|
@@ -321,7 +321,8 @@ Diagnostics:
|
|
|
321
321
|
perf Latency rollups (hooks, commands, runs) from the disposable perf warehouse
|
|
322
322
|
|
|
323
323
|
Config sync:
|
|
324
|
-
pull
|
|
324
|
+
repo pull [alias] Git pull a repo (system | user | <extra>)
|
|
325
|
+
sync [agent] Re-materialize installed version homes; --local to skip fetching
|
|
325
326
|
repo init --path <dir> Scaffold your own editable repo from a template
|
|
326
327
|
repo add <path|gh:user/repo> Merge an extra repo after the system repo
|
|
327
328
|
lock [--frozen] Write/verify agents.lock (SHA-256 of resolved resources); --frozen fails on drift
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/agents-cli",
|
|
3
|
-
"version": "1.22.
|
|
3
|
+
"version": "1.22.6",
|
|
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",
|