@phnx-labs/agents-cli 1.20.90 → 1.20.91
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 +121 -0
- package/dist/bin/agents +0 -0
- package/dist/commands/feed.js +77 -4
- package/dist/commands/hooks.js +22 -6
- package/dist/commands/perf.d.ts +14 -0
- package/dist/commands/perf.js +221 -0
- package/dist/commands/routines.js +30 -24
- package/dist/commands/secrets.d.ts +43 -4
- package/dist/commands/secrets.js +217 -32
- package/dist/commands/send.d.ts +5 -1
- package/dist/commands/send.js +1 -1
- package/dist/commands/sessions-picker.js +70 -1
- package/dist/index.js +18 -3
- package/dist/lib/activity.d.ts +11 -1
- package/dist/lib/activity.js +1 -0
- package/dist/lib/catchup.d.ts +105 -0
- package/dist/lib/catchup.js +160 -0
- package/dist/lib/channels/providers/desktop.d.ts +49 -0
- package/dist/lib/channels/providers/desktop.js +132 -0
- package/dist/lib/channels/providers/index.js +2 -0
- package/dist/lib/daemon.js +74 -13
- package/dist/lib/events.d.ts +12 -0
- package/dist/lib/events.js +122 -9
- package/dist/lib/exec.js +10 -0
- package/dist/lib/feed-broadcast.d.ts +47 -0
- package/dist/lib/feed-broadcast.js +65 -1
- package/dist/lib/feed-post.d.ts +10 -0
- package/dist/lib/feed-post.js +1 -1
- package/dist/lib/feed.d.ts +47 -1
- package/dist/lib/feed.js +38 -0
- package/dist/lib/hooks/cache.d.ts +2 -0
- package/dist/lib/hooks/cache.js +24 -4
- package/dist/lib/menubar/MenubarHelper.app/Contents/MacOS/MenubarHelper +0 -0
- package/dist/lib/overdue.d.ts +14 -0
- package/dist/lib/overdue.js +37 -1
- package/dist/lib/perf/db.d.ts +25 -0
- package/dist/lib/perf/db.js +290 -0
- package/dist/lib/perf/spool.d.ts +18 -0
- package/dist/lib/perf/spool.js +79 -0
- package/dist/lib/perf/types.d.ts +45 -0
- package/dist/lib/perf/types.js +2 -0
- package/dist/lib/routines-project.js +6 -0
- package/dist/lib/routines.d.ts +30 -1
- package/dist/lib/routines.js +11 -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/dist/lib/secrets/list-filter.d.ts +94 -0
- package/dist/lib/secrets/list-filter.js +245 -0
- package/dist/lib/session/digest.d.ts +7 -0
- package/dist/lib/session/digest.js +29 -1
- package/dist/lib/session/discover.d.ts +1 -2
- package/dist/lib/session/discover.js +7 -24
- package/dist/lib/session/highlights.d.ts +82 -0
- package/dist/lib/session/highlights.js +251 -0
- package/dist/lib/session/parse.js +23 -1
- package/dist/lib/session/relative-time.d.ts +14 -0
- package/dist/lib/session/relative-time.js +36 -0
- package/dist/lib/session/render.d.ts +7 -0
- package/dist/lib/session/render.js +87 -17
- package/dist/lib/session/types.d.ts +4 -1
- package/dist/lib/startup/command-registry.d.ts +1 -0
- package/dist/lib/startup/command-registry.js +2 -0
- package/dist/lib/state.d.ts +9 -0
- package/dist/lib/state.js +11 -0
- package/package.json +3 -1
|
@@ -48,6 +48,7 @@ export const loadDrive = async () => (await import('../../commands/drive.js')).r
|
|
|
48
48
|
export const loadFactory = async () => (await import('../../commands/factory.js')).registerFactoryCommands;
|
|
49
49
|
export const loadUsage = async () => (await import('../../commands/usage.js')).registerUsageCommand;
|
|
50
50
|
export const loadCost = async () => (await import('../../commands/cost.js')).registerCostCommand;
|
|
51
|
+
export const loadPerf = async () => (await import('../../commands/perf.js')).registerPerfCommand;
|
|
51
52
|
export const loadOutput = async () => (await import('../../commands/output.js')).registerOutputCommand;
|
|
52
53
|
export const loadBudget = async () => (await import('../../commands/budget.js')).registerBudgetCommand;
|
|
53
54
|
export const loadAlias = async () => (await import('../../commands/alias.js')).registerAliasCommand;
|
|
@@ -162,6 +163,7 @@ export const COMMAND_LOADERS = {
|
|
|
162
163
|
factory: [loadFactory],
|
|
163
164
|
usage: [loadUsage],
|
|
164
165
|
cost: [loadCost],
|
|
166
|
+
perf: [loadPerf],
|
|
165
167
|
output: [loadOutput],
|
|
166
168
|
budget: [loadBudget],
|
|
167
169
|
alias: [loadAlias],
|
package/dist/lib/state.d.ts
CHANGED
|
@@ -208,6 +208,15 @@ export declare function getCloudDir(): string;
|
|
|
208
208
|
export declare function getTerminalsDir(): string;
|
|
209
209
|
/** Path to runtime logs (~/.agents/.cache/logs/). */
|
|
210
210
|
export declare function getLogsDir(): string;
|
|
211
|
+
/**
|
|
212
|
+
* Path to disposable performance samples (~/.agents/.cache/perf/).
|
|
213
|
+
* Holds `perf.db` + a hook-shim spool. Loss is acceptable — wipe freely.
|
|
214
|
+
*/
|
|
215
|
+
export declare function getPerfDir(): string;
|
|
216
|
+
/** Path to the perf SQLite warehouse (~/.agents/.cache/perf/perf.db). */
|
|
217
|
+
export declare function getPerfDbPath(): string;
|
|
218
|
+
/** Path to the hook-shim NDJSON spool drained into perf.db on open. */
|
|
219
|
+
export declare function getPerfSpoolPath(): string;
|
|
211
220
|
/** Path to per-process runtime state (~/.agents/.cache/state/). */
|
|
212
221
|
export declare function getRuntimeStateDir(): string;
|
|
213
222
|
/** Path to companion-extension scratch (~/.agents/.cache/companion/). */
|
package/dist/lib/state.js
CHANGED
|
@@ -116,6 +116,8 @@ const CLOUD_DIR = path.join(CACHE_DIR, 'cloud');
|
|
|
116
116
|
const DRIVE_DIR = path.join(CACHE_DIR, 'drive');
|
|
117
117
|
const TERMINALS_DIR = path.join(CACHE_DIR, 'terminals');
|
|
118
118
|
const LOGS_DIR = path.join(CACHE_DIR, 'logs');
|
|
119
|
+
/** Disposable performance samples (~/.agents/.cache/perf/) — safe to wipe. */
|
|
120
|
+
const PERF_DIR = path.join(CACHE_DIR, 'perf');
|
|
119
121
|
const RUNTIME_STATE_DIR = path.join(CACHE_DIR, 'state');
|
|
120
122
|
const COMPANION_CACHE_DIR = path.join(CACHE_DIR, 'companion');
|
|
121
123
|
const BROWSER_RUNTIME_DIR = path.join(CACHE_DIR, 'browser');
|
|
@@ -436,6 +438,15 @@ export function getCloudDir() { return CLOUD_DIR; }
|
|
|
436
438
|
export function getTerminalsDir() { return TERMINALS_DIR; }
|
|
437
439
|
/** Path to runtime logs (~/.agents/.cache/logs/). */
|
|
438
440
|
export function getLogsDir() { return LOGS_DIR; }
|
|
441
|
+
/**
|
|
442
|
+
* Path to disposable performance samples (~/.agents/.cache/perf/).
|
|
443
|
+
* Holds `perf.db` + a hook-shim spool. Loss is acceptable — wipe freely.
|
|
444
|
+
*/
|
|
445
|
+
export function getPerfDir() { return PERF_DIR; }
|
|
446
|
+
/** Path to the perf SQLite warehouse (~/.agents/.cache/perf/perf.db). */
|
|
447
|
+
export function getPerfDbPath() { return path.join(PERF_DIR, 'perf.db'); }
|
|
448
|
+
/** Path to the hook-shim NDJSON spool drained into perf.db on open. */
|
|
449
|
+
export function getPerfSpoolPath() { return path.join(PERF_DIR, 'spool.jsonl'); }
|
|
439
450
|
/** Path to per-process runtime state (~/.agents/.cache/state/). */
|
|
440
451
|
export function getRuntimeStateDir() { return RUNTIME_STATE_DIR; }
|
|
441
452
|
/** Path to companion-extension scratch (~/.agents/.cache/companion/). */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@phnx-labs/agents-cli",
|
|
3
|
-
"version": "1.20.
|
|
3
|
+
"version": "1.20.91",
|
|
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",
|
|
@@ -108,7 +108,9 @@
|
|
|
108
108
|
"@types/diff": "8.0.0",
|
|
109
109
|
"@types/marked-terminal": "6.1.1",
|
|
110
110
|
"@types/node": "26.1.0",
|
|
111
|
+
"@types/ssh2": "1.15.5",
|
|
111
112
|
"@types/ws": "^8.18.1",
|
|
113
|
+
"ssh2": "1.17.0",
|
|
112
114
|
"tsx": "4.23.0",
|
|
113
115
|
"typescript": "6.0.3",
|
|
114
116
|
"vitest": "4.1.9"
|