@getpaseo/cli 0.11.0-beta.2 → 0.11.0-beta.4
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.
|
@@ -11,6 +11,19 @@ export const deleteSchema = {
|
|
|
11
11
|
idField: (item) => item.agentIds.join("\n"),
|
|
12
12
|
columns: [{ header: "DELETED", field: "deletedCount" }],
|
|
13
13
|
};
|
|
14
|
+
// History includes archived agents and agents whose provider is unavailable.
|
|
15
|
+
async function fetchHistoryAgents(client) {
|
|
16
|
+
const agents = [];
|
|
17
|
+
let cursor;
|
|
18
|
+
do {
|
|
19
|
+
const payload = await client.fetchAgentHistory({
|
|
20
|
+
page: { limit: 200, ...(cursor ? { cursor } : {}) },
|
|
21
|
+
});
|
|
22
|
+
agents.push(...payload.entries.map((entry) => entry.agent));
|
|
23
|
+
cursor = payload.pageInfo.nextCursor ?? undefined;
|
|
24
|
+
} while (cursor);
|
|
25
|
+
return agents;
|
|
26
|
+
}
|
|
14
27
|
export async function runDeleteCommand(id, options, _command) {
|
|
15
28
|
if (!id && !options.all && !options.cwd) {
|
|
16
29
|
const error = {
|
|
@@ -22,20 +35,15 @@ export async function runDeleteCommand(id, options, _command) {
|
|
|
22
35
|
}
|
|
23
36
|
const client = await connectToDaemon({ target: options.daemonTarget });
|
|
24
37
|
try {
|
|
25
|
-
const fetchPayload = await client.fetchAgents({ filter: { includeArchived: true } });
|
|
26
|
-
let agents = fetchPayload.entries.map((entry) => entry.agent);
|
|
27
38
|
const deletedIds = [];
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
return false;
|
|
35
|
-
return isSameOrDescendantPath(options.cwd, a.cwd);
|
|
36
|
-
});
|
|
39
|
+
let agents;
|
|
40
|
+
if (options.all || options.cwd) {
|
|
41
|
+
agents = await fetchHistoryAgents(client);
|
|
42
|
+
if (!options.all) {
|
|
43
|
+
agents = agents.filter((a) => isSameOrDescendantPath(options.cwd, a.cwd));
|
|
44
|
+
}
|
|
37
45
|
}
|
|
38
|
-
else
|
|
46
|
+
else {
|
|
39
47
|
const fetchResult = await client.fetchAgent({ agentId: id });
|
|
40
48
|
if (!fetchResult) {
|
|
41
49
|
const error = {
|
|
@@ -59,7 +59,8 @@ export async function runRestartCommand(options, _command) {
|
|
|
59
59
|
try {
|
|
60
60
|
if (replacement.getLastServerInfoMessage()?.serverId !== serverId)
|
|
61
61
|
throw new Error("Connected peer identity changed");
|
|
62
|
-
|
|
62
|
+
// Status probes every provider, so it can take seconds on a healthy worker.
|
|
63
|
+
const status = await replacement.getDaemonStatus({ timeout: remaining() });
|
|
63
64
|
if (status.pid !== workerPid) {
|
|
64
65
|
await checkSupervisor();
|
|
65
66
|
return {
|
|
@@ -132,7 +132,7 @@ export function createPluginCommand() {
|
|
|
132
132
|
.command("install")
|
|
133
133
|
.alias("add")
|
|
134
134
|
.description("Trust and install a plugin from a directory, Git repository, or npm package")
|
|
135
|
-
.argument("<source>", "Host directory,
|
|
135
|
+
.argument("<source>", "Host directory, GitHub owner/repo, git: or npm: source, optionally followed by :plugin/path")
|
|
136
136
|
.option("--id <id>", "Runtime plugin ID (defaults to paseo-plugin.json id)")
|
|
137
137
|
.option("--ref <ref>", "Git branch, tag, or commit")
|
|
138
138
|
.option("--path <path>", "Legacy form of the :plugin/path source suffix")).action(withOutput(runPluginInstallCommand));
|
|
@@ -12,10 +12,8 @@ export interface ScheduleUpdateOptions extends ScheduleCommandOptions {
|
|
|
12
12
|
model?: string;
|
|
13
13
|
mode?: string;
|
|
14
14
|
cwd?: string;
|
|
15
|
-
maxRuns?: string;
|
|
16
|
-
|
|
17
|
-
expiresIn?: string;
|
|
18
|
-
noExpiresIn?: boolean;
|
|
15
|
+
maxRuns?: string | false;
|
|
16
|
+
expiresIn?: string | false;
|
|
19
17
|
}
|
|
20
18
|
export declare function runUpdateCommand(id: string, options: ScheduleUpdateOptions, _command: Command): Promise<ListResult<ScheduleInspectRow>>;
|
|
21
19
|
//# sourceMappingURL=update.d.ts.map
|
|
@@ -12,10 +12,10 @@ export async function runUpdateCommand(id, options, _command) {
|
|
|
12
12
|
model: options.model,
|
|
13
13
|
mode: options.mode,
|
|
14
14
|
cwd: options.cwd,
|
|
15
|
-
maxRuns: options.maxRuns,
|
|
16
|
-
expiresIn: options.expiresIn,
|
|
17
|
-
clearMaxRuns: options.
|
|
18
|
-
clearExpires: options.
|
|
15
|
+
maxRuns: options.maxRuns === false ? undefined : options.maxRuns,
|
|
16
|
+
expiresIn: options.expiresIn === false ? undefined : options.expiresIn,
|
|
17
|
+
clearMaxRuns: options.maxRuns === false,
|
|
18
|
+
clearExpires: options.expiresIn === false,
|
|
19
19
|
});
|
|
20
20
|
const { client } = await connectScheduleClient(options.daemonTarget);
|
|
21
21
|
try {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getpaseo/cli",
|
|
3
|
-
"version": "0.11.0-beta.
|
|
3
|
+
"version": "0.11.0-beta.4",
|
|
4
4
|
"description": "Paseo CLI - control your AI coding agents from the command line",
|
|
5
5
|
"bin": {
|
|
6
6
|
"paseo": "bin/paseo"
|
|
@@ -28,9 +28,9 @@
|
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
30
|
"@clack/prompts": "^1.0.0",
|
|
31
|
-
"@getpaseo/client": "0.11.0-beta.
|
|
32
|
-
"@getpaseo/protocol": "0.11.0-beta.
|
|
33
|
-
"@getpaseo/server": "0.11.0-beta.
|
|
31
|
+
"@getpaseo/client": "0.11.0-beta.4",
|
|
32
|
+
"@getpaseo/protocol": "0.11.0-beta.4",
|
|
33
|
+
"@getpaseo/server": "0.11.0-beta.4",
|
|
34
34
|
"chalk": "^5.3.0",
|
|
35
35
|
"commander": "^12.0.0",
|
|
36
36
|
"mime-types": "^2.1.35",
|