overlord-cli 0.2606060757.0 → 0.2606060856.0

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.
@@ -2242,6 +2242,24 @@ async function protocolListExecutionRequests(args) {
2242
2242
  console.log(JSON.stringify(data, null, 2));
2243
2243
  }
2244
2244
 
2245
+ async function protocolListExecutionTargets(args) {
2246
+ const flags = parseFlags(args);
2247
+ const { platformUrl, bearerToken, localSecret, organizationId } =
2248
+ await resolveProtocolAuthForFlags(flags);
2249
+ const timeoutMs = resolveTimeout(flags);
2250
+
2251
+ const data = await apiPost(
2252
+ platformUrl,
2253
+ bearerToken,
2254
+ localSecret,
2255
+ organizationId,
2256
+ '/api/protocol/list-execution-targets',
2257
+ {},
2258
+ timeoutMs
2259
+ );
2260
+ console.log(JSON.stringify(data, null, 2));
2261
+ }
2262
+
2245
2263
  async function protocolClearExecutionRequests(args) {
2246
2264
  const flags = parseFlags(args);
2247
2265
  const { platformUrl, bearerToken, localSecret, organizationId } =
@@ -2867,6 +2885,7 @@ Subcommands:
2867
2885
  claim-execution Claim one queued execution request for this device
2868
2886
  list-organizations List organizations the authenticated user belongs to
2869
2887
  list-execution-requests List active execution requests in the runner queue
2888
+ list-execution-targets List execution targets (runner devices) the user has access to
2870
2889
  clear-execution-requests Clear active execution requests by objective or wholesale
2871
2890
  complete-execution-launch Mark a claimed execution request launched
2872
2891
  fail-execution-launch Mark a claimed execution request failed
@@ -3398,6 +3417,13 @@ list-execution-requests:
3398
3417
  --device-fingerprint <fp> Filter queue visibility to one execution target
3399
3418
  --project-id <uuid> Restrict to one project
3400
3419
 
3420
+ list-execution-targets:
3421
+ Purpose:
3422
+ List all execution targets (runner devices) accessible to the authenticated user
3423
+ in the current organization, including their label and id.
3424
+ Returns:
3425
+ JSON with { targets: [ { id, label, host, platform, transport, is_placeholder, last_seen_at } ] }
3426
+
3401
3427
  clear-execution-requests:
3402
3428
  Purpose:
3403
3429
  Clear active execution requests from the runner queue by marking them failed.
@@ -3456,6 +3482,7 @@ Examples:
3456
3482
  ovld protocol claim-execution --device-fingerprint $OVERLORD_DEVICE_FINGERPRINT
3457
3483
  ovld protocol list-organizations
3458
3484
  ovld protocol list-execution-requests --device-fingerprint $OVERLORD_DEVICE_FINGERPRINT
3485
+ ovld protocol list-execution-targets
3459
3486
  ovld protocol clear-execution-requests --objective-id <objective-uuid>
3460
3487
  ovld protocol clear-execution-requests --clear-all
3461
3488
  ovld protocol deliver --session-key <key> --ticket-id <ticket_id> --summary "Done"
@@ -3587,6 +3614,10 @@ EOF
3587
3614
  await protocolListExecutionRequests(args);
3588
3615
  return;
3589
3616
  }
3617
+ if (subcommand === 'list-execution-targets') {
3618
+ await protocolListExecutionTargets(args);
3619
+ return;
3620
+ }
3590
3621
  if (subcommand === 'clear-execution-requests') {
3591
3622
  await protocolClearExecutionRequests(args);
3592
3623
  return;
@@ -22,6 +22,7 @@ function printRunnerHelp(primaryCommand = 'ovld') {
22
22
  ${primaryCommand} runner once [options]
23
23
  ${primaryCommand} runner start [options]
24
24
  ${primaryCommand} runner status [options]
25
+ ${primaryCommand} runner targets [options]
25
26
  ${primaryCommand} runner clear <objective_id> [options]
26
27
  ${primaryCommand} runner clear-all [options]
27
28
 
@@ -147,6 +148,12 @@ function clearExecutionRequests(flags, deviceFingerprint, organizationId, option
147
148
  });
148
149
  }
149
150
 
151
+ function listExecutionTargets(deviceFingerprint) {
152
+ return protocolJson('list-execution-targets', [], {
153
+ OVERLORD_DEVICE_FINGERPRINT: deviceFingerprint
154
+ });
155
+ }
156
+
150
157
  function listOrganizationIds(deviceFingerprint) {
151
158
  const data = protocolJson('list-organizations', [], {
152
159
  OVERLORD_DEVICE_FINGERPRINT: deviceFingerprint
@@ -583,6 +590,12 @@ export async function runRunnerCommand(subcommand, args, primaryCommand = 'ovld'
583
590
  const flags = parseFlags(args);
584
591
  const deviceFingerprint = readOrCreateDeviceFingerprint(flags);
585
592
 
593
+ if (subcommand === 'targets') {
594
+ const data = listExecutionTargets(deviceFingerprint);
595
+ console.log(JSON.stringify({ ok: true, targets: data.targets ?? [] }, null, 2));
596
+ return;
597
+ }
598
+
586
599
  if (subcommand === 'status') {
587
600
  const organizationScope = createOrganizationScope(flags, deviceFingerprint);
588
601
  const data = protocolJson(
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "overlord-cli",
3
- "version": "0.2606060757.0",
3
+ "version": "0.2606060856.0",
4
4
  "description": "Overlord CLI — launch AI agents on tickets from anywhere",
5
5
  "homepage": "https://www.ovld.ai/docs/",
6
6
  "type": "module",
@@ -1090,6 +1090,16 @@ const tools = [
1090
1090
  }),
1091
1091
  subcommand: 'list-execution-requests'
1092
1092
  },
1093
+ {
1094
+ name: 'list_execution_targets',
1095
+ description: 'List execution targets (runner devices) the authenticated user has access to, including their label and id.',
1096
+ inputSchema: {
1097
+ type: 'object',
1098
+ properties: {}
1099
+ },
1100
+ toCliFlags: () => ({}),
1101
+ subcommand: 'list-execution-targets'
1102
+ },
1093
1103
  {
1094
1104
  name: 'clear_execution_requests',
1095
1105
  description: 'Clear active execution requests from the local runner queue.',