replicas-cli 0.3.361 → 0.3.363

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.cjs +42 -30
  2. package/package.json +1 -1
package/dist/index.cjs CHANGED
@@ -24617,7 +24617,13 @@ Use this when:
24617
24617
  - The user asks you to run something "on my computer", "locally", or "on my Mac"`;
24618
24618
  REFERENCE8 = `# The user's computer
24619
24619
 
24620
- Your instructions list the computers you can reach and how: \`ssh <name>\`, \`scp\` and \`rsync\` work as usual. If none are listed, the user hasn't set any up: point them to **Local control** under Dashboard \u2192 Personal \u2192 Preferences \u2192 Experimental, with the Replicas desktop app open on that computer.
24620
+ Your instructions list the computers you can reach and how: \`ssh <name>\`, \`scp\` and \`rsync\` work as usual. The desktop app can connect a computer after your instructions were written, so list every host you can reach now:
24621
+
24622
+ \`\`\`bash
24623
+ grep '^Host' ~/.ssh/replicas-devices/*.conf
24624
+ \`\`\`
24625
+
24626
+ Hosts from a \`desktop-*.conf\` file connect through the desktop app. When one is the same computer as a device reached over the tailnet, use the desktop app host. If there are none, the user hasn't set any up: point them to **Local control** under Dashboard \u2192 Personal \u2192 Preferences \u2192 Experimental, with the Replicas desktop app open on that computer.
24621
24627
 
24622
24628
  It is a personal machine with the user's files, accounts and running apps. Change only what the task needs, keep your files in one folder, and ask before anything destructive, slow to undo, or visible on their screen (opening apps, booting a simulator window, changing settings).
24623
24629
 
@@ -24670,7 +24676,7 @@ ssh mac 'xcodebuild -version; xcrun simctl list runtimes; xcrun simctl list devi
24670
24676
 
24671
24677
  ## When it fails
24672
24678
 
24673
- - \`ssh\` closes straight away, such as "Connection closed by UNKNOWN port 65535": for a desktop app computer, the app isn't running there or local control is off. Ask the user to open the app.
24679
+ - \`ssh\` closes straight away, such as "Connection closed by UNKNOWN port 65535": through the desktop app, the app isn't running there or local control is off: ask the user to open it. Over the tailnet it can also mean this workspace hasn't joined it (\`tailscale status\`): use a desktop app host for that computer if there is one before asking the user to fix the tailnet.
24674
24680
  - "Operation not permitted" on the user's files: macOS is blocking the app. Ask the user to allow Replicas under System Settings \u2192 Privacy & Security \u2192 Full Disk Access.
24675
24681
  `;
24676
24682
  LOCAL_COMPUTER_ABILITY = {
@@ -37760,7 +37766,7 @@ var CLI_VERSION;
37760
37766
  var init_cli_version = __esm({
37761
37767
  "../shared/src/cli-version.ts"() {
37762
37768
  "use strict";
37763
- CLI_VERSION = "0.3.361";
37769
+ CLI_VERSION = "0.3.363";
37764
37770
  }
37765
37771
  });
37766
37772
 
@@ -38577,14 +38583,38 @@ var init_client_state = __esm({
38577
38583
  }
38578
38584
  });
38579
38585
 
38586
+ // ../shared/src/routes/presence.ts
38587
+ var presenceStatusSchema, presenceLocationSchema, presenceEntrySchema, updatePresenceRequestSchema;
38588
+ var init_presence = __esm({
38589
+ "../shared/src/routes/presence.ts"() {
38590
+ "use strict";
38591
+ init_zod();
38592
+ presenceStatusSchema = external_exports.enum(["online", "typing"]);
38593
+ presenceLocationSchema = external_exports.object({
38594
+ workspaceId: external_exports.string().optional()
38595
+ });
38596
+ presenceEntrySchema = external_exports.object({
38597
+ userId: external_exports.string(),
38598
+ status: presenceStatusSchema,
38599
+ location: presenceLocationSchema,
38600
+ ts: external_exports.string()
38601
+ });
38602
+ updatePresenceRequestSchema = external_exports.object({
38603
+ status: presenceStatusSchema,
38604
+ location: presenceLocationSchema.optional()
38605
+ });
38606
+ }
38607
+ });
38608
+
38580
38609
  // ../shared/src/routes/workspace-events.ts
38581
- var workspaceTurnCompletionSchema, workspaceChangedEventSchema;
38610
+ var workspaceTurnCompletionSchema, workspaceEventSchemaByType, workspaceChangedEventSchema;
38582
38611
  var init_workspace_events = __esm({
38583
38612
  "../shared/src/routes/workspace-events.ts"() {
38584
38613
  "use strict";
38585
38614
  init_zod();
38586
38615
  init_workspace_attention();
38587
38616
  init_workspaces();
38617
+ init_presence();
38588
38618
  workspaceTurnCompletionSchema = external_exports.object({
38589
38619
  workspaceName: external_exports.string(),
38590
38620
  completedAt: external_exports.string(),
@@ -38592,10 +38622,11 @@ var init_workspace_events = __esm({
38592
38622
  pullRequestFeedback: external_exports.boolean().optional(),
38593
38623
  attention: external_exports.object({ reason: external_exports.enum(CHAT_ATTENTION_REASONS), userId: external_exports.string() }).optional()
38594
38624
  });
38595
- workspaceChangedEventSchema = external_exports.discriminatedUnion("type", [
38625
+ workspaceEventSchemaByType = external_exports.discriminatedUnion("type", [
38596
38626
  external_exports.object({
38597
38627
  type: external_exports.literal("workspace.changed"),
38598
38628
  workspaceId: external_exports.string(),
38629
+ accessChangedFor: external_exports.string().optional(),
38599
38630
  workspace: external_exports.object({ status: external_exports.enum(WORKSPACE_STATUSES), last_activity_at: external_exports.string().nullable() }).optional(),
38600
38631
  name: external_exports.string().optional(),
38601
38632
  completion: workspaceTurnCompletionSchema.optional(),
@@ -38615,7 +38646,6 @@ var init_workspace_events = __esm({
38615
38646
  processing: external_exports.boolean(),
38616
38647
  ts: external_exports.string()
38617
38648
  }),
38618
- external_exports.object({ type: external_exports.literal("presence.changed"), ts: external_exports.string() }),
38619
38649
  external_exports.object({
38620
38650
  type: external_exports.literal("mobile-testing.changed"),
38621
38651
  workspaceId: external_exports.string(),
@@ -38637,7 +38667,7 @@ var init_workspace_events = __esm({
38637
38667
  subagent: external_exports.object({ id: external_exports.string(), name: external_exports.string(), prUrl: external_exports.string().nullable() }),
38638
38668
  ts: external_exports.string()
38639
38669
  }),
38640
- external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), ts: external_exports.string() }),
38670
+ external_exports.object({ type: external_exports.literal("needs-you.changed"), workspaceId: external_exports.string().nullable(), userId: external_exports.string().optional(), ts: external_exports.string() }),
38641
38671
  external_exports.object({
38642
38672
  type: external_exports.literal("workspace.shared"),
38643
38673
  workspaceId: external_exports.string(),
@@ -38647,29 +38677,11 @@ var init_workspace_events = __esm({
38647
38677
  ts: external_exports.string()
38648
38678
  })
38649
38679
  ]);
38650
- }
38651
- });
38652
-
38653
- // ../shared/src/routes/presence.ts
38654
- var presenceStatusSchema, presenceLocationSchema, presenceEntrySchema, updatePresenceRequestSchema;
38655
- var init_presence = __esm({
38656
- "../shared/src/routes/presence.ts"() {
38657
- "use strict";
38658
- init_zod();
38659
- presenceStatusSchema = external_exports.enum(["online", "typing"]);
38660
- presenceLocationSchema = external_exports.object({
38661
- workspaceId: external_exports.string().optional()
38662
- });
38663
- presenceEntrySchema = external_exports.object({
38664
- userId: external_exports.string(),
38665
- status: presenceStatusSchema,
38666
- location: presenceLocationSchema,
38667
- ts: external_exports.string()
38668
- });
38669
- updatePresenceRequestSchema = external_exports.object({
38670
- status: presenceStatusSchema,
38671
- location: presenceLocationSchema.optional()
38672
- });
38680
+ workspaceChangedEventSchema = external_exports.union([
38681
+ workspaceEventSchemaByType,
38682
+ external_exports.object({ type: external_exports.literal("presence.changed"), userId: external_exports.string(), entry: presenceEntrySchema.nullable(), ts: external_exports.string() }),
38683
+ external_exports.object({ type: external_exports.literal("presence.changed"), ts: external_exports.string() })
38684
+ ]);
38673
38685
  }
38674
38686
  });
38675
38687
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "replicas-cli",
3
- "version": "0.3.361",
3
+ "version": "0.3.363",
4
4
  "description": "CLI for managing Replicas workspaces - SSH into cloud dev environments with automatic port forwarding",
5
5
  "main": "dist/index.cjs",
6
6
  "bin": {