Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ aos.json

.vscode
.DS_Store
bun.lock
bun.lock

**/*.tgz
7 changes: 7 additions & 0 deletions .permaweb-deploy/transaction-cache.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"60900331d9588ea22079ad62f7a33edbb67d88d05a41b5d9e7f57ae2fc45d2a8": {
"createdAtTimestamp": 1775208052495,
"lastUsedTimestamp": 1775208052495,
"transactionId": "on_3rKtt-x3C79S-0wxPbK82KGaRv3zxjSc06MwaTBU"
}
}
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,12 +225,12 @@ async function runProcess() {

splash({
walletAddress: walletAddress,
mainnetUrl: argv['mainnet'] || (!argv['legacy'] ? (argv['url'] || config.urls.DEFAULT_HB_NODE) : undefined),
mainnetUrl: argv['mainnet'] || (!isLegacyMode ? (argv['url'] || config.urls.DEFAULT_HB_NODE) : undefined),
gatewayUrl: argv['gateway-url'],
cuUrl: argv['cu-url'],
muUrl: argv['mu-url'],
authority: argv['authority'],
scheduler: (argv['scheduler'] ?? config.addresses.SCHEDULER_MAINNET) && !argv['legacy'] ? process.env.SCHEDULER ?? config.addresses.SCHEDULER_MAINNET : undefined,
scheduler: (argv['scheduler'] ?? config.addresses.SCHEDULER_MAINNET) && !isLegacyMode ? process.env.SCHEDULER ?? config.addresses.SCHEDULER_MAINNET : undefined,
legacy: isLegacyMode
})
}
Expand Down
2 changes: 1 addition & 1 deletion src/services/splash.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ export function splash(options = {}) {
const lines = [
'Welcome to AOS: Your operating system for AO, the decentralized open access supercomputer.',
'newline',
`Client Version: ${pkg.version}. 2025`,
`Client Version: ${pkg.version}. ${new Date().getFullYear()}`,
]

if (options.walletAddress) {
Expand Down
4 changes: 2 additions & 2 deletions src/utils/print.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@ function wrapLine(text, maxWidth) {
return wrappedLines.length > 0 ? wrappedLines : [plainText.substring(0, maxWidth)]
}

export function printWithBorder(lines, { title = '', titleColor = chalk.gray, borderColor = chalk.gray, width, truncate = false } = {}) {
export function printWithBorder(lines, { title = '', titleColor = chalk.gray, borderColor = chalk.gray, width, maxWidth = 100, truncate = false } = {}) {
// Use terminal width if not specified
const terminalWidth = process.stdout.columns || 175
const defaultWidth = Math.min(175, Math.max(40, terminalWidth - 2))
const defaultWidth = Math.min(maxWidth, Math.min(175, Math.max(40, terminalWidth - 2)))
const boxWidth = width || defaultWidth
const maxLineWidth = boxWidth - 4 // Account for "│ " and " │"

Expand Down
Loading