feat: Add --status <UUID> --output-format links-notation support#47
feat: Add --status <UUID> --output-format links-notation support#47
Conversation
Adding CLAUDE.md with task information for AI processing. This file will be removed when the task is complete. Issue: #46
Implements Issue #46 - Support for querying command execution status by UUID with configurable output formats. New features: - --status <uuid> flag to query status of a previous execution - --output-format <format> flag to specify output format - Supported formats: links-notation (default), json, text The links-notation format outputs each property as a link doublet: (uuid.property: property "value") 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
$ --status <UUID> --output-format links-notation supportFixes ESLint no-unused-vars error. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Moved status formatting logic to js/src/lib/status-formatter.js to keep cli.js under 1000 lines file size limit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This reverts commit 04e8351.
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
How about rust version? |
|
🤖 AI Work Session Started Starting automated work session at 2025-12-31T18:23:03.736Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
Implements the same status query functionality in the Rust version that was already available in the JavaScript version: - Add --status <uuid> option to query execution status - Add --output-format <format> option (links-notation, json, text) - Create status_formatter.rs module for formatting output - Add comprehensive tests for new options This brings feature parity between JS and Rust implementations for querying command execution status. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Apply cargo fmt to fix formatting issues caught by CI. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Rust Version Implementation Complete@konard I have implemented the Changes Made:
All CI checks are passing:
Usage (both JS and Rust):# Default format (links-notation)
start --status a1b2c3d4-e5f6-7890-abcd-ef1234567890
# JSON format
start --status a1b2c3d4 --output-format json
# Text format
start --status a1b2c3d4 --output-format text🤖 Generated with Claude Code |
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
|
Use links notation indented style like: For both storage and display. Make sure lino objects codec supports such a formatting option, if it does not file the issue to its repository. Also make sure we print UUID on start and end of operation. We should also automatically generate UUID as session name. And we should have --session-id option, to make sure we strictly set the UUID manually, and should use it unless it does not yet exists in our application folder like We should also have For both we should check that they are valid UUIDs. |
|
🤖 AI Work Session Started Starting automated work session at 2025-12-31T20:18:39.702Z The PR has been converted to draft mode while work is in progress. This comment marks the beginning of an AI work session. Please wait working session to finish, and provide your feedback. |
- Add --session-id and --session-name (alias) options with UUID validation
- Auto-generate UUID when session ID not provided
- Print session UUID at start and end of command execution
- Change Links Notation output to indented style format:
<uuid>
<key> "<value>"
...
- Default storage folder to ~/.start-command
- Update tests for new format
- Filed issue #48 for lino-objects-codec indented format support
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Format function parameters according to prettier rules
- Use require('crypto') for proper module import
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Reduce cli.js file size by extracting version-related functions to a new version.js module. This brings cli.js under the 1000 line limit. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
🤖 Solution Draft LogThis log file contains the complete execution trace of the AI solution draft process. 💰 Cost estimation:
Now working session is ended, feel free to review and add any feedback on the solution draft. |
Summary
This PR implements session ID tracking with UUID validation for command executions, as requested in the comments.
Features Implemented
--session-id <uuid>option: Allows specifying a custom UUID v4 for tracking command executions--session-name <uuid>alias: Alternative name for--session-id(same functionality)~/.start-commandby defaultChanges
Example Output
Status Query Output (indented Links Notation)
Test plan
🤖 Generated with Claude Code
Fixes #46