replicas-cli 0.2.399 → 0.2.401

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.
Files changed (2) hide show
  1. package/dist/index.mjs +25 -5
  2. package/package.json +1 -1
package/dist/index.mjs CHANGED
@@ -24394,7 +24394,7 @@ function formatTurnElapsed(ms) {
24394
24394
  }
24395
24395
 
24396
24396
  // ../shared/src/cli-version.ts
24397
- var CLI_VERSION = "0.2.399";
24397
+ var CLI_VERSION = "0.2.401";
24398
24398
 
24399
24399
  // ../shared/src/version.ts
24400
24400
  function compareVersions(v1, v2) {
@@ -24528,9 +24528,27 @@ var workspaceChangedEventSchema = external_exports.discriminatedUnion("type", [
24528
24528
  workspaceId: external_exports.string(),
24529
24529
  chatId: external_exports.string(),
24530
24530
  ts: external_exports.string()
24531
- })
24531
+ }),
24532
+ external_exports.object({ type: external_exports.literal("presence.changed"), ts: external_exports.string() })
24532
24533
  ]);
24533
24534
 
24535
+ // ../shared/src/routes/presence.ts
24536
+ var presenceStatusSchema = external_exports.enum(["online", "typing"]);
24537
+ var presenceLocationSchema = external_exports.object({
24538
+ environmentId: external_exports.string().optional(),
24539
+ workspaceId: external_exports.string().optional()
24540
+ });
24541
+ var presenceEntrySchema = external_exports.object({
24542
+ userId: external_exports.string(),
24543
+ status: presenceStatusSchema,
24544
+ location: presenceLocationSchema,
24545
+ ts: external_exports.string()
24546
+ });
24547
+ var updatePresenceRequestSchema = external_exports.object({
24548
+ status: presenceStatusSchema,
24549
+ location: presenceLocationSchema.optional()
24550
+ });
24551
+
24534
24552
  // ../shared/src/audit-log.ts
24535
24553
  var AUDIT_LOG_ACTION = {
24536
24554
  CREATE: "create",
@@ -37373,7 +37391,9 @@ if (isAgentMode()) {
37373
37391
  cmds.length = 0;
37374
37392
  cmds.push(...kept);
37375
37393
  }
37376
- var versionCheckPromise = checkForUpdates(CLI_VERSION);
37377
- program.parse();
37378
- versionCheckPromise.catch(() => {
37394
+ async function main() {
37395
+ await checkForUpdates(CLI_VERSION);
37396
+ program.parse();
37397
+ }
37398
+ main().catch(() => {
37379
37399
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.2.399",
3
+ "version": "0.2.401",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.mjs",
6
6
  "bin": {