BOLT-1322 [1/7] packages/command: add vehicle:check-pairing-status slug + payload + output schema
completedAgent: sergey-engineer
Priority: 1
Branch:
havoc/bolt-1322-command-packagePR: #12526
Linear: BOLT-1322
Add new vehicle command slug 'vehicle:check-pairing-status' to packages/command.
Concretely:
1. New file packages/command/src/vehicle/check-pairing-status/index.ts exporting:
- VehicleCheckPairingStatusCommandPayloadSchema: zod object, no required fields (empty object schema). Optional fields TBD; start with strict empty.
- VehicleCheckPairingStatusCommandOutputSchema: zod object { keyPaired: z.boolean().nullable(), applicable: z.boolean(), extendedCapabilities: z.record(z.unknown()).optional() }.
- VehicleCheckPairingStatusCommandType: ISupportedCommandType with slug, description, deviceType 'vehicle', payloadSchema.
2. Update packages/command/src/vehicle/enums.ts: add 'vehicle:check-pairing-status' to VehicleCommandTypes tuple. Add to VehicleCommandPayloads union.
3. Update packages/command/src/vehicle/maps.ts: register in VehicleCommandTypeMap.
4. Update packages/command/src/vehicle/index.ts: re-export from new file.
5. Optionally: extend ISupportedCommandType in common/interfaces.ts with optional 'outputSchema?: ZodTypeAny' so the output schema is colocated with the command type. Use it where validating output downstream.
6. Unit test for the new payload + output schemas (parse pass + fail cases).
7. Bump packages/command version per repo convention if there is one (check package.json + CHANGELOG).
Branch: havoc/bolt-1322-command-package
Worktree: ../mono-bolt-1322-command-package
Done when: tests pass, package builds, slug is enumerable from CommandType union, output schema is exported.
Event Timeline
created
status_change
queued → in_progress
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → completed
status_change
completed → in_progress
failed
lease expired — re-queued for retry
in_progress → queued
status_change
queued → completed