@halcyonlabs/app 0.47.0-halcyon.576 → 0.47.0-halcyon.581

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 (47) hide show
  1. package/dist/index.d.ts +30 -30
  2. package/package.json +2 -2
  3. package/server/dist/builtin-plugins/library/dist/server.js +1 -1
  4. package/server/dist/builtin-plugins/orbit/dist/app.js +5 -5
  5. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/bundle/scripts/orbit-job-supervisor +13 -93
  6. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/manifest.json +6 -6
  7. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/fixed-runner/linux-x64/orbit-deploy +0 -0
  8. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-linux/codex.sh +5 -13
  9. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-linux/proton-mail.sh +5 -0
  10. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-linux.toml +0 -8
  11. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/codex-npm.sh +2 -4
  12. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/default-linux.toml +0 -2
  13. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/server-linux.toml +0 -1
  14. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/revision +1 -1
  15. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/source.json +1 -1
  16. package/server/dist/builtin-plugins/orbit/dist/host.js +93 -180
  17. package/server/dist/builtin-plugins/orbit/dist/host.meta.json +1 -1
  18. package/server/dist/builtin-plugins/orbit/dist/server.js +490 -633
  19. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/antfly.sh +0 -98
  20. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/apps.sh +0 -43
  21. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/chrome-headless-shell.sh +0 -19
  22. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/chrome-policy.sh +0 -29
  23. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/cua-driver-agent.sh +0 -107
  24. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/cua-driver-telemetry.sh +0 -5
  25. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/cua-driver.sh +0 -29
  26. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/dev-tools.sh +0 -36
  27. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/doc-tools.sh +0 -9
  28. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/gnupg.sh +0 -6
  29. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/groups.sh +0 -9
  30. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/homebrew.sh +0 -6
  31. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/launchd-path.sh +0 -10
  32. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/library.sh +0 -42
  33. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/no-ipv6.sh +0 -6
  34. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/no-screen-saver.sh +0 -4
  35. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/node.sh +0 -5
  36. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/op.sh +0 -5
  37. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/orbit-data.sh +0 -3
  38. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/proton-bridge.sh +0 -93
  39. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/rclone.sh +0 -14
  40. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/retire-desktop.sh +0 -24
  41. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/screen-sharing.sh +0 -20
  42. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/shell-path.sh +0 -8
  43. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/skip-setup-assistant.sh +0 -12
  44. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/stay-awake.sh +0 -4
  45. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos/tailscale.sh +0 -10
  46. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/base-macos.toml +0 -113
  47. package/server/dist/builtin-plugins/orbit/dist/assets/moonlet/recipes/default.toml +0 -68
package/dist/index.d.ts CHANGED
@@ -631,8 +631,8 @@ declare const hostSchema: z$1.ZodObject<{
631
631
  }, z$1.core.$strip>>;
632
632
  }, z$1.core.$strip>;
633
633
  maxPermissionMode: z$1.ZodEnum<{
634
- auto: "auto";
635
634
  full: "full";
635
+ auto: "auto";
636
636
  "accept-edits": "accept-edits";
637
637
  }>;
638
638
  delivery: z$1.ZodOptional<z$1.ZodNullable<z$1.ZodObject<{
@@ -3011,8 +3011,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3011
3011
  }>;
3012
3012
  name: z$1.ZodString;
3013
3013
  source: z$1.ZodEnum<{
3014
- skill: "skill";
3015
3014
  command: "command";
3015
+ skill: "skill";
3016
3016
  }>;
3017
3017
  origin: z$1.ZodEnum<{
3018
3018
  user: "user";
@@ -3101,8 +3101,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3101
3101
  }>;
3102
3102
  name: z$1.ZodString;
3103
3103
  source: z$1.ZodEnum<{
3104
- skill: "skill";
3105
3104
  command: "command";
3105
+ skill: "skill";
3106
3106
  }>;
3107
3107
  origin: z$1.ZodEnum<{
3108
3108
  user: "user";
@@ -3179,8 +3179,8 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3179
3179
  }>;
3180
3180
  permissionMode: z$1.ZodEnum<{
3181
3181
  readonly: "readonly";
3182
- auto: "auto";
3183
3182
  full: "full";
3183
+ auto: "auto";
3184
3184
  "accept-edits": "accept-edits";
3185
3185
  "workspace-write": "workspace-write";
3186
3186
  }>;
@@ -3247,10 +3247,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3247
3247
  interaction: z$1.ZodUnion<readonly [z$1.ZodObject<{
3248
3248
  id: z$1.ZodString;
3249
3249
  status: z$1.ZodEnum<{
3250
- resolved: "resolved";
3251
3250
  pending: "pending";
3252
3251
  interrupted: "interrupted";
3253
3252
  resolving: "resolving";
3253
+ resolved: "resolved";
3254
3254
  }>;
3255
3255
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3256
3256
  origin: z$1.ZodObject<{
@@ -3383,10 +3383,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3383
3383
  }, z$1.core.$strip>, z$1.ZodObject<{
3384
3384
  id: z$1.ZodString;
3385
3385
  status: z$1.ZodEnum<{
3386
- resolved: "resolved";
3387
3386
  pending: "pending";
3388
3387
  interrupted: "interrupted";
3389
3388
  resolving: "resolving";
3389
+ resolved: "resolved";
3390
3390
  }>;
3391
3391
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3392
3392
  origin: z$1.ZodObject<{
@@ -3419,10 +3419,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3419
3419
  }, z$1.core.$strip>, z$1.ZodObject<{
3420
3420
  id: z$1.ZodString;
3421
3421
  status: z$1.ZodEnum<{
3422
- resolved: "resolved";
3423
3422
  pending: "pending";
3424
3423
  interrupted: "interrupted";
3425
3424
  resolving: "resolving";
3425
+ resolved: "resolved";
3426
3426
  }>;
3427
3427
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3428
3428
  origin: z$1.ZodObject<{
@@ -3470,10 +3470,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3470
3470
  }, z$1.core.$strip>, z$1.ZodObject<{
3471
3471
  id: z$1.ZodString;
3472
3472
  status: z$1.ZodEnum<{
3473
- resolved: "resolved";
3474
3473
  pending: "pending";
3475
3474
  interrupted: "interrupted";
3476
3475
  resolving: "resolving";
3476
+ resolved: "resolved";
3477
3477
  }>;
3478
3478
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3479
3479
  origin: z$1.ZodObject<{
@@ -3496,10 +3496,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3496
3496
  providerId: z$1.ZodString;
3497
3497
  providerRequestId: z$1.ZodString;
3498
3498
  status: z$1.ZodEnum<{
3499
- resolved: "resolved";
3500
3499
  pending: "pending";
3501
3500
  interrupted: "interrupted";
3502
3501
  resolving: "resolving";
3502
+ resolved: "resolved";
3503
3503
  }>;
3504
3504
  resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
3505
3505
  decision: z$1.ZodLiteral<"allow_once">;
@@ -3548,10 +3548,10 @@ declare const threadEventSchema: z$1.ZodUnion<readonly [z$1.ZodIntersection<z$1.
3548
3548
  providerId: z$1.ZodString;
3549
3549
  providerRequestId: z$1.ZodString;
3550
3550
  status: z$1.ZodEnum<{
3551
- resolved: "resolved";
3552
3551
  pending: "pending";
3553
3552
  interrupted: "interrupted";
3554
3553
  resolving: "resolving";
3554
+ resolved: "resolved";
3555
3555
  }>;
3556
3556
  resolution: z$1.ZodDefault<z$1.ZodNullable<z$1.ZodObject<{
3557
3557
  kind: z$1.ZodLiteral<"user_answer">;
@@ -3673,10 +3673,10 @@ declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodOb
3673
3673
  id: z$1.ZodString;
3674
3674
  threadId: z$1.ZodString;
3675
3675
  status: z$1.ZodEnum<{
3676
- resolved: "resolved";
3677
3676
  pending: "pending";
3678
3677
  interrupted: "interrupted";
3679
3678
  resolving: "resolving";
3679
+ resolved: "resolved";
3680
3680
  }>;
3681
3681
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3682
3682
  createdAt: z$1.ZodNumber;
@@ -3823,10 +3823,10 @@ declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodOb
3823
3823
  id: z$1.ZodString;
3824
3824
  threadId: z$1.ZodString;
3825
3825
  status: z$1.ZodEnum<{
3826
- resolved: "resolved";
3827
3826
  pending: "pending";
3828
3827
  interrupted: "interrupted";
3829
3828
  resolving: "resolving";
3829
+ resolved: "resolved";
3830
3830
  }>;
3831
3831
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3832
3832
  createdAt: z$1.ZodNumber;
@@ -3868,10 +3868,10 @@ declare const providerPendingInteractionSchema: z$1.ZodUnion<readonly [z$1.ZodOb
3868
3868
  id: z$1.ZodString;
3869
3869
  threadId: z$1.ZodString;
3870
3870
  status: z$1.ZodEnum<{
3871
- resolved: "resolved";
3872
3871
  pending: "pending";
3873
3872
  interrupted: "interrupted";
3874
3873
  resolving: "resolving";
3874
+ resolved: "resolved";
3875
3875
  }>;
3876
3876
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3877
3877
  createdAt: z$1.ZodNumber;
@@ -3902,10 +3902,10 @@ declare const pluginPendingInteractionSchema: z$1.ZodObject<{
3902
3902
  id: z$1.ZodString;
3903
3903
  threadId: z$1.ZodString;
3904
3904
  status: z$1.ZodEnum<{
3905
- resolved: "resolved";
3906
3905
  pending: "pending";
3907
3906
  interrupted: "interrupted";
3908
3907
  resolving: "resolving";
3908
+ resolved: "resolved";
3909
3909
  }>;
3910
3910
  statusReason: z$1.ZodNullable<z$1.ZodString>;
3911
3911
  createdAt: z$1.ZodNumber;
@@ -3978,8 +3978,8 @@ type ReasoningLevel = z$1.infer<typeof reasoningLevelSchema>;
3978
3978
  declare const serviceTierSchema: z$1.ZodString;
3979
3979
  type ServiceTier = z$1.infer<typeof serviceTierSchema>;
3980
3980
  declare const permissionModeSchema: z$1.ZodEnum<{
3981
- auto: "auto";
3982
3981
  full: "full";
3982
+ auto: "auto";
3983
3983
  "accept-edits": "accept-edits";
3984
3984
  }>;
3985
3985
  type PermissionMode = z$1.infer<typeof permissionModeSchema>;
@@ -4019,8 +4019,8 @@ declare const promptTextMentionSchema: z$1.ZodObject<{
4019
4019
  }>;
4020
4020
  name: z$1.ZodString;
4021
4021
  source: z$1.ZodEnum<{
4022
- skill: "skill";
4023
4022
  command: "command";
4023
+ skill: "skill";
4024
4024
  }>;
4025
4025
  origin: z$1.ZodEnum<{
4026
4026
  user: "user";
@@ -4084,8 +4084,8 @@ declare const promptInputSchema: z$1.ZodDiscriminatedUnion<[z$1.ZodObject<{
4084
4084
  }>;
4085
4085
  name: z$1.ZodString;
4086
4086
  source: z$1.ZodEnum<{
4087
- skill: "skill";
4088
4087
  command: "command";
4088
+ skill: "skill";
4089
4089
  }>;
4090
4090
  origin: z$1.ZodEnum<{
4091
4091
  user: "user";
@@ -4148,8 +4148,8 @@ declare const resolvedThreadExecutionOptionsSchema: z$1.ZodObject<{
4148
4148
  serviceTier: z$1.ZodString;
4149
4149
  reasoningLevel: z$1.ZodString;
4150
4150
  permissionMode: z$1.ZodEnum<{
4151
- auto: "auto";
4152
4151
  full: "full";
4152
+ auto: "auto";
4153
4153
  "accept-edits": "accept-edits";
4154
4154
  }>;
4155
4155
  source: z$1.ZodEnum<{
@@ -4165,8 +4165,8 @@ declare const projectExecutionDefaultsSchema: z$1.ZodObject<{
4165
4165
  serviceTier: z$1.ZodString;
4166
4166
  reasoningLevel: z$1.ZodString;
4167
4167
  permissionMode: z$1.ZodEnum<{
4168
- auto: "auto";
4169
4168
  full: "full";
4169
+ auto: "auto";
4170
4170
  "accept-edits": "accept-edits";
4171
4171
  }>;
4172
4172
  }, z$1.core.$strip>;
@@ -4206,8 +4206,8 @@ declare const providerInfoSchema: z$1.ZodObject<{
4206
4206
  supportsFork: z$1.ZodBoolean;
4207
4207
  supportsSessionRewind: z$1.ZodBoolean;
4208
4208
  permissionModes: z$1.ZodArray<z$1.ZodEnum<{
4209
- auto: "auto";
4210
4209
  full: "full";
4210
+ auto: "auto";
4211
4211
  "accept-edits": "accept-edits";
4212
4212
  }>>;
4213
4213
  modelCatalogScope: z$1.ZodEnum<{
@@ -4332,8 +4332,8 @@ declare const threadTimelinePendingTodosSchema: z$1.ZodObject<{
4332
4332
  type ThreadTimelinePendingTodos = z$1.infer<typeof threadTimelinePendingTodosSchema>;
4333
4333
 
4334
4334
  declare const threadParentNotificationsSchema: z$1.ZodEnum<{
4335
- auto: "auto";
4336
4335
  off: "off";
4336
+ auto: "auto";
4337
4337
  stuck: "stuck";
4338
4338
  }>;
4339
4339
  type ThreadParentNotifications = z$1.infer<typeof threadParentNotificationsSchema>;
@@ -4396,8 +4396,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4396
4396
  }>;
4397
4397
  name: z$1.ZodString;
4398
4398
  source: z$1.ZodEnum<{
4399
- skill: "skill";
4400
4399
  command: "command";
4400
+ skill: "skill";
4401
4401
  }>;
4402
4402
  origin: z$1.ZodEnum<{
4403
4403
  user: "user";
@@ -4447,8 +4447,8 @@ declare const threadQueuedMessageSchema: z$1.ZodObject<{
4447
4447
  model: z$1.ZodString;
4448
4448
  reasoningLevel: z$1.ZodString;
4449
4449
  permissionMode: z$1.ZodEnum<{
4450
- auto: "auto";
4451
4450
  full: "full";
4451
+ auto: "auto";
4452
4452
  "accept-edits": "accept-edits";
4453
4453
  }>;
4454
4454
  serviceTier: z$1.ZodString;
@@ -6134,8 +6134,8 @@ declare const hostDaemonCommandRegistry: {
6134
6134
  skillFilePath: z$1.ZodString;
6135
6135
  }, z$1.core.$strict>], "kind">>;
6136
6136
  instructionMode: z$1.ZodEnum<{
6137
- append: "append";
6138
6137
  replace: "replace";
6138
+ append: "append";
6139
6139
  }>;
6140
6140
  type: z$1.ZodLiteral<"thread.rewind.prepare">;
6141
6141
  leaseId: z$1.ZodString;
@@ -6283,8 +6283,8 @@ declare const hostDaemonCommandRegistry: {
6283
6283
  skillFilePath: z$1.ZodString;
6284
6284
  }, z$1.core.$strict>], "kind">>;
6285
6285
  instructionMode: z$1.ZodEnum<{
6286
- append: "append";
6287
6286
  replace: "replace";
6287
+ append: "append";
6288
6288
  }>;
6289
6289
  type: z$1.ZodLiteral<"thread.start">;
6290
6290
  requestId: z$1.ZodString;
@@ -6747,8 +6747,8 @@ declare const hostDaemonCommandRegistry: {
6747
6747
  envPassthrough: z$1.ZodArray<z$1.ZodString>;
6748
6748
  }, z$1.core.$strict>;
6749
6749
  instructionMode: z$1.ZodEnum<{
6750
- append: "append";
6751
6750
  replace: "replace";
6751
+ append: "append";
6752
6752
  }>;
6753
6753
  projectId: z$1.ZodString;
6754
6754
  providerId: z$1.ZodString;
@@ -6963,8 +6963,8 @@ declare const hostDaemonCommandRegistry: {
6963
6963
  envPassthrough: z$1.ZodArray<z$1.ZodString>;
6964
6964
  }, z$1.core.$strict>;
6965
6965
  instructionMode: z$1.ZodEnum<{
6966
- append: "append";
6967
6966
  replace: "replace";
6967
+ append: "append";
6968
6968
  }>;
6969
6969
  projectId: z$1.ZodString;
6970
6970
  providerId: z$1.ZodString;
@@ -8136,8 +8136,8 @@ declare const hostDaemonCommandRegistry: {
8136
8136
  supported: z$1.ZodLiteral<true>;
8137
8137
  health: z$1.ZodObject<{
8138
8138
  status: z$1.ZodEnum<{
8139
- unknown: "unknown";
8140
8139
  ready: "ready";
8140
+ unknown: "unknown";
8141
8141
  not_installed: "not_installed";
8142
8142
  unauthenticated: "unauthenticated";
8143
8143
  expired: "expired";
@@ -8188,9 +8188,9 @@ declare const hostDaemonCommandRegistry: {
8188
8188
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8189
8189
  installed: z$1.ZodBoolean;
8190
8190
  installSource: z$1.ZodEnum<{
8191
- external: "external";
8192
8191
  notInstalled: "notInstalled";
8193
8192
  npmGlobal: "npmGlobal";
8193
+ external: "external";
8194
8194
  }>;
8195
8195
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
8196
8196
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
@@ -8739,9 +8739,9 @@ declare const providerCliStatusResponseSchema: z$1.ZodRecord<z$1.ZodString, z$1.
8739
8739
  executablePath: z$1.ZodNullable<z$1.ZodString>;
8740
8740
  installed: z$1.ZodBoolean;
8741
8741
  installSource: z$1.ZodEnum<{
8742
- external: "external";
8743
8742
  notInstalled: "notInstalled";
8744
8743
  npmGlobal: "npmGlobal";
8744
+ external: "external";
8745
8745
  }>;
8746
8746
  currentVersion: z$1.ZodNullable<z$1.ZodString>;
8747
8747
  latestVersion: z$1.ZodNullable<z$1.ZodString>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@halcyonlabs/app",
3
- "version": "0.47.0-halcyon.576",
3
+ "version": "0.47.0-halcyon.581",
4
4
  "description": "bb app launcher for npx",
5
5
  "keywords": [
6
6
  "bb",
@@ -108,7 +108,7 @@
108
108
  "node": "^22.19.0 || ^24.0.0 || ^26.0.0"
109
109
  },
110
110
  "moonletRelease": {
111
- "summary": "Core change: Moonlet routes the owner's messages before the conversation answers, and pins each kind of thread's provider behavior (#616)"
111
+ "summary": "Machine record migration test: a second station in AWS, not a macOS one (#626)"
112
112
  },
113
113
  "license": "SEE LICENSE IN LICENSE"
114
114
  }
@@ -4,5 +4,5 @@ import { fileURLToPath as __fileURLToPath } from "node:url";
4
4
  const require = __createRequire(import.meta.url);
5
5
  var __filename = __fileURLToPath(import.meta.url);
6
6
  var __dirname = __pathDirname(__filename);
7
- var b=Object.defineProperty;var s=(i,o)=>b(i,"name",{value:o,configurable:!0});import{defineRpcContract as p}from"@get-bb/plugin-sdk";import{z as r}from"zod";var d="station",c=[{home:"/home/orbit",library:"/home/orbit/OrbitData/library",bucket:"/home/orbit/OrbitData/bucket"},{home:"/Users/orbit",library:"/Users/orbit/OrbitData/library",bucket:"/var/db/orbit/bucket"}];var y=r.object({id:r.string(),name:r.string(),status:r.string(),library:r.string().nullable(),bucket:r.string().nullable()}),g=p({"library.stations":{input:r.null(),output:r.object({stations:r.array(y)})}});async function f(i){let o=(await i.sdk.hosts.list()).filter(t=>t.machineProviderId===d);return Promise.all(o.map(async t=>{if(t.status!=="connected")return{id:t.id,name:t.name,status:t.status,library:null,bucket:null};let u=c.flatMap(n=>[n.library,n.bucket]),a=await i.sdk.hosts.pathsExist({hostId:t.id,paths:u}).catch(()=>({existence:{}})),e=c.find(n=>a.existence[n.library]);return{id:t.id,name:t.name,status:t.status,library:e?.library??null,bucket:e&&a.existence[e.bucket]?e.bucket:null}}))}s(f,"stations");function l(i){i.rpc.register(g,{"library.stations":s(async()=>({stations:await f(i)}),"library.stations")})}s(l,"setupLibrary");async function h(i){l(i)}s(h,"plugin");export{h as default};
7
+ var p=Object.defineProperty;var s=(i,o)=>p(i,"name",{value:o,configurable:!0});import{defineRpcContract as b}from"@get-bb/plugin-sdk";import{z as r}from"zod";var d="station",c=[{home:"/home/orbit",library:"/home/orbit/OrbitData/library",bucket:"/home/orbit/OrbitData/bucket"}];var y=r.object({id:r.string(),name:r.string(),status:r.string(),library:r.string().nullable(),bucket:r.string().nullable()}),g=b({"library.stations":{input:r.null(),output:r.object({stations:r.array(y)})}});async function f(i){let o=(await i.sdk.hosts.list()).filter(t=>t.machineProviderId===d);return Promise.all(o.map(async t=>{if(t.status!=="connected")return{id:t.id,name:t.name,status:t.status,library:null,bucket:null};let u=c.flatMap(e=>[e.library,e.bucket]),a=await i.sdk.hosts.pathsExist({hostId:t.id,paths:u}).catch(()=>({existence:{}})),n=c.find(e=>a.existence[e.library]);return{id:t.id,name:t.name,status:t.status,library:n?.library??null,bucket:n&&a.existence[n.bucket]?n.bucket:null}}))}s(f,"stations");function l(i){i.rpc.register(g,{"library.stations":s(async()=>({stations:await f(i)}),"library.stations")})}s(l,"setupLibrary");async function h(i){l(i)}s(h,"plugin");export{h as default};
8
8
  //# sourceMappingURL=server.js.map