Skip to content
Open
Changes from 1 commit
Commits
Show all changes
2127 commits
Select commit Hold shift + click to select a range
671174d
doc: changelog
Jul 18, 2025
486aa34
fix: bug in agent schema
Jul 21, 2025
f7cfcaf
fix: agent data types
Jul 21, 2025
0fc3d86
Merge pull request #711 from crestalnetwork/hyacinthus
Jul 21, 2025
052151f
docs: update changelog for v0.6.5-dev4
Jul 21, 2025
a03e550
doc: change log
Jul 21, 2025
8b236a5
feat: add sanitize_privacy method to ChatMessage model
Jul 22, 2025
9d3dcde
Merge pull request #712 from crestalnetwork/hyacinthus
Jul 22, 2025
77ef04d
chore: improve agent api doc
Jul 22, 2025
2b1607a
improve: prevent twitter reply skill from replying to own tweets
Jul 22, 2025
82cc4fd
fix: typo
Jul 22, 2025
8e903d6
doc: better agent api doc
Jul 22, 2025
fd773cd
Merge pull request #713 from crestalnetwork/hyacinthus
Jul 22, 2025
a6a7bf1
doc: changelog
Jul 22, 2025
f664585
feat: exclude replies from twitter timeline by default
Jul 23, 2025
ea8b815
Merge pull request #714 from crestalnetwork/hyacinthus
Jul 23, 2025
c455d7e
chore: remove unused file
Jul 23, 2025
7e4dca4
feat: add configurable free_quota and refill_amount to payment settings
Jul 23, 2025
aeb7734
refactor: move quota reset functions to AgentQuota class as static me…
Jul 23, 2025
5a96aa8
refactor: move update_agent_action_cost function to agent module
Jul 23, 2025
7cd9541
Merge pull request #715 from crestalnetwork/hyacinthus
Jul 23, 2025
cf2a74e
fix: format
Jul 24, 2025
f2800eb
feat: add autonomous task management system skills
Jul 25, 2025
0a10ade
Merge pull request #717 from crestalnetwork/hyacinthus
Jul 25, 2025
9aea7ce
fix: autonomous skill bug
Jul 25, 2025
8bece49
feat: add autonomous task info in entrypoint rules system prompt
Jul 25, 2025
918645d
Merge pull request #718 from crestalnetwork/feat/autonomous-task-impr…
Jul 25, 2025
33bd2f5
doc: changelog
Jul 25, 2025
f72f410
fix: ensure proper serialization of autonomous tasks in agent operations
Jul 25, 2025
41aa316
Merge pull request #719 from crestalnetwork/hyacinthus
Jul 25, 2025
c34a57e
doc: changelog
Jul 25, 2025
016e165
improve: remove enabled parameter from add_autonomous_task skill, alw…
Jul 25, 2025
5688e64
Merge pull request #720 from crestalnetwork/hyacinthus
Jul 25, 2025
6bd3d68
doc: changelog
Jul 25, 2025
b9f51bd
feat: add endpoint to retrieve current agent information
Jul 28, 2025
d153021
feat: add evm and solana wallet address fields to AgentResponse model
Jul 28, 2025
8c35c2f
chore: format code in agent model response data update
Jul 28, 2025
85f808f
Merge pull request #721 from crestalnetwork/hyacinthus
Jul 28, 2025
e4c3b84
feat: add update functionality for autonomous tasks in agent management
Jul 28, 2025
dfd8735
feat: enhance autonomous task management capabilities
Jul 28, 2025
1e0b2c5
Merge pull request #722 from crestalnetwork/hyacinthus
Jul 28, 2025
153371c
doc: change log
Jul 28, 2025
ce40599
chore: elfa v2 migration
bluntbrain Jul 29, 2025
533f938
Merge pull request #725 from bluntbrain/chore/elfa-v2-migration
Jul 30, 2025
e9ececa
Merge remote-tracking branch 'origin/main' into hyacinthus
Jul 30, 2025
9b69fc6
fix: change twitter ratelimit
Jul 30, 2025
ad1fb18
Merge pull request #726 from crestalnetwork/hyacinthus
Jul 30, 2025
f0c5e0a
improve: database connection pooling configuration with new parameters
Jul 30, 2025
49e6f94
Merge pull request #727 from crestalnetwork/hyacinthus
Jul 30, 2025
ef34a95
docs: update changelog and llm guide
Jul 30, 2025
5599f05
docs: update llm integration guide
Jul 30, 2025
3ee20ce
chore: convert .cursorrules to symlink to LLM.md
Jul 30, 2025
850ca93
chore: update fastapi and dependencies
Jul 30, 2025
da653a6
Merge pull request #728 from crestalnetwork/hyacinthus
Jul 30, 2025
bc3cd3c
doc: changelog
Jul 30, 2025
582edda
chore: update dependencies langgraph-sdk and langmem versions
Jul 30, 2025
d3ef69c
Merge pull request #729 from crestalnetwork/hyacinthus
Jul 30, 2025
f1e188a
doc: changelog
Jul 31, 2025
2f39466
Merge main
Jul 31, 2025
54289af
Merge pull request #730 from crestalnetwork/hyacinthus
Jul 31, 2025
bea2854
doc: changelog
Jul 31, 2025
4f0bcfc
chore: change sentry config
Aug 1, 2025
6d31af0
docs: update api documentation urls to use localhost for development
Aug 1, 2025
d8b7865
Merge pull request #731 from crestalnetwork/hyacinthus
Aug 1, 2025
97536b5
doc: changelog
Aug 1, 2025
c0b3e59
doc: changelog
Aug 1, 2025
fc98289
feat: upgrade langgraph 6.0
Aug 2, 2025
6a1dca0
refactor: skill context
Aug 3, 2025
54210dd
refactor: standardize API key retrieval across skills
Aug 3, 2025
e625c50
feat: add xmtp message transfer skill and attachment type
Aug 4, 2025
9b6912c
Merge pull request #734 from crestalnetwork/hyacinthus
Aug 4, 2025
88828c9
feat: enhance xmtp integration and engine functionality
Aug 7, 2025
0d0264c
Merge pull request #735 from crestalnetwork/hyacinthus
Aug 7, 2025
42bd328
feat: update agent and llm models with validation improvements
Aug 8, 2025
1ab42ca
Merge pull request #736 from crestalnetwork/hyacinthus
Aug 8, 2025
a21fc51
doc: change log
Aug 8, 2025
d60cdb5
chore: fix ci
Aug 8, 2025
c5908e1
fix: gpt5 features.
Aug 8, 2025
fd80bb5
Merge pull request #737 from crestalnetwork/hyacinthus
Aug 8, 2025
cbe95ec
feat: add jsonref dependency and update build workflow
Aug 9, 2025
04d14b5
Merge pull request #738 from crestalnetwork/hyacinthus
Aug 9, 2025
cfb416a
feat: update xmtp skill image format and schema
Aug 9, 2025
583b686
Merge pull request #739 from crestalnetwork/hyacinthus
Aug 9, 2025
a5c2723
doc: changelog
Aug 9, 2025
2d74179
fix: align XMTP skill state typing and schema enum/titles for public/…
Aug 9, 2025
105ef3f
Merge pull request #740 from crestalnetwork/hyacinthus
Aug 9, 2025
3d6e64b
doc: changelog
Aug 9, 2025
2648e31
doc: changelog
Aug 9, 2025
ea9aff3
fix: update github workflow build configuration
Aug 9, 2025
143ef4e
Merge pull request #741 from crestalnetwork/hyacinthus
Aug 9, 2025
ada8b6c
doc: changelog
Aug 11, 2025
505e80a
chore: uv sync
Aug 11, 2025
14ceef2
fix: better config number type
Aug 12, 2025
363fa7c
fix: better load int config
Aug 12, 2025
8406f6f
fix: update fee_agent_account assignment in expense_summarize function
Aug 12, 2025
8c68183
Potential fix for code scanning alert no. 31: Clear-text logging of s…
Aug 12, 2025
c5d0dba
Potential fix for code scanning alert no. 32: Clear-text logging of s…
Aug 12, 2025
aae62dc
chore: format
Aug 12, 2025
b4668f3
Merge pull request #743 from crestalnetwork/hyacinthus
Aug 12, 2025
f69d8f2
doc: changelog
Aug 13, 2025
370cfdd
refactor: prompt system
Aug 13, 2025
2508c6f
feat: add user wallet info and update deepseek integration
Aug 13, 2025
a19c0f1
fix: format
Aug 13, 2025
d44ac52
fix: tmp disable search in gpt 5
Aug 13, 2025
0a6170f
Merge pull request #744 from crestalnetwork/hyacinthus
Aug 13, 2025
204db9f
doc: changelog
Aug 13, 2025
588257a
fix: deepseek bug
Aug 13, 2025
d252f68
feat: add xmtp swap and price skills
Aug 13, 2025
6f616fc
Merge pull request #745 from crestalnetwork/hyacinthus
Aug 13, 2025
123d5e3
doc: changelog
Aug 13, 2025
19e6cc0
fix: add missing xmtp schema
Aug 13, 2025
7439cbd
Merge pull request #746 from crestalnetwork/hyacinthus
Aug 13, 2025
1dcdb9d
fix: temp disable search for gpt-5
Aug 13, 2025
91c36a1
Merge pull request #747 from crestalnetwork/hyacinthus
Aug 13, 2025
70fa84e
doc: changelog
Aug 13, 2025
5b086ec
feat: support new xmtp features
Aug 13, 2025
cd54f49
Merge pull request #748 from crestalnetwork/hyacinthus
Aug 13, 2025
eed571a
doc: changelog
Aug 14, 2025
b3883e8
doc: changelog
Aug 14, 2025
3f19585
Merge branch 'main' into hyacinthus
Aug 14, 2025
eb1246e
doc: changelog
Aug 14, 2025
98aed18
refactor: consolidate artifact attachments into skill messages
Aug 14, 2025
a408efd
Merge pull request #749 from crestalnetwork/hyacinthus
Aug 14, 2025
7d7c39e
doc: change log
Aug 14, 2025
48f22d7
doc: changelog
Aug 14, 2025
7bb40f3
chore: llm doc update
Aug 14, 2025
81f3e58
doc: update changelog
Aug 15, 2025
a5ff610
Merge pull request #750 from crestalnetwork/hyacinthus
Aug 15, 2025
d310c7a
fix: error message
Aug 15, 2025
67d4777
feat: add entrypoint system prompt
Aug 15, 2025
e15b8c6
feat: xmtp entrypoint prompt
Aug 15, 2025
8493583
Merge pull request #751 from crestalnetwork/hyacinthus
Aug 15, 2025
50b378b
feat: internal stream client
Aug 15, 2025
a5c288b
feat: agent api, chat stream mode use SSE
Aug 16, 2025
94927f7
feat: add readonly wallet provider and delete twitter entrypoint
Aug 17, 2025
138c1cd
feat: readonly wallet
Aug 17, 2025
56ff103
feat: update agent model configuration
Aug 18, 2025
9c0face
Merge pull request #752 from crestalnetwork/hyacinthus
Aug 18, 2025
61c5478
feat: readonly wallet address
Aug 18, 2025
04113b6
Merge pull request #753 from crestalnetwork/hyacinthus
Aug 18, 2025
baa6fb3
fix: agent context type
Aug 18, 2025
ab5630f
Merge pull request #754 from crestalnetwork/hyacinthus
Aug 18, 2025
d670a9a
fix: readonly_wallet_address issue
Aug 19, 2025
b9af171
Merge pull request #755 from crestalnetwork/hyacinthus
Aug 19, 2025
d2b3ee5
fix: add more log in generator
Aug 19, 2025
3e3ce27
Merge pull request #756 from crestalnetwork/hyacinthus
Aug 19, 2025
688fc44
fix: generator bugs
Aug 19, 2025
ac28c0e
Merge pull request #757 from crestalnetwork/hyacinthus
Aug 19, 2025
bacbe37
doc: changelog
Aug 19, 2025
fbec700
doc: changelog
Aug 20, 2025
f42fde4
refactor: errors
Aug 20, 2025
3be62aa
fix: wallet provider json
Aug 20, 2025
44afad2
refactor: system messages
Aug 20, 2025
ebb6ff7
improve: refactor core engine and update models
Aug 20, 2025
a37c893
fix: lint
Aug 20, 2025
88e80d5
Merge pull request #758 from crestalnetwork/hyacinthus
Aug 20, 2025
e6cf056
feat: add error_type field to chat message model
Aug 21, 2025
68707c0
Merge pull request #759 from crestalnetwork/hyacinthus
Aug 21, 2025
616e146
doc: changelog
Aug 21, 2025
ec3a735
feat: casino skill for card games and dice games
bluntbrain Aug 21, 2025
ea9cc76
feat: fixing lint issues
bluntbrain Aug 21, 2025
db40cd4
Merge pull request #760 from bluntbrain/feat/deck-of-cards
Aug 21, 2025
ae37781
Merge remote-tracking branch 'origin/main' into hyacinthus
Aug 21, 2025
7579e69
chore: add some assistant rules
Aug 21, 2025
df09e11
feat: update twitter skills with improved error handling and document…
Aug 22, 2025
2d25f00
Merge pull request #761 from crestalnetwork/hyacinthus
Aug 22, 2025
3021b0d
feat: fee detail in event and tx
Aug 22, 2025
1f753a5
Merge pull request #762 from crestalnetwork/hyacinthus
Aug 22, 2025
74af1af
feat: firecrawl replace skill
bluntbrain Aug 25, 2025
69740ae
feat: event check
Aug 26, 2025
33168ff
feat(credit-events): enhance consistency checker and add fixer script
Aug 26, 2025
e33cd43
feat(credit): add base credit type amount fields and migration script
Aug 26, 2025
c067dfe
fix: better onchain options desc
Aug 26, 2025
8147e67
fix: always hide skill details
Aug 26, 2025
f4e45b6
fix: add network id mapping hack for cdp mainnet networks
Aug 26, 2025
1390c4b
Merge pull request #764 from crestalnetwork/hyacinthus
Aug 26, 2025
70523ef
feat: firecrawl replace skill docs update
bluntbrain Aug 26, 2025
2ab66ab
feat: minor improvements
bluntbrain Aug 26, 2025
0016591
feat: minor improvements
bluntbrain Aug 26, 2025
3f06372
Merge branch 'main' into feat/firecrawl-replace-skill
bluntbrain Aug 26, 2025
59d6f13
doc: changelog
Aug 27, 2025
417609a
feat: remove firecrawl_replace_scrape and keep logic in firecrawl_scrape
bluntbrain Aug 27, 2025
c60cb15
feat: fixing lint issue
bluntbrain Aug 27, 2025
90fa92b
Merge pull request #763 from bluntbrain/feat/firecrawl-replace-skill
Aug 27, 2025
803b48b
Merge remote-tracking branch 'origin/main' into hyacinthus
Aug 27, 2025
18a3743
fix: supabase bugs
Aug 27, 2025
bc1e907
fix: remove skill context
Aug 27, 2025
74c87ab
feat: add web3 client to skill
Aug 27, 2025
2f6a0c8
fix: better xmtp transfer check
Aug 27, 2025
d3fbb2b
Merge pull request #765 from crestalnetwork/hyacinthus
Aug 27, 2025
70a8cfc
doc: changelog
Aug 28, 2025
162f799
feat: clean thread memory
Aug 28, 2025
928fd9b
feat: add web3 client and update skill base class
Aug 28, 2025
67bc74e
Merge pull request #766 from crestalnetwork/hyacinthus
Aug 28, 2025
d1ea594
fix: typo in intentkit package info
Aug 28, 2025
c03c72d
chore: upgrade
Aug 28, 2025
375412a
feat: agent onchain fields
Aug 28, 2025
c98edbe
Merge pull request #767 from crestalnetwork/hyacinthus
Aug 28, 2025
0beaf22
doc: changelog
Aug 28, 2025
b99aaec
feat: dexscreener new skills
bluntbrain Aug 29, 2025
df96fd8
Merge pull request #768 from bluntbrain/feat/dexscreener
Aug 29, 2025
e7f99c2
Merge remote-tracking branch 'origin/main' into hyacinthus
Aug 29, 2025
206ad5e
feat: expand xmtp skills to support multiple networks
Aug 29, 2025
6ccb784
Merge pull request #769 from crestalnetwork/hyacinthus
Aug 29, 2025
a834ac8
doc: changelog
Aug 29, 2025
750ccfc
feat: add reasoning_effort parameter for gpt-5 models
Sep 1, 2025
3fe1575
Merge pull request #770 from crestalnetwork/hyacinthus
Sep 1, 2025
648c8b4
docs: update changelog for v0.6.23 release
Sep 1, 2025
b349319
refactor(twitter): remove await from sync get_system_config calls
Sep 1, 2025
bc1b101
build: update project name and add workspace configuration
Sep 1, 2025
b1bb4c3
Merge pull request #771 from crestalnetwork/hyacinthus
Sep 1, 2025
082334f
refactor(Dockerfile): simplify dependency installation process
Sep 1, 2025
d5a910c
Merge pull request #772 from crestalnetwork/hyacinthus
Sep 1, 2025
b237a31
docs: update changelog for v0.6.25 release
Sep 1, 2025
9195e4b
refactor: move asyncio import to top of file in account_checking.py
Sep 2, 2025
3c44da7
Merge pull request #773 from crestalnetwork/hyacinthus
Sep 2, 2025
e202ec0
fix: update pypi publish workflow and changelog for v0.6.26
Sep 2, 2025
ff131e3
Merge pull request #774 from crestalnetwork/hyacinthus
Sep 2, 2025
61f4c43
refactor(credit_event): remove redundant log and add batch stats trac…
Sep 3, 2025
6d3898b
feat: add optimized credit event consistency fix script
Sep 3, 2025
563a560
refactor(credit_event): improve readability of credit type distributi…
Sep 3, 2025
933e254
Merge pull request #775 from crestalnetwork/hyacinthus
Sep 3, 2025
06e2a29
fix: update credit event consistency check script
Sep 3, 2025
f3f0fb7
Merge pull request #776 from crestalnetwork/hyacinthus
Sep 3, 2025
c0bb243
feat: optimize credit event consistency checking scripts
Sep 3, 2025
7ada594
Merge pull request #777 from crestalnetwork/hyacinthus
Sep 3, 2025
fbe6f98
fix: mig scripts
Sep 4, 2025
8c00ce3
feat: add credit event consistency checker with base validation
Sep 4, 2025
2bed575
fix: llm rules
Sep 4, 2025
2fe3678
feat: add scripts to check and migrate inconsistent credit transactions
Sep 4, 2025
5705a9f
Merge pull request #778 from crestalnetwork/hyacinthus
Sep 4, 2025
71d1a74
feat: add script to migrate credit accounts from transactions
Sep 4, 2025
bf68b3b
Merge remote-tracking branch 'origin/main' into hyacinthus
Sep 4, 2025
57aa739
feat(config): add intentkit_prompt to config and prompt system
Sep 4, 2025
1bce69c
Merge pull request #779 from crestalnetwork/hyacinthus
Sep 4, 2025
18a832b
chore: llm rules
Sep 4, 2025
ae1f3a3
fix: change default model to gpt-5-mini
Sep 4, 2025
12438c1
Merge pull request #780 from crestalnetwork/hyacinthus
Sep 4, 2025
7797b26
doc: changelog
Sep 4, 2025
1e9ba09
fix: add missing amount fields to CreditTransactionTable instantiatio…
Sep 7, 2025
fda9d8e
Merge pull request #781 from crestalnetwork/hyacinthus
Sep 7, 2025
93fdc13
feat(account_checking): enhance balance consistency check with detail…
Sep 8, 2025
4178b26
fix: ensure decimal precision with quantize in credit calculations
Sep 8, 2025
0eb61c5
feat(credit): add transaction statistics tracking to credit accounts
Sep 8, 2025
a96d39c
fix: use direct permanent_profit field from database in agent statistics
Sep 8, 2025
327939c
feat(db): add connection health check and max lifetime to pool
Sep 8, 2025
d7f376c
Merge pull request #782 from crestalnetwork/hyacinthus
Sep 8, 2025
be92ae4
fix: add database initialization and improve account filtering in mig…
Sep 8, 2025
00a56f1
Merge pull request #783 from crestalnetwork/hyacinthus
Sep 8, 2025
249176f
build(deps): update coinbase-agentkit requirement
dependabot[bot] Sep 8, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fix: add database initialization and improve account filtering in mig…
…ration script
  • Loading branch information
small committed Sep 8, 2025
commit be92ae46df996e42e345b51326c3b51e11ecd50f
23 changes: 19 additions & 4 deletions scripts/migrate_credit_account_statistics.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@
from sqlalchemy import text
from sqlalchemy.ext.asyncio import AsyncSession

from intentkit.models.db import get_session
from intentkit.config.config import config
from intentkit.models.db import get_session, init_db

# Configure logging
logging.basicConfig(
Expand Down Expand Up @@ -195,13 +196,24 @@ async def process_single_account(account_id: str) -> bool:


async def get_all_account_ids() -> List[str]:
"""Get all credit account IDs from the database.
"""Get credit account IDs that need migration (all 8 statistics fields are 0).

Returns:
List of account IDs
List of account IDs that need statistics migration
"""
async with get_session() as session:
query = text("SELECT id FROM credit_accounts ORDER BY created_at")
query = text("""
SELECT id FROM credit_accounts
WHERE total_income = 0
AND total_free_income = 0
AND total_reward_income = 0
AND total_permanent_income = 0
AND total_expense = 0
AND total_free_expense = 0
AND total_reward_expense = 0
AND total_permanent_expense = 0
ORDER BY created_at
""")
result = await session.execute(query)
return [row.id for row in result.fetchall()]

Expand All @@ -211,6 +223,9 @@ async def main():
logger.info("Starting credit account statistics migration")

try:
# Initialize database connection
await init_db(**config.db)

# Create backup table
async with get_session() as session:
await create_backup_table(session)
Expand Down