@getmateo/cli 0.19.10 → 0.19.11

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,7 @@ export interface ScheduleCreateOptions extends ScheduleCommandOptions {
11
11
  mode?: string;
12
12
  thinking?: string;
13
13
  cwd?: string;
14
+ archiveOnFinish?: boolean;
14
15
  maxRuns?: string;
15
16
  expiresIn?: string;
16
17
  runNow?: boolean;
@@ -14,6 +14,7 @@ export async function runCreateCommand(prompt, options, command) {
14
14
  mode: options.mode,
15
15
  thinking: options.thinking,
16
16
  cwd: options.cwd,
17
+ archiveOnFinish: options.archiveOnFinish,
17
18
  daemonTarget: options.daemonTarget,
18
19
  maxRuns: options.maxRuns,
19
20
  expiresIn: options.expiresIn,
@@ -26,6 +26,8 @@ export function createScheduleCommand() {
26
26
  .option("--thinking <id>", "Thinking option ID for new-agent runs")
27
27
  .option("--cwd <path>", "Working directory (default: current; required with --host)")
28
28
  .option("--run-now", "Fire one immediate run on creation")
29
+ .option("--archive-on-finish", "Archive each run's workspace when the run ends (default)")
30
+ .option("--no-archive-on-finish", "Keep each run's workspace and agent active")
29
31
  .option("--max-runs <n>", "Maximum number of runs")
30
32
  .option("--expires-in <duration>", "Time to live for the schedule")).action(withOutput(runCreateCommand));
31
33
  addJsonAndDaemonHostOptions(schedule.command("ls").description("List schedules")).action(withOutput(runLsCommand));
@@ -57,6 +59,8 @@ export function createScheduleCommand() {
57
59
  .option("--model <model>", "New agent model (only for new-agent target)")
58
60
  .option("--mode <mode>", "New agent provider mode (only for new-agent target)")
59
61
  .option("--cwd <path>", "New working directory (only for new-agent target)")
62
+ .option("--archive-on-finish", "Archive later runs' workspaces when each run ends")
63
+ .option("--no-archive-on-finish", "Keep later runs' workspaces and agents active")
60
64
  .option("--max-runs <n>", "Set or change maximum number of runs")
61
65
  .option("--no-max-runs", "Clear the max-runs limit")
62
66
  .option("--expires-in <duration>", "Set or change time to live for the schedule")
@@ -53,6 +53,14 @@ export function createScheduleInspectRows(schedule) {
53
53
  : `every:${schedule.cadence.everyMs}ms`,
54
54
  },
55
55
  { key: "Target", value: formatTarget(schedule.target) },
56
+ ...(schedule.target.type === "new-agent"
57
+ ? [
58
+ {
59
+ key: "ArchiveOnFinish",
60
+ value: `${schedule.target.config.archiveOnFinish ?? true}`,
61
+ },
62
+ ]
63
+ : []),
56
64
  { key: "Status", value: schedule.status },
57
65
  { key: "CreatedAt", value: schedule.createdAt },
58
66
  { key: "UpdatedAt", value: schedule.updatedAt },
@@ -24,6 +24,7 @@ export declare function parseScheduleCreateInput(options: {
24
24
  mode?: string;
25
25
  thinking?: string;
26
26
  cwd?: string;
27
+ archiveOnFinish?: boolean;
27
28
  host?: string;
28
29
  daemonTarget: import("../../utils/daemon-target.js").DaemonTarget;
29
30
  maxRuns?: string;
@@ -41,6 +42,7 @@ export interface ScheduleUpdateOptionsInput {
41
42
  model?: string;
42
43
  mode?: string;
43
44
  cwd?: string;
45
+ archiveOnFinish?: boolean;
44
46
  maxRuns?: string;
45
47
  expiresIn?: string;
46
48
  clearMaxRuns?: boolean;
@@ -84,7 +84,7 @@ function resolveScheduleTarget(args) {
84
84
  if (hasExplicitNewAgentOption) {
85
85
  throw {
86
86
  code: "INVALID_TARGET",
87
- message: "--provider/--mode/--thinking can only be used with a new-agent target",
87
+ message: "--provider/--mode/--thinking/--archive-on-finish can only be used with a new-agent target",
88
88
  details: "Use --target new-agent or omit --target to create a new agent schedule",
89
89
  };
90
90
  }
@@ -134,7 +134,10 @@ export function parseScheduleCreateInput(options) {
134
134
  message: "--thinking cannot be empty",
135
135
  };
136
136
  }
137
- const hasExplicitNewAgentOption = options.provider !== undefined || options.mode !== undefined || options.thinking !== undefined;
137
+ const hasExplicitNewAgentOption = options.provider !== undefined ||
138
+ options.mode !== undefined ||
139
+ options.thinking !== undefined ||
140
+ options.archiveOnFinish !== undefined;
138
141
  const createNewAgentTarget = () => {
139
142
  const resolvedProviderModel = resolveProviderAndModel({
140
143
  provider: options.provider,
@@ -147,6 +150,9 @@ export function parseScheduleCreateInput(options) {
147
150
  ...(resolvedProviderModel.model ? { model: resolvedProviderModel.model } : {}),
148
151
  ...(modeId ? { modeId } : {}),
149
152
  ...(thinkingOptionId ? { thinkingOptionId } : {}),
153
+ ...(options.archiveOnFinish !== undefined
154
+ ? { archiveOnFinish: options.archiveOnFinish }
155
+ : {}),
150
156
  },
151
157
  };
152
158
  };
@@ -334,6 +340,9 @@ function buildNewAgentConfigPatch(options) {
334
340
  }
335
341
  patch.cwd = trimmed;
336
342
  }
343
+ if (options.archiveOnFinish !== undefined) {
344
+ patch.archiveOnFinish = options.archiveOnFinish;
345
+ }
337
346
  return Object.keys(patch).length > 0 ? patch : undefined;
338
347
  }
339
348
  function parsePositiveInt(value, flag) {
@@ -21,6 +21,7 @@ export type ScheduleTarget = {
21
21
  modeId?: string;
22
22
  model?: string;
23
23
  thinkingOptionId?: string;
24
+ archiveOnFinish?: boolean;
24
25
  title?: string | null;
25
26
  providerOptions?: Record<string, unknown>;
26
27
  };
@@ -123,6 +124,7 @@ export interface UpdateScheduleNewAgentConfig {
123
124
  model?: string | null;
124
125
  modeId?: string | null;
125
126
  cwd?: string;
127
+ archiveOnFinish?: boolean;
126
128
  }
127
129
  export interface UpdateScheduleInput {
128
130
  id: string;
@@ -12,6 +12,7 @@ export interface ScheduleUpdateOptions extends ScheduleCommandOptions {
12
12
  model?: string;
13
13
  mode?: string;
14
14
  cwd?: string;
15
+ archiveOnFinish?: boolean;
15
16
  maxRuns?: string | false;
16
17
  expiresIn?: string | false;
17
18
  }
@@ -12,6 +12,7 @@ export async function runUpdateCommand(id, options, _command) {
12
12
  model: options.model,
13
13
  mode: options.mode,
14
14
  cwd: options.cwd,
15
+ archiveOnFinish: options.archiveOnFinish,
15
16
  maxRuns: options.maxRuns === false ? undefined : options.maxRuns,
16
17
  expiresIn: options.expiresIn === false ? undefined : options.expiresIn,
17
18
  clearMaxRuns: options.maxRuns === false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@getmateo/cli",
3
- "version": "0.19.10",
3
+ "version": "0.19.11",
4
4
  "description": "Mateo CLI - control your AI coding agents from the command line",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -34,9 +34,9 @@
34
34
  },
35
35
  "dependencies": {
36
36
  "@clack/prompts": "^1.9.0",
37
- "@getmateo/client": "0.19.10",
38
- "@getmateo/protocol": "0.19.10",
39
- "@getmateo/server": "0.19.10",
37
+ "@getmateo/client": "0.19.11",
38
+ "@getmateo/protocol": "0.19.11",
39
+ "@getmateo/server": "0.19.11",
40
40
  "chalk": "^5.3.0",
41
41
  "commander": "^12.0.0",
42
42
  "mime-types": "^2.1.35",
@@ -54,12 +54,12 @@
54
54
  "zx": "^8.8.5"
55
55
  },
56
56
  "mateoBuild": {
57
- "releaseVersion": "0.19.10",
58
- "buildNumber": "19010001",
57
+ "releaseVersion": "0.19.11",
58
+ "buildNumber": "19011001",
59
59
  "upstreamVersion": "0.17.4",
60
- "builtAt": "2026-11-26T05:10:59Z",
61
- "updateVersion": "2026.1126.18659",
62
- "sourceCommit": "520463c21a21896c9aec29d323d16323caece81c",
60
+ "builtAt": "2026-11-26T07:53:05Z",
61
+ "updateVersion": "2026.1126.28385",
62
+ "sourceCommit": "343e20a8d350b917b81dbf79198342021bbcfd8a",
63
63
  "upstreamCommit": "2b3559b107243306986176b80beb0e779f9fe53e"
64
64
  }
65
65
  }