replicas-cli 0.3.187 → 0.3.188
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 -7
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -17041,7 +17041,7 @@ var init_workspace_identity = __esm({
|
|
|
17041
17041
|
});
|
|
17042
17042
|
|
|
17043
17043
|
// ../shared/src/routes/environment.ts
|
|
17044
|
-
var ENVIRONMENT_MCP_TRANSPORTS, stringMap, createEnvironmentMcpRequestSchema, updateEnvironmentMcpRequestSchema, createEnvironmentDeviceRequestSchema, updateEnvironmentDeviceRequestSchema, provisionedDeviceSchema;
|
|
17044
|
+
var ENVIRONMENT_MCP_TRANSPORTS, stringMap, createEnvironmentMcpRequestSchema, updateEnvironmentMcpRequestSchema, screenPasswordSchema, createEnvironmentDeviceRequestSchema, updateEnvironmentDeviceRequestSchema, provisionedDeviceSchema;
|
|
17045
17045
|
var init_environment = __esm({
|
|
17046
17046
|
"../shared/src/routes/environment.ts"() {
|
|
17047
17047
|
"use strict";
|
|
@@ -17059,19 +17059,24 @@ var init_environment = __esm({
|
|
|
17059
17059
|
]).describe("stdio: `{ command, args, env }`. http/sse: `{ url, headers }`.")
|
|
17060
17060
|
});
|
|
17061
17061
|
updateEnvironmentMcpRequestSchema = createEnvironmentMcpRequestSchema.partial();
|
|
17062
|
+
screenPasswordSchema = external_exports.string().min(1, "Enter the screen password").max(256).describe('Screen Sharing password, for `replicas computer screen`. On a Mac, the "VNC viewers may control screen with password" password. Never returned.');
|
|
17062
17063
|
createEnvironmentDeviceRequestSchema = external_exports.object({
|
|
17063
17064
|
name: external_exports.string().regex(/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/, "Use lowercase letters, numbers and dashes").describe("SSH alias in workspaces, e.g. `mac-mini` for `ssh mac-mini`."),
|
|
17064
17065
|
host: external_exports.string().max(253).regex(/^(?:[A-Za-z0-9](?:[A-Za-z0-9.-]*[A-Za-z0-9])?|[0-9A-Fa-f:]+)$/, "Enter a hostname or IP address").describe("Hostname or IP, such as a Tailscale MagicDNS name (`mac-mini`) or a public address."),
|
|
17065
17066
|
port: external_exports.number().int().min(1).max(65535).optional().describe("SSH port. Defaults to 22."),
|
|
17066
|
-
username: external_exports.string().regex(/^[A-Za-z0-9_][A-Za-z0-9._-]{0,63}$/, "Enter the account name on the device").describe("Account the agent signs in as.")
|
|
17067
|
+
username: external_exports.string().regex(/^[A-Za-z0-9_][A-Za-z0-9._-]{0,63}$/, "Enter the account name on the device").describe("Account the agent signs in as."),
|
|
17068
|
+
screen_password: screenPasswordSchema.optional()
|
|
17069
|
+
});
|
|
17070
|
+
updateEnvironmentDeviceRequestSchema = createEnvironmentDeviceRequestSchema.partial().extend({
|
|
17071
|
+
screen_password: external_exports.union([screenPasswordSchema, external_exports.literal("")]).optional().describe("New Screen Sharing password, or an empty string to remove it.")
|
|
17067
17072
|
});
|
|
17068
|
-
updateEnvironmentDeviceRequestSchema = createEnvironmentDeviceRequestSchema.partial();
|
|
17069
17073
|
provisionedDeviceSchema = external_exports.object({
|
|
17070
17074
|
name: external_exports.string(),
|
|
17071
17075
|
host: external_exports.string(),
|
|
17072
17076
|
port: external_exports.number(),
|
|
17073
17077
|
username: external_exports.string(),
|
|
17074
|
-
private_key: external_exports.string()
|
|
17078
|
+
private_key: external_exports.string(),
|
|
17079
|
+
screen_password: external_exports.string().optional()
|
|
17075
17080
|
});
|
|
17076
17081
|
}
|
|
17077
17082
|
});
|
|
@@ -30903,6 +30908,7 @@ var ENGINE_PORT;
|
|
|
30903
30908
|
var init_environment2 = __esm({
|
|
30904
30909
|
"../shared/src/engine/environment.ts"() {
|
|
30905
30910
|
"use strict";
|
|
30911
|
+
init_type_guards();
|
|
30906
30912
|
ENGINE_PORT = 3737;
|
|
30907
30913
|
}
|
|
30908
30914
|
});
|
|
@@ -31127,7 +31133,7 @@ var CLI_VERSION;
|
|
|
31127
31133
|
var init_cli_version = __esm({
|
|
31128
31134
|
"../shared/src/cli-version.ts"() {
|
|
31129
31135
|
"use strict";
|
|
31130
|
-
CLI_VERSION = "0.3.
|
|
31136
|
+
CLI_VERSION = "0.3.188";
|
|
31131
31137
|
}
|
|
31132
31138
|
});
|
|
31133
31139
|
|
|
@@ -35745,7 +35751,7 @@ async function envDevicesListCommand(env) {
|
|
|
35745
35751
|
}
|
|
35746
35752
|
async function envDevicesAddCommand(env, name, options) {
|
|
35747
35753
|
const id = await resolveEnvironmentId(env);
|
|
35748
|
-
const body = { name, host: options.host, username: options.user, port: options.port };
|
|
35754
|
+
const body = { name, host: options.host, username: options.user, port: options.port, screen_password: options.screenPassword };
|
|
35749
35755
|
const response = await orgAuthenticatedFetch(`/v1/environments/${id}/devices`, { method: "POST", body });
|
|
35750
35756
|
output(response, ({ environment_device }) => {
|
|
35751
35757
|
console.log(import_chalk20.default.green(`Added device ${name}. Allow its key by running this on the device as ${options.user}:`));
|
|
@@ -39149,7 +39155,7 @@ var init_src2 = __esm({
|
|
|
39149
39155
|
const port = Number(value);
|
|
39150
39156
|
if (!Number.isInteger(port)) throw new import_commander.InvalidArgumentError("must be a whole number");
|
|
39151
39157
|
return port;
|
|
39152
|
-
}).action(run(envDevicesAddCommand));
|
|
39158
|
+
}).option("--screen-password <password>", "Screen Sharing password, so the agent can see and control the screen").action(run(envDevicesAddCommand));
|
|
39153
39159
|
envDevices.command("remove <env> <name-or-id>").description("Remove a device and delete its key").action(run(envDevicesRemoveCommand));
|
|
39154
39160
|
envWarmPool = environment.command("warm-pool").description("Keep pre-warmed workspaces ready for an environment");
|
|
39155
39161
|
envWarmPool.command("enable <env>").description("Enable the warm pool").action(run(envWarmPoolCommand(true)));
|