Skip to content

Conversation

@Gaubee
Copy link
Contributor

@Gaubee Gaubee commented Jan 9, 2026

Changes

1. Fix bioforest transaction timestamp (1970 issue)

BioForest chain transaction times were displaying as 1970 because timestamps are relative to the genesis block's beginEpochTime, not absolute Unix timestamps.

Solution:

  • Add getBeginEpochTime() method to fetch and cache epoch time from SDK
  • Add toAbsoluteTimestamp() helper for timestamp conversion
  • Fix getTransaction() and getTransactionHistory() to use absolute timestamps
Before: timestamp = tx.timestamp * 1000  → 1970-01-01
After:  timestamp = tx.timestamp * 1000 + beginEpochTime → correct date

2. Add label management to agent-flow

Fixes the issue where pnpm agent task start --type service failed due to missing area/core label.

New features:

  • --list-labels - List all available labels grouped by prefix
  • --create-labels - Auto-create missing labels when starting a task
  • Labels are loaded from GitHub at module startup via top-level await
# List all available labels
pnpm agent task start --list-labels

# Auto-create missing labels
pnpm agent task start --type service --title 'Feature' --create-labels

Testing

  • TypeScript type check passed
  • No new lint errors introduced
  • Label listing works correctly

BioForest chain timestamps are relative to the genesis block's
beginEpochTime, not absolute Unix timestamps. This fix adds the
epoch time offset to correctly display transaction times.

Before: timestamps showed 1970 (only relative seconds * 1000)
After: timestamps show correct dates (relative seconds * 1000 + epochTime)

Changes:
- Add getBeginEpochTime() to fetch and cache epoch time from SDK
- Add toAbsoluteTimestamp() helper for timestamp conversion
- Fix getTransaction() to use absolute timestamps
- Fix getTransactionHistory() to use absolute timestamps
@Gaubee Gaubee added the type/service Service / logic work label Jan 9, 2026
- Add top-level await to load labels from GitHub at startup
- Add getLabels() to list all available labels with colors
- Add createLabel() and ensureLabels() for label management
- Add --create-labels flag to auto-create missing labels
- Add --list-labels flag to display available labels grouped by prefix
- Update createIssue/createPr to validate labels before creation

Usage:
  pnpm agent task start --list-labels
  pnpm agent task start --type service --title 'Feature' --create-labels
@Gaubee Gaubee changed the title fix(bioforest): add beginEpochTime to transaction timestamps fix(bioforest): transaction timestamp & agent-flow label management Jan 9, 2026
Gaubee added 3 commits January 9, 2026 14:32
Add [skip ci] to initial commit message to avoid triggering CI runners
for draft PRs. CI will run normally when task submit is called.
- Document workflow stages (start → develop → submit)
- Explain CI skip behavior for draft PRs
- Document label management features
- Add color inference rules for new labels
Rename the MCP tool from 'workflow' to 'use' for cleaner API:
- workflow___workflow -> workflow___use
- Update examples in dynamic description
@Gaubee
Copy link
Contributor Author

Gaubee commented Jan 10, 2026

Bioforest fixes (beginEpochTime) already merged via other PRs. Agent-flow changes have too many conflicts and need separate attention.

@Gaubee Gaubee closed this Jan 10, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type/service Service / logic work

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants