replicas-cli 0.2.327 → 0.2.328
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/dist/index.mjs +6 -7
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -9307,7 +9307,7 @@ replicas automation create "Review my MRs" \\
|
|
|
9307
9307
|
replicas automation create ... --disabled
|
|
9308
9308
|
|
|
9309
9309
|
# Workspace lifecycle
|
|
9310
|
-
replicas automation create ... --lifecycle
|
|
9310
|
+
replicas automation create ... --lifecycle archive_when_done
|
|
9311
9311
|
replicas automation create ... --lifecycle sleep_when_done
|
|
9312
9312
|
replicas automation create ... --lifecycle delete_after_inactivity --auto-stop-minutes 30
|
|
9313
9313
|
\`\`\`
|
|
@@ -9537,7 +9537,7 @@ var HOOK_EXEC_MAX_BUFFER_BYTES = 10 * 1024 * 1024;
|
|
|
9537
9537
|
var REPLICAS_CONFIG_FILENAMES = ["replicas.json", "replicas.yaml", "replicas.yml"];
|
|
9538
9538
|
|
|
9539
9539
|
// ../shared/src/cli-version.ts
|
|
9540
|
-
var CLI_VERSION = "0.2.
|
|
9540
|
+
var CLI_VERSION = "0.2.328";
|
|
9541
9541
|
|
|
9542
9542
|
// ../shared/src/engine/environment.ts
|
|
9543
9543
|
var DESKTOP_NOVNC_PORT = 6080;
|
|
@@ -9562,7 +9562,7 @@ var WORKSPACE_STATUSES = ["active", "sleeping", "archived", "preparing", "error"
|
|
|
9562
9562
|
function isWorkspaceSuspendedStatus(status) {
|
|
9563
9563
|
return status === "sleeping" || status === "archived";
|
|
9564
9564
|
}
|
|
9565
|
-
var VALID_LIFECYCLE_POLICIES = ["default", "
|
|
9565
|
+
var VALID_LIFECYCLE_POLICIES = ["default", "archive_when_done", "sleep_when_done", "delete_after_inactivity"];
|
|
9566
9566
|
function workspaceConfigWithCapabilities(config2, capabilities = {}) {
|
|
9567
9567
|
const mergedCapabilities = {
|
|
9568
9568
|
...config2?.capabilities,
|
|
@@ -13658,8 +13658,7 @@ function printAutomation(automation2) {
|
|
|
13658
13658
|
console.log(chalk18.gray(` Next Run: ${formatDate2(automation2.cron_next_fire_at)}`));
|
|
13659
13659
|
}
|
|
13660
13660
|
if (automation2.workspace_lifecycle_policy && automation2.workspace_lifecycle_policy !== "default") {
|
|
13661
|
-
|
|
13662
|
-
console.log(chalk18.gray(` Lifecycle: ${lifecycle}`));
|
|
13661
|
+
console.log(chalk18.gray(` Lifecycle: ${automation2.workspace_lifecycle_policy}`));
|
|
13663
13662
|
}
|
|
13664
13663
|
if (automation2.agent_provider || automation2.model || automation2.thinking_level) {
|
|
13665
13664
|
console.log(chalk18.gray(` Agent: ${formatAgentSummary(automation2)}`));
|
|
@@ -19404,7 +19403,7 @@ automation.command("get <id>").description("Get automation details by ID").actio
|
|
|
19404
19403
|
process.exit(1);
|
|
19405
19404
|
}
|
|
19406
19405
|
});
|
|
19407
|
-
automation.command("create [name]").description("Create a new automation").option("-p, --prompt <prompt>", "Prompt for the automation").option("-e, --environment <environment>", "Environment name or ID").option("--trigger-cron <schedule>", 'Cron schedule expression (e.g. "0 9 * * 1-5")').option("--trigger-cron-timezone <timezone>", "Timezone for cron trigger (default: UTC)").option("--trigger-github <event>", 'GitHub event (e.g. "pull_request.opened")').option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-gitlab <event>", 'GitLab event (e.g. "merge_request.opened")').option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--lifecycle <policy>", "Workspace lifecycle:
|
|
19406
|
+
automation.command("create [name]").description("Create a new automation").option("-p, --prompt <prompt>", "Prompt for the automation").option("-e, --environment <environment>", "Environment name or ID").option("--trigger-cron <schedule>", 'Cron schedule expression (e.g. "0 9 * * 1-5")').option("--trigger-cron-timezone <timezone>", "Timezone for cron trigger (default: UTC)").option("--trigger-github <event>", 'GitHub event (e.g. "pull_request.opened")').option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-gitlab <event>", 'GitLab event (e.g. "merge_request.opened")').option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--lifecycle <policy>", "Workspace lifecycle: archive_when_done, sleep_when_done, delete_after_inactivity, default").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default or delete_after_inactivity)").option("--pr-followups", "Allow follow-up actions on matching PRs").option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor, relay (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, max (or "none" to clear)').option("--plan-mode", "Run automation messages in plan mode").option("--goal-mode", "Set automation messages as Codex goals").option("--fast-mode", "Run automation messages in fast mode").option("--personal", "Create a personal automation owned by the authenticated user").option("--disabled", "Create in disabled state").action(async (name, options) => {
|
|
19408
19407
|
try {
|
|
19409
19408
|
await automationCreateCommand(name, {
|
|
19410
19409
|
...options,
|
|
@@ -19419,7 +19418,7 @@ automation.command("create [name]").description("Create a new automation").optio
|
|
|
19419
19418
|
process.exit(1);
|
|
19420
19419
|
}
|
|
19421
19420
|
});
|
|
19422
|
-
automation.command("edit <id>").description("Edit an existing automation").option("-n, --name <name>", "New name").option("-p, --prompt <prompt>", "New prompt").option("-e, --enabled <enabled>", "Enable or disable (true/false)").option("--trigger-cron <schedule>", "Set cron schedule (replaces existing triggers)").option("--trigger-cron-timezone <timezone>", "Timezone for cron trigger").option("--trigger-github <event>", "Set GitHub event (replaces existing triggers)").option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-gitlab <event>", "Set GitLab event (replaces existing triggers)").option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--environment <environment>", "Environment name or ID").option("--lifecycle <policy>", "Workspace lifecycle:
|
|
19421
|
+
automation.command("edit <id>").description("Edit an existing automation").option("-n, --name <name>", "New name").option("-p, --prompt <prompt>", "New prompt").option("-e, --enabled <enabled>", "Enable or disable (true/false)").option("--trigger-cron <schedule>", "Set cron schedule (replaces existing triggers)").option("--trigger-cron-timezone <timezone>", "Timezone for cron trigger").option("--trigger-github <event>", "Set GitHub event (replaces existing triggers)").option("--trigger-github-repos <repos>", "Comma-separated repo names to filter GitHub trigger").option("--trigger-gitlab <event>", "Set GitLab event (replaces existing triggers)").option("--trigger-gitlab-repos <repos>", "Comma-separated repo names to filter GitLab trigger").option("--environment <environment>", "Environment name or ID").option("--lifecycle <policy>", "Workspace lifecycle: archive_when_done, sleep_when_done, delete_after_inactivity, default").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default or delete_after_inactivity)").option("--pr-followups <enabled>", "Allow follow-up actions on matching PRs (true/false)", parseBooleanOption).option("--agent-provider <provider>", 'Coding agent to use: claude, codex, cursor, relay (or "none" to inherit org default)').option("--model <model>", 'Model identifier (must be valid for --agent-provider; pass "none" to clear)').option("--thinking-level <level>", 'Thinking/reasoning level: low, medium, high, max (or "none" to clear)').option("--plan-mode <enabled>", "Run automation messages in plan mode (true/false)", parseBooleanOption).option("--goal-mode <enabled>", "Set automation messages as Codex goals (true/false)", parseBooleanOption).option("--fast-mode <enabled>", "Run automation messages in fast mode (true/false)", parseBooleanOption).action(async (id, options) => {
|
|
19423
19422
|
try {
|
|
19424
19423
|
await automationEditCommand(id, options);
|
|
19425
19424
|
} catch (error) {
|