replicas-cli 0.3.406 → 0.3.408
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 +13 -17
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -23309,7 +23309,7 @@ var init_workspace_attention = __esm({
|
|
|
23309
23309
|
});
|
|
23310
23310
|
|
|
23311
23311
|
// ../shared/src/routes/push.ts
|
|
23312
|
-
var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, PUSH_OPTION_LABEL_MAX, PUSH_OPTIONS_MAX, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, setLiveActivityStartTokenRequestSchema;
|
|
23312
|
+
var registerPushDeviceRequestSchema, PUSH_HOLD_MINUTES, chatRefSchema, recordPushActivityRequestSchema, PUSH_NOTIFICATION_KINDS, PUSH_OPTION_LABEL_MAX, PUSH_OPTIONS_MAX, pushQuestionSchema, pushNotificationDataSchema, workspaceSharedPushDataSchema, registerLiveActivityRequestSchema, syncLiveActivitiesRequestSchema, setLiveActivityStartTokenRequestSchema;
|
|
23313
23313
|
var init_push = __esm({
|
|
23314
23314
|
"../shared/src/routes/push.ts"() {
|
|
23315
23315
|
"use strict";
|
|
@@ -23329,12 +23329,13 @@ var init_push = __esm({
|
|
|
23329
23329
|
})
|
|
23330
23330
|
]);
|
|
23331
23331
|
PUSH_HOLD_MINUTES = 5;
|
|
23332
|
+
chatRefSchema = external_exports.object({ workspaceId: external_exports.string().uuid(), chatId: external_exports.string().min(1).max(100) });
|
|
23332
23333
|
recordPushActivityRequestSchema = external_exports.object({
|
|
23333
23334
|
organizationId: external_exports.string().uuid(),
|
|
23334
23335
|
/** Seconds since the last keyboard or mouse input on this computer. A phone leaves it out: it only reports what it has open. */
|
|
23335
23336
|
idleSeconds: external_exports.number().min(0).optional(),
|
|
23336
23337
|
seenWorkspaceIds: external_exports.array(external_exports.string().uuid()).max(20),
|
|
23337
|
-
seenChats: external_exports.array(
|
|
23338
|
+
seenChats: external_exports.array(chatRefSchema).max(20).optional()
|
|
23338
23339
|
});
|
|
23339
23340
|
PUSH_NOTIFICATION_KINDS = [...WORKSPACE_ATTENTION_REASONS, "finished"];
|
|
23340
23341
|
PUSH_OPTION_LABEL_MAX = 60;
|
|
@@ -23350,15 +23351,16 @@ var init_push = __esm({
|
|
|
23350
23351
|
question: pushQuestionSchema.optional()
|
|
23351
23352
|
});
|
|
23352
23353
|
workspaceSharedPushDataSchema = pushNotificationDataSchema.pick({ organizationId: true, workspaceId: true, chatId: true, completedAt: true }).extend({ kind: external_exports.literal("shared") });
|
|
23353
|
-
registerLiveActivityRequestSchema =
|
|
23354
|
+
registerLiveActivityRequestSchema = chatRefSchema.extend({
|
|
23354
23355
|
deviceId: external_exports.string().uuid(),
|
|
23355
|
-
workspaceId: external_exports.string().uuid(),
|
|
23356
|
-
chatId: external_exports.string().min(1).max(100),
|
|
23357
23356
|
/** The iOS activity's push token. Android leaves it out and gets FCM data messages on the device token. */
|
|
23358
23357
|
pushToken: external_exports.string().regex(/^[0-9a-f]{64,400}$/i).optional(),
|
|
23359
23358
|
/** iOS only: when the card's turn started, in seconds. Cards keep their order by it. */
|
|
23360
23359
|
startedAt: external_exports.number().positive().optional()
|
|
23361
23360
|
});
|
|
23361
|
+
syncLiveActivitiesRequestSchema = external_exports.object({
|
|
23362
|
+
activities: external_exports.array(chatRefSchema).max(100)
|
|
23363
|
+
});
|
|
23362
23364
|
setLiveActivityStartTokenRequestSchema = external_exports.object({ token: external_exports.string().regex(/^[0-9a-f]{64,400}$/i) });
|
|
23363
23365
|
}
|
|
23364
23366
|
});
|
|
@@ -37937,7 +37939,7 @@ var CLI_VERSION;
|
|
|
37937
37939
|
var init_cli_version = __esm({
|
|
37938
37940
|
"../shared/src/cli-version.ts"() {
|
|
37939
37941
|
"use strict";
|
|
37940
|
-
CLI_VERSION = "0.3.
|
|
37942
|
+
CLI_VERSION = "0.3.408";
|
|
37941
37943
|
}
|
|
37942
37944
|
});
|
|
37943
37945
|
|
|
@@ -38798,6 +38800,7 @@ var init_workspace_events = __esm({
|
|
|
38798
38800
|
type: external_exports.literal("workspace.changed"),
|
|
38799
38801
|
workspaceId: external_exports.string(),
|
|
38800
38802
|
accessChangedFor: external_exports.string().optional(),
|
|
38803
|
+
accessChangedForOrg: external_exports.literal(true).optional(),
|
|
38801
38804
|
workspace: external_exports.object({ status: external_exports.enum(WORKSPACE_STATUSES), last_activity_at: external_exports.string().nullable() }).optional(),
|
|
38802
38805
|
name: external_exports.string().optional(),
|
|
38803
38806
|
completion: workspaceTurnCompletionSchema.optional(),
|
|
@@ -52583,19 +52586,12 @@ async function replicaCreateCommand(name, options) {
|
|
|
52583
52586
|
const environmentInput = options.environment?.trim();
|
|
52584
52587
|
let selectedEnvironmentId = environmentInput === "global" ? (await orgAuthenticatedFetch("/v1/environments/global")).environment.id : environmentInput && await resolveEnvironmentId(environmentInput);
|
|
52585
52588
|
let codingAgent = parseReplicaAgent(options.agent);
|
|
52586
|
-
if (replicaName && /\s/.test(replicaName)) {
|
|
52587
|
-
throw new Error("Replica name cannot contain spaces.");
|
|
52588
|
-
}
|
|
52589
52589
|
if (!replicaName) {
|
|
52590
52590
|
const response2 = await ask({
|
|
52591
52591
|
type: "text",
|
|
52592
52592
|
name: "name",
|
|
52593
|
-
message: "Enter replica name
|
|
52594
|
-
validate: (value) =>
|
|
52595
|
-
if (!value.trim()) return "Name is required";
|
|
52596
|
-
if (/\s/.test(value)) return "Name cannot contain spaces";
|
|
52597
|
-
return true;
|
|
52598
|
-
}
|
|
52593
|
+
message: "Enter replica name:",
|
|
52594
|
+
validate: (value) => value.trim() ? true : "Name is required"
|
|
52599
52595
|
});
|
|
52600
52596
|
const answer = response2.name;
|
|
52601
52597
|
if (!answer) {
|
|
@@ -55852,11 +55848,11 @@ var init_src2 = __esm({
|
|
|
55852
55848
|
config2.command("list").description("List all configuration values").action(run(configListCommand));
|
|
55853
55849
|
program.command("list").description("List all replicas").option("-p, --page <page>", "Page number").option("-l, --limit <limit>", "Number of items per page").action(run(replicaListCommand));
|
|
55854
55850
|
program.command("get <id>").description("Get replica details by ID").action(run(replicaGetCommand));
|
|
55855
|
-
program.command("create [name]").description("Create a new replica").option("-m, --message <message>", "Initial message for the replica").option("-e, --environment <environment>", "Environment ID").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").action(run(replicaCreateCommand));
|
|
55851
|
+
program.command("create [name]").description("Create a new replica (quote names with spaces)").option("-m, --message <message>", "Initial message for the replica").option("-e, --environment <environment>", "Environment ID").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").action(run(replicaCreateCommand));
|
|
55856
55852
|
program.command("send <id>").description("Send a message to a replica").option("-m, --message <message>", "Message to send").option("-a, --agent <agent>", "Coding agent (claude, codex, cursor)").option("-c, --chat <chatId>", "Chat to send to (defaults to the main chat)").option("--model <model>", "Model to use for this message").addOption(new import_commander.Option("--thinking-level <level>", "Thinking/reasoning level").choices(VALID_THINKING_LEVELS)).option("--plan", "Run the message in plan mode").option("--goal", "Set the message as the chat goal").option("--fast", "Run the message in fast mode").action(run(replicaSendCommand));
|
|
55857
55853
|
program.command("delete <id>").description("Delete a replica").option("-f, --force", "Skip confirmation prompt").action(run(replicaDeleteCommand));
|
|
55858
55854
|
program.command("read <id>").description("Read conversation history of a replica").option("-l, --limit <limit>", "Maximum number of events to return, from the end").option("--before <cursor>", "Read the page before this cursor (see Has More output)").option("-b, --before-event <index>", "Read the page before this event index (older engines)").option("-c, --chat <chatId>", "Chat to read (defaults to the main chat)").action(run(replicaReadCommand));
|
|
55859
|
-
program.command("rename <id> <name>").description("Rename a replica").action(run(workspaceRenameCommand));
|
|
55855
|
+
program.command("rename <id> <name>").description("Rename a replica (quote names with spaces)").action(run(workspaceRenameCommand));
|
|
55860
55856
|
program.command("wake <id>").description("Wake a sleeping or archived replica").option("-r, --restore", "Restore an archived replica").action(run(workspaceWakeCommand));
|
|
55861
55857
|
program.command("sleep <id>").description("Put a replica to sleep").action(run(workspaceLifecycleCommand("sleep")));
|
|
55862
55858
|
program.command("archive <id>").description("Archive a replica").action(run(workspaceLifecycleCommand("archive")));
|