replicas-cli 0.2.674 → 0.2.675
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.cjs +14 -3
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -27280,7 +27280,7 @@ var headlessFilesystemAgentResultSchema = external_exports.object({
|
|
|
27280
27280
|
});
|
|
27281
27281
|
|
|
27282
27282
|
// ../shared/src/cli-version.ts
|
|
27283
|
-
var CLI_VERSION = "0.2.
|
|
27283
|
+
var CLI_VERSION = "0.2.675";
|
|
27284
27284
|
|
|
27285
27285
|
// ../shared/src/version.ts
|
|
27286
27286
|
function compareVersions(v1, v2) {
|
|
@@ -30467,6 +30467,16 @@ async function automationCreateCommand(name, options) {
|
|
|
30467
30467
|
console.log(import_chalk18.default.red("--trigger-gitlab-exclude-users requires --trigger-gitlab"));
|
|
30468
30468
|
process.exit(1);
|
|
30469
30469
|
}
|
|
30470
|
+
const hasConfirmation = options.confirmationChannel || options.confirmationThread || options.confirmationMessageTs || options.confirmationUser;
|
|
30471
|
+
const mothershipConfirmation = options.confirmationChannel && options.confirmationThread && options.confirmationMessageTs && options.confirmationUser ? {
|
|
30472
|
+
channel_id: options.confirmationChannel,
|
|
30473
|
+
thread_ts: options.confirmationThread,
|
|
30474
|
+
message_ts: options.confirmationMessageTs,
|
|
30475
|
+
user_id: options.confirmationUser
|
|
30476
|
+
} : void 0;
|
|
30477
|
+
if (hasConfirmation && !mothershipConfirmation) {
|
|
30478
|
+
throw new Error("Every --confirmation-* option is required when creating an automation from Mothership.");
|
|
30479
|
+
}
|
|
30470
30480
|
const agentSelection = applyAgentSelection(
|
|
30471
30481
|
{
|
|
30472
30482
|
agent_provider: parseAgentProviderOption(options.agentProvider),
|
|
@@ -30597,7 +30607,8 @@ async function automationCreateCommand(name, options) {
|
|
|
30597
30607
|
...options.planMode ? { plan_mode: true } : {},
|
|
30598
30608
|
...options.goalMode ? { goal_mode: true } : {},
|
|
30599
30609
|
...options.fastMode ? { fast_mode: true } : {},
|
|
30600
|
-
...agentSelection
|
|
30610
|
+
...agentSelection,
|
|
30611
|
+
...mothershipConfirmation ? { mothership_confirmation: mothershipConfirmation } : {}
|
|
30601
30612
|
};
|
|
30602
30613
|
console.log(import_chalk18.default.gray("\nCreating automation..."));
|
|
30603
30614
|
const response = await orgAuthenticatedFetch("/v1/automations", {
|
|
@@ -32397,7 +32408,7 @@ automation.command("get <id>").description("Get automation details by ID").actio
|
|
|
32397
32408
|
process.exit(1);
|
|
32398
32409
|
}
|
|
32399
32410
|
});
|
|
32400
|
-
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-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").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("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (requires a PR opened/updated trigger)").option("--lifecycle <policy>", "Workspace lifecycle: archive_when_done, sleep_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").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, xhigh, 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) => {
|
|
32411
|
+
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-github-exclude-users <users>", "Comma-separated GitHub usernames to exclude from triggering (pass empty string to clear the list)").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("--trigger-gitlab-exclude-users <users>", "Comma-separated GitLab usernames to exclude from triggering (pass empty string to clear the list)").option("--github-checks <names>", "Comma-separated GitHub check names to create on matching PRs (requires a PR opened/updated trigger)").option("--lifecycle <policy>", "Workspace lifecycle: archive_when_done, sleep_when_done, default").option("--sleep-when-done", "Sleep automation workspaces as soon as the agent finishes").option("--auto-stop-minutes <minutes>", "Inactivity timeout in minutes (3-1440, requires --lifecycle default)").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, xhigh, 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("--confirmation-channel <id>", "Slack channel containing the Mothership confirmation").option("--confirmation-thread <ts>", "Slack thread containing the Mothership confirmation").option("--confirmation-message-ts <ts>", "Slack timestamp of the Mothership confirmation").option("--confirmation-user <id>", "Slack id of the confirming user").option("--disabled", "Create in disabled state").action(async (name, options) => {
|
|
32401
32412
|
try {
|
|
32402
32413
|
await automationCreateCommand(name, {
|
|
32403
32414
|
...options,
|