agentvault 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.claude/settings.local.json +9 -0
- package/dist/cli/commands/approve.js +5 -5
- package/dist/cli/commands/archive.js +5 -5
- package/dist/cli/commands/backup.js +5 -5
- package/dist/cli/commands/cloud-backup.js +12 -12
- package/dist/cli/commands/decrypt.js +2 -2
- package/dist/cli/commands/deploy.js +1 -1
- package/dist/cli/commands/exec.js +2 -2
- package/dist/cli/commands/fetch.js +4 -4
- package/dist/cli/commands/inference.js +5 -5
- package/dist/cli/commands/init.d.ts +1 -1
- package/dist/cli/commands/init.js +16 -16
- package/dist/cli/commands/list.js +4 -4
- package/dist/cli/commands/package.js +2 -2
- package/dist/cli/commands/profile.js +1 -1
- package/dist/cli/commands/rebuild.js +2 -2
- package/dist/cli/commands/show.js +1 -1
- package/dist/cli/commands/status.d.ts +1 -1
- package/dist/cli/commands/status.js +8 -8
- package/dist/cli/commands/trace.js +1 -1
- package/dist/cli/commands/wallet-export.js +1 -1
- package/dist/cli/commands/wallet-sign.js +1 -1
- package/dist/cli/commands/wallet.d.ts +1 -1
- package/dist/cli/commands/wallet.js +1 -1
- package/dist/cli/index.d.ts +2 -2
- package/dist/cli/index.js +3 -3
- package/dist/src/archival/archive-manager.d.ts +85 -0
- package/dist/src/archival/archive-manager.js +294 -0
- package/dist/src/archival/arweave-client.d.ts +88 -0
- package/dist/src/archival/arweave-client.js +223 -0
- package/dist/src/archival/index.d.ts +8 -0
- package/{src/archival/index.ts → dist/src/archival/index.js} +1 -1
- package/dist/src/backup/backup.d.ts +67 -0
- package/dist/src/backup/backup.js +231 -0
- package/dist/src/backup/index.d.ts +7 -0
- package/{src/backup/index.ts → dist/src/backup/index.js} +1 -1
- package/dist/src/cloud-storage/cloud-sync.d.ts +49 -0
- package/dist/src/cloud-storage/cloud-sync.js +372 -0
- package/dist/src/cloud-storage/index.d.ts +11 -0
- package/{src/cloud-storage/index.ts → dist/src/cloud-storage/index.js} +1 -1
- package/dist/src/cloud-storage/provider-detector.d.ts +34 -0
- package/dist/src/cloud-storage/provider-detector.js +158 -0
- package/{src/cloud-storage/types.ts → dist/src/cloud-storage/types.d.ts} +40 -53
- package/dist/src/cloud-storage/types.js +10 -0
- package/dist/src/debugging/index.d.ts +6 -0
- package/{src/debugging/index.ts → dist/src/debugging/index.js} +1 -1
- package/dist/src/debugging/logs.d.ts +32 -0
- package/dist/src/debugging/logs.js +158 -0
- package/dist/src/debugging/types.d.ts +91 -0
- package/dist/src/debugging/types.js +5 -0
- package/dist/src/deployment/deployer.d.ts +52 -0
- package/dist/src/deployment/deployer.js +211 -0
- package/dist/src/deployment/icpClient.d.ts +144 -0
- package/dist/src/deployment/icpClient.js +545 -0
- package/dist/src/deployment/index.d.ts +11 -0
- package/dist/src/deployment/index.js +14 -0
- package/dist/src/deployment/promotion.d.ts +32 -0
- package/dist/src/deployment/promotion.js +114 -0
- package/dist/src/deployment/types.d.ts +101 -0
- package/dist/src/deployment/types.js +5 -0
- package/dist/src/icp/batch.d.ts +112 -0
- package/dist/src/icp/batch.js +273 -0
- package/dist/src/icp/cycles.d.ts +29 -0
- package/{src/icp/cycles.ts → dist/src/icp/cycles.js} +8 -22
- package/dist/src/icp/environment.d.ts +60 -0
- package/dist/src/icp/environment.js +183 -0
- package/dist/src/icp/icpcli.d.ts +204 -0
- package/dist/src/icp/icpcli.js +374 -0
- package/dist/src/icp/icwasm.d.ts +94 -0
- package/dist/src/icp/icwasm.js +197 -0
- package/dist/src/icp/identity.d.ts +50 -0
- package/{src/icp/identity.ts → dist/src/icp/identity.js} +15 -28
- package/dist/src/icp/index.d.ts +16 -0
- package/dist/src/icp/index.js +20 -0
- package/dist/src/icp/optimization.d.ts +16 -0
- package/dist/src/icp/optimization.js +225 -0
- package/dist/src/icp/tokens.d.ts +24 -0
- package/{src/icp/tokens.ts → dist/src/icp/tokens.js} +5 -12
- package/dist/src/icp/tool-detector.d.ts +31 -0
- package/dist/src/icp/tool-detector.js +104 -0
- package/dist/src/icp/types.d.ts +493 -0
- package/dist/src/icp/types.js +7 -0
- package/dist/src/index.d.ts +12 -0
- package/dist/src/index.js +18 -0
- package/dist/src/inference/bittensor-client.d.ts +108 -0
- package/dist/src/inference/bittensor-client.js +224 -0
- package/dist/src/inference/index.d.ts +8 -0
- package/{src/inference/index.ts → dist/src/inference/index.js} +1 -1
- package/dist/src/inference/inference-manager.d.ts +76 -0
- package/dist/src/inference/inference-manager.js +228 -0
- package/dist/src/metrics/index.d.ts +7 -0
- package/{src/metrics/index.ts → dist/src/metrics/index.js} +1 -1
- package/dist/src/metrics/metrics.d.ts +39 -0
- package/dist/src/metrics/metrics.js +129 -0
- package/dist/src/monitoring/alerting.d.ts +51 -0
- package/dist/src/monitoring/alerting.js +169 -0
- package/dist/src/monitoring/health.d.ts +40 -0
- package/dist/src/monitoring/health.js +164 -0
- package/dist/src/monitoring/index.d.ts +10 -0
- package/dist/src/monitoring/index.js +12 -0
- package/dist/src/monitoring/info.d.ts +15 -0
- package/dist/src/monitoring/info.js +109 -0
- package/dist/src/monitoring/types.d.ts +93 -0
- package/dist/src/monitoring/types.js +7 -0
- package/dist/src/network/index.d.ts +5 -0
- package/{src/network/index.ts → dist/src/network/index.js} +1 -1
- package/dist/src/network/network-config.d.ts +31 -0
- package/dist/src/network/network-config.js +109 -0
- package/dist/src/packaging/compiler.d.ts +61 -0
- package/dist/src/packaging/compiler.js +562 -0
- package/dist/src/packaging/config-persistence.d.ts +46 -0
- package/dist/src/packaging/config-persistence.js +108 -0
- package/dist/src/packaging/config-schemas.d.ts +115 -0
- package/dist/src/packaging/config-schemas.js +43 -0
- package/dist/src/packaging/detector.d.ts +26 -0
- package/dist/src/packaging/detector.js +193 -0
- package/dist/src/packaging/index.d.ts +16 -0
- package/dist/src/packaging/index.js +22 -0
- package/dist/src/packaging/packager.d.ts +31 -0
- package/dist/src/packaging/packager.js +90 -0
- package/dist/src/packaging/parsers/clawdbot.d.ts +19 -0
- package/dist/src/packaging/parsers/clawdbot.js +231 -0
- package/dist/src/packaging/parsers/cline.d.ts +26 -0
- package/dist/src/packaging/parsers/cline.js +185 -0
- package/dist/src/packaging/parsers/generic.d.ts +27 -0
- package/dist/src/packaging/parsers/generic.js +228 -0
- package/dist/src/packaging/parsers/goose.d.ts +26 -0
- package/dist/src/packaging/parsers/goose.js +175 -0
- package/dist/src/packaging/parsers/index.d.ts +11 -0
- package/{src/packaging/parsers/index.ts → dist/src/packaging/parsers/index.js} +1 -1
- package/dist/src/packaging/serializer.d.ts +108 -0
- package/dist/src/packaging/serializer.js +153 -0
- package/dist/src/packaging/types.d.ts +131 -0
- package/dist/src/packaging/types.js +5 -0
- package/dist/src/packaging/wasmedge-compiler.d.ts +76 -0
- package/dist/src/packaging/wasmedge-compiler.js +349 -0
- package/dist/src/security/index.d.ts +11 -0
- package/{src/security/index.ts → dist/src/security/index.js} +1 -4
- package/dist/src/security/multisig.d.ts +102 -0
- package/dist/src/security/multisig.js +283 -0
- package/dist/src/security/types.d.ts +207 -0
- package/dist/src/security/types.js +217 -0
- package/dist/src/security/vetkeys.d.ts +179 -0
- package/dist/src/security/vetkeys.js +499 -0
- package/dist/src/testing/index.d.ts +6 -0
- package/{src/testing/index.ts → dist/src/testing/index.js} +1 -1
- package/dist/src/testing/local-runner.d.ts +23 -0
- package/dist/src/testing/local-runner.js +226 -0
- package/dist/src/testing/types.d.ts +98 -0
- package/dist/src/testing/types.js +5 -0
- package/dist/src/wallet/cbor-serializer.d.ts +82 -0
- package/dist/src/wallet/cbor-serializer.js +282 -0
- package/dist/src/wallet/chain-dispatcher.d.ts +112 -0
- package/dist/src/wallet/chain-dispatcher.js +241 -0
- package/dist/src/wallet/cross-chain-aggregator.d.ts +119 -0
- package/dist/src/wallet/cross-chain-aggregator.js +235 -0
- package/dist/src/wallet/index.d.ts +16 -0
- package/dist/src/wallet/index.js +22 -0
- package/dist/src/wallet/key-derivation.d.ts +117 -0
- package/dist/src/wallet/key-derivation.js +325 -0
- package/dist/src/wallet/providers/base-provider.d.ts +111 -0
- package/dist/src/wallet/providers/base-provider.js +58 -0
- package/dist/src/wallet/providers/cketh-provider.d.ts +104 -0
- package/dist/src/wallet/providers/cketh-provider.js +343 -0
- package/dist/src/wallet/providers/polkadot-provider.d.ts +115 -0
- package/dist/src/wallet/providers/polkadot-provider.js +407 -0
- package/dist/src/wallet/providers/solana-provider.d.ts +102 -0
- package/dist/src/wallet/providers/solana-provider.js +393 -0
- package/dist/src/wallet/transaction-queue.d.ts +133 -0
- package/dist/src/wallet/transaction-queue.js +195 -0
- package/dist/src/wallet/types.d.ts +167 -0
- package/dist/src/wallet/types.js +5 -0
- package/dist/src/wallet/vetkeys-adapter.d.ts +134 -0
- package/dist/src/wallet/vetkeys-adapter.js +313 -0
- package/dist/src/wallet/wallet-manager.d.ts +202 -0
- package/dist/src/wallet/wallet-manager.js +451 -0
- package/dist/src/wallet/wallet-storage.d.ts +131 -0
- package/dist/src/wallet/wallet-storage.js +274 -0
- package/macos-wallet-app/AgentVaultWallet/App/AgentVaultWalletApp.swift +54 -0
- package/macos-wallet-app/AgentVaultWallet/Models/AppState.swift +102 -0
- package/macos-wallet-app/AgentVaultWallet/Models/Chain.swift +121 -0
- package/macos-wallet-app/AgentVaultWallet/Models/Wallet.swift +98 -0
- package/macos-wallet-app/AgentVaultWallet/Resources/AgentVaultWallet.entitlements +27 -0
- package/macos-wallet-app/AgentVaultWallet/Resources/Info.plist +69 -0
- package/macos-wallet-app/AgentVaultWallet/Services/BackupService.swift +270 -0
- package/macos-wallet-app/AgentVaultWallet/Services/CLIBridge.swift +367 -0
- package/macos-wallet-app/AgentVaultWallet/Services/CryptoService.swift +157 -0
- package/macos-wallet-app/AgentVaultWallet/Services/FileService.swift +120 -0
- package/macos-wallet-app/AgentVaultWallet/Services/KeychainService.swift +219 -0
- package/macos-wallet-app/AgentVaultWallet/Utilities/Constants.swift +44 -0
- package/macos-wallet-app/AgentVaultWallet/Utilities/Extensions.swift +115 -0
- package/macos-wallet-app/AgentVaultWallet/ViewModels/BackupViewModel.swift +237 -0
- package/macos-wallet-app/AgentVaultWallet/ViewModels/CreateWalletViewModel.swift +137 -0
- package/macos-wallet-app/AgentVaultWallet/ViewModels/ImportWalletViewModel.swift +179 -0
- package/macos-wallet-app/AgentVaultWallet/ViewModels/WalletStore.swift +286 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Backup/BackupView.swift +235 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Backup/RestoreView.swift +316 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Create/CreateWalletFlow.swift +438 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Import/ImportWalletFlow.swift +399 -0
- package/macos-wallet-app/AgentVaultWallet/Views/MainView.swift +134 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Settings/SettingsView.swift +276 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Sidebar/SidebarView.swift +133 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Wallet/DashboardView.swift +233 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Wallet/WalletDetailView.swift +281 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Wallet/WalletListView.swift +280 -0
- package/macos-wallet-app/AgentVaultWallet/Views/Welcome/WelcomeView.swift +176 -0
- package/macos-wallet-app/Makefile +47 -0
- package/macos-wallet-app/project.yml +40 -0
- package/macos-wallet-app/setup.sh +73 -0
- package/package.json +10 -2
- package/backups/agentvault-backup-test-agent-2026-02-12T17-54-28-967Z.json +0 -28
- package/backups/agentvault-backup-test-agent-2026-02-12T17-54-29-032Z.backup +0 -1
- package/backups/agentvault-backup-test-agent-2026-02-12T17-57-42-373Z.json +0 -28
- package/backups/agentvault-backup-test-agent-2026-02-12T17-57-42-428Z.backup +0 -1
- package/backups/agentvault-backup-test-agent-2026-02-12T18-52-25-132Z.json +0 -28
- package/backups/agentvault-backup-test-agent-2026-02-12T18-52-25-247Z.backup +0 -1
- package/backups/agentvault-backup-test-agent-2026-02-12T18-54-09-216Z.json +0 -28
- package/backups/agentvault-backup-test-agent-2026-02-12T18-54-09-283Z.backup +0 -1
- package/backups/agentvault-backup-test-agent-2026-02-12T22-18-22-772Z.backup +0 -1
- package/backups/agentvault-backup-test-agent-2026-02-12T22-18-22-793Z.json +0 -28
- package/backups/test-backup.json +0 -28
- package/scripts/dev-dashboard.mjs +0 -84
- package/site/README.md +0 -63
- package/site/docusaurus.config.ts +0 -148
- package/site/package-lock.json +0 -18383
- package/site/package.json +0 -47
- package/site/sidebars.ts +0 -86
- package/site/static/.gitkeep +0 -0
- package/site/static/img/logo.svg +0 -28
- package/site/static/img/og-image.svg +0 -35
- package/src/archival/archive-manager.ts +0 -372
- package/src/archival/arweave-client.ts +0 -289
- package/src/backup/backup.ts +0 -315
- package/src/cloud-storage/cloud-sync.ts +0 -461
- package/src/cloud-storage/provider-detector.ts +0 -198
- package/src/debugging/logs.ts +0 -193
- package/src/debugging/types.ts +0 -100
- package/src/deployment/deployer.ts +0 -274
- package/src/deployment/icpClient.ts +0 -620
- package/src/deployment/index.ts +0 -46
- package/src/deployment/promotion.ts +0 -161
- package/src/deployment/types.ts +0 -111
- package/src/icp/batch.ts +0 -374
- package/src/icp/environment.ts +0 -215
- package/src/icp/icpcli.ts +0 -438
- package/src/icp/icwasm.ts +0 -222
- package/src/icp/index.ts +0 -94
- package/src/icp/optimization.ts +0 -242
- package/src/icp/tool-detector.ts +0 -110
- package/src/icp/types.ts +0 -574
- package/src/index.ts +0 -25
- package/src/inference/bittensor-client.ts +0 -304
- package/src/inference/inference-manager.ts +0 -327
- package/src/metrics/metrics.ts +0 -186
- package/src/monitoring/alerting.ts +0 -190
- package/src/monitoring/health.ts +0 -197
- package/src/monitoring/index.ts +0 -38
- package/src/monitoring/info.ts +0 -114
- package/src/monitoring/types.ts +0 -99
- package/src/network/network-config.ts +0 -129
- package/src/packaging/compiler.ts +0 -647
- package/src/packaging/config-persistence.ts +0 -135
- package/src/packaging/config-schemas.ts +0 -156
- package/src/packaging/detector.ts +0 -220
- package/src/packaging/index.ts +0 -90
- package/src/packaging/packager.ts +0 -118
- package/src/packaging/parsers/clawdbot.ts +0 -278
- package/src/packaging/parsers/cline.ts +0 -223
- package/src/packaging/parsers/generic.ts +0 -266
- package/src/packaging/parsers/goose.ts +0 -214
- package/src/packaging/serializer.ts +0 -260
- package/src/packaging/types.ts +0 -144
- package/src/packaging/wasmedge-compiler.ts +0 -406
- package/src/security/multisig.ts +0 -415
- package/src/security/types.ts +0 -416
- package/src/security/vetkeys.ts +0 -655
- package/src/testing/local-runner.ts +0 -264
- package/src/testing/types.ts +0 -104
- package/src/wallet/cbor-serializer.ts +0 -323
- package/src/wallet/chain-dispatcher.ts +0 -313
- package/src/wallet/cross-chain-aggregator.ts +0 -346
- package/src/wallet/index.ts +0 -76
- package/src/wallet/key-derivation.ts +0 -425
- package/src/wallet/providers/base-provider.ts +0 -154
- package/src/wallet/providers/cketh-provider.ts +0 -434
- package/src/wallet/providers/polkadot-provider.ts +0 -503
- package/src/wallet/providers/solana-provider.ts +0 -490
- package/src/wallet/transaction-queue.ts +0 -284
- package/src/wallet/types.ts +0 -178
- package/src/wallet/vetkeys-adapter.ts +0 -431
- package/src/wallet/wallet-manager.ts +0 -597
- package/src/wallet/wallet-storage.ts +0 -380
|
@@ -9,11 +9,11 @@ approveCmd
|
|
|
9
9
|
console.log(chalk.yellow('[Experimental] This feature is under active development and may change.'));
|
|
10
10
|
console.log(chalk.yellow('Please specify a subcommand: create, list, sign, reject, delete, or cleanup'));
|
|
11
11
|
console.log(chalk.gray(`\nExamples:
|
|
12
|
-
${chalk.cyan('
|
|
13
|
-
${chalk.cyan('
|
|
14
|
-
${chalk.cyan('
|
|
15
|
-
${chalk.cyan('
|
|
16
|
-
${chalk.cyan('
|
|
12
|
+
${chalk.cyan('agentvault approve create deploy <agent-name> "Description"')}${chalk.gray(' Create approval request')}
|
|
13
|
+
${chalk.cyan('agentvault approve list')}${chalk.gray(' List all requests')}
|
|
14
|
+
${chalk.cyan('agentvault approve sign <request-id>')}${chalk.gray(' Sign a request')}
|
|
15
|
+
${chalk.cyan('agentvault approve reject <request-id>')}${chalk.gray(' Reject a request')}
|
|
16
|
+
${chalk.cyan('agentvault approve pending <signer>')}${chalk.gray(' Show pending requests')}`));
|
|
17
17
|
});
|
|
18
18
|
approveCmd
|
|
19
19
|
.command('create')
|
|
@@ -9,11 +9,11 @@ archiveCmd
|
|
|
9
9
|
console.log(chalk.yellow('[Experimental] This feature is under active development and may change.'));
|
|
10
10
|
console.log(chalk.yellow('Please specify a subcommand: prepare, list, delete, verify, or stats'));
|
|
11
11
|
console.log(chalk.gray(`\nExamples:
|
|
12
|
-
${chalk.cyan('
|
|
13
|
-
${chalk.cyan('
|
|
14
|
-
${chalk.cyan('
|
|
15
|
-
${chalk.cyan('
|
|
16
|
-
${chalk.cyan('
|
|
12
|
+
${chalk.cyan('agentvault archive prepare <agent-name> <version>')}${chalk.gray(' Prepare agent data for archival')}
|
|
13
|
+
${chalk.cyan('agentvault archive list')}${chalk.gray(' List all archives')}
|
|
14
|
+
${chalk.cyan('agentvault archive stats <agent-name>')}${chalk.gray(' Get archive statistics')}
|
|
15
|
+
${chalk.cyan('agentvault archive delete <archive-id>')}${chalk.gray(' Delete an archive')}
|
|
16
|
+
${chalk.cyan('agentvault archive verify <archive-id>')}${chalk.gray(' Verify archive integrity')}`));
|
|
17
17
|
});
|
|
18
18
|
archiveCmd
|
|
19
19
|
.command('prepare')
|
|
@@ -8,11 +8,11 @@ backupCmd
|
|
|
8
8
|
.action(async () => {
|
|
9
9
|
console.log(chalk.yellow('Please specify a subcommand: export, import, list, delete, or preview'));
|
|
10
10
|
console.log(chalk.gray(`\nExamples:
|
|
11
|
-
${chalk.cyan('
|
|
12
|
-
${chalk.cyan('
|
|
13
|
-
${chalk.cyan('
|
|
14
|
-
${chalk.cyan('
|
|
15
|
-
${chalk.cyan('
|
|
11
|
+
${chalk.cyan('agentvault backup export <agent-name> --output backup.json')}${chalk.gray(' Export agent config to file')}
|
|
12
|
+
${chalk.cyan('agentvault backup import <file>')}${chalk.gray(' Import agent from backup file')}
|
|
13
|
+
${chalk.cyan('agentvault backup list')}${chalk.gray(' List all backups')}
|
|
14
|
+
${chalk.cyan('agentvault backup delete <backup-path>')}${chalk.gray(' Delete a backup')}
|
|
15
|
+
${chalk.cyan('agentvault backup preview <backup-path>')}${chalk.gray(' Preview backup contents')}`));
|
|
16
16
|
});
|
|
17
17
|
backupCmd
|
|
18
18
|
.command('export')
|
|
@@ -5,16 +5,16 @@ import { detectProviders, detectAvailableProviders, createCustomProvider, resolv
|
|
|
5
5
|
import { formatBackupSize } from '../../src/backup/index.js';
|
|
6
6
|
const cloudBackupCmd = new Command('cloud-backup');
|
|
7
7
|
cloudBackupCmd
|
|
8
|
-
.description('Archive and restore
|
|
8
|
+
.description('Archive and restore AgentVault data using cloud storage (Google Drive, iCloud, Dropbox, etc.)')
|
|
9
9
|
.action(async () => {
|
|
10
10
|
console.log(chalk.yellow('Please specify a subcommand: providers, archive, restore, list, or verify'));
|
|
11
11
|
console.log(chalk.gray(`
|
|
12
12
|
Examples:
|
|
13
|
-
${chalk.cyan('
|
|
14
|
-
${chalk.cyan('
|
|
15
|
-
${chalk.cyan('
|
|
16
|
-
${chalk.cyan('
|
|
17
|
-
${chalk.cyan('
|
|
13
|
+
${chalk.cyan('agentvault cloud-backup providers')} List detected cloud providers
|
|
14
|
+
${chalk.cyan('agentvault cloud-backup archive --provider dropbox')} Archive vault to Dropbox
|
|
15
|
+
${chalk.cyan('agentvault cloud-backup list --provider dropbox')} List archives in Dropbox
|
|
16
|
+
${chalk.cyan('agentvault cloud-backup restore <archive-path>')} Restore from archive
|
|
17
|
+
${chalk.cyan('agentvault cloud-backup verify <archive-path>')} Verify archive integrity`));
|
|
18
18
|
});
|
|
19
19
|
// --- providers ---
|
|
20
20
|
cloudBackupCmd
|
|
@@ -48,7 +48,7 @@ cloudBackupCmd
|
|
|
48
48
|
// --- archive ---
|
|
49
49
|
cloudBackupCmd
|
|
50
50
|
.command('archive')
|
|
51
|
-
.description('Archive
|
|
51
|
+
.description('Archive AgentVault data to a cloud storage provider')
|
|
52
52
|
.option('-p, --provider <name>', 'Cloud provider (google-drive, icloud-drive, dropbox, onedrive)')
|
|
53
53
|
.option('--path <directory>', 'Custom directory path (overrides --provider)')
|
|
54
54
|
.option('-a, --agent <name>', 'Archive a specific agent only')
|
|
@@ -56,7 +56,7 @@ cloudBackupCmd
|
|
|
56
56
|
.option('--no-wallets', 'Exclude wallet data')
|
|
57
57
|
.option('--no-backups', 'Exclude existing backups')
|
|
58
58
|
.option('--no-networks', 'Exclude network configurations')
|
|
59
|
-
.option('--subdirectory <name>', 'Subdirectory name inside provider', '
|
|
59
|
+
.option('--subdirectory <name>', 'Subdirectory name inside provider', 'AgentVault-Backups')
|
|
60
60
|
.action(async (options) => {
|
|
61
61
|
// Resolve provider path
|
|
62
62
|
let providerPath;
|
|
@@ -70,7 +70,7 @@ cloudBackupCmd
|
|
|
70
70
|
const providers = detectProviders();
|
|
71
71
|
const match = providers.find((p) => p.provider === options.provider);
|
|
72
72
|
if (!match) {
|
|
73
|
-
console.error(chalk.red(`Unknown provider "${options.provider}". Use "
|
|
73
|
+
console.error(chalk.red(`Unknown provider "${options.provider}". Use "agentvault cloud-backup providers" to see available options.`));
|
|
74
74
|
process.exit(1);
|
|
75
75
|
return;
|
|
76
76
|
}
|
|
@@ -121,7 +121,7 @@ cloudBackupCmd
|
|
|
121
121
|
.description('List available archives in a cloud storage directory')
|
|
122
122
|
.option('-p, --provider <name>', 'Cloud provider (google-drive, icloud-drive, dropbox, onedrive)')
|
|
123
123
|
.option('--path <directory>', 'Custom directory path')
|
|
124
|
-
.option('--subdirectory <name>', 'Subdirectory name inside provider', '
|
|
124
|
+
.option('--subdirectory <name>', 'Subdirectory name inside provider', 'AgentVault-Backups')
|
|
125
125
|
.action(async (options) => {
|
|
126
126
|
let providerPath;
|
|
127
127
|
if (options.path) {
|
|
@@ -131,7 +131,7 @@ cloudBackupCmd
|
|
|
131
131
|
const providers = detectProviders();
|
|
132
132
|
const match = providers.find((p) => p.provider === options.provider);
|
|
133
133
|
if (!match || !match.available) {
|
|
134
|
-
console.error(chalk.red(`Provider "${options.provider}" not available. Run "
|
|
134
|
+
console.error(chalk.red(`Provider "${options.provider}" not available. Run "agentvault cloud-backup providers".`));
|
|
135
135
|
process.exit(1);
|
|
136
136
|
return;
|
|
137
137
|
}
|
|
@@ -172,7 +172,7 @@ cloudBackupCmd
|
|
|
172
172
|
// --- restore ---
|
|
173
173
|
cloudBackupCmd
|
|
174
174
|
.command('restore')
|
|
175
|
-
.description('Restore
|
|
175
|
+
.description('Restore AgentVault data from a cloud archive')
|
|
176
176
|
.argument('<archive-path>', 'Path to the archive directory')
|
|
177
177
|
.option('--overwrite', 'Overwrite existing files', false)
|
|
178
178
|
.action(async (archivePath, options) => {
|
|
@@ -68,7 +68,7 @@ export async function executeDecrypt(filePath, options) {
|
|
|
68
68
|
console.log();
|
|
69
69
|
console.log(chalk.cyan('Next steps:'));
|
|
70
70
|
console.log(' 1. Review the decrypted state');
|
|
71
|
-
console.log(' 2. Rebuild agent:', chalk.bold('
|
|
71
|
+
console.log(' 2. Rebuild agent:', chalk.bold('agentvault rebuild'));
|
|
72
72
|
}
|
|
73
73
|
catch (error) {
|
|
74
74
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
@@ -86,7 +86,7 @@ export function decryptCommand() {
|
|
|
86
86
|
.argument('<file>', 'encrypted state file to decrypt')
|
|
87
87
|
.option('-o, --output <path>', 'output file path')
|
|
88
88
|
.action(async (file, options) => {
|
|
89
|
-
console.log(chalk.bold('\n🔓
|
|
89
|
+
console.log(chalk.bold('\n🔓 AgentVault Decrypt\n'));
|
|
90
90
|
try {
|
|
91
91
|
await executeDecrypt(file, options);
|
|
92
92
|
}
|
|
@@ -193,7 +193,7 @@ export function deployCommand() {
|
|
|
193
193
|
.option('--cycles <amount>', 'cycles allocation (e.g. 100T)')
|
|
194
194
|
.option('--mode <mode>', 'deploy mode: auto, install, reinstall, upgrade')
|
|
195
195
|
.action(async (wasm, options) => {
|
|
196
|
-
console.log(chalk.bold('\n🚀
|
|
196
|
+
console.log(chalk.bold('\n🚀 AgentVault Deploy\n'));
|
|
197
197
|
try {
|
|
198
198
|
await executeDeploy(wasm, options);
|
|
199
199
|
}
|
|
@@ -86,7 +86,7 @@ export function execCommand() {
|
|
|
86
86
|
.option('-a, --async', 'return immediately without waiting for completion')
|
|
87
87
|
.option('-p, --polling', 'poll for task completion (default: true)')
|
|
88
88
|
.action(async (canisterId, task, options) => {
|
|
89
|
-
console.log(chalk.bold('\n⚡
|
|
89
|
+
console.log(chalk.bold('\n⚡ AgentVault Exec\n'));
|
|
90
90
|
try {
|
|
91
91
|
const result = await executeExec(canisterId, task, options);
|
|
92
92
|
if (options.async || options.polling === false) {
|
|
@@ -95,7 +95,7 @@ export function execCommand() {
|
|
|
95
95
|
console.log(` Task ID: ${result.taskId}`);
|
|
96
96
|
console.log(` Status: ${result.status}`);
|
|
97
97
|
console.log();
|
|
98
|
-
console.log('Use', chalk.bold('
|
|
98
|
+
console.log('Use', chalk.bold('agentvault show'), 'to check task status.');
|
|
99
99
|
}
|
|
100
100
|
}
|
|
101
101
|
catch (error) {
|
|
@@ -81,8 +81,8 @@ export async function executeFetch(canisterId, options) {
|
|
|
81
81
|
console.log(chalk.green('✓'), 'State saved to:', chalk.bold(outputPath));
|
|
82
82
|
console.log();
|
|
83
83
|
console.log(chalk.cyan('Next steps:'));
|
|
84
|
-
console.log(' 1. Decrypt the state:', chalk.bold('
|
|
85
|
-
console.log(' 2. Rebuild the agent:', chalk.bold('
|
|
84
|
+
console.log(' 1. Decrypt the state:', chalk.bold('agentvault decrypt'), `<${outputPath}>`);
|
|
85
|
+
console.log(' 2. Rebuild the agent:', chalk.bold('agentvault rebuild'));
|
|
86
86
|
}
|
|
87
87
|
// Handle decryption if requested
|
|
88
88
|
if (options.decrypt) {
|
|
@@ -129,7 +129,7 @@ async function handleDecryption(stateData, outputPath) {
|
|
|
129
129
|
console.log();
|
|
130
130
|
console.log(chalk.cyan('Next steps:'));
|
|
131
131
|
console.log(' 1. Review the decrypted state');
|
|
132
|
-
console.log(' 2. Rebuild the agent:', chalk.bold('
|
|
132
|
+
console.log(' 2. Rebuild the agent:', chalk.bold('agentvault rebuild'));
|
|
133
133
|
}
|
|
134
134
|
catch (error) {
|
|
135
135
|
const message = error instanceof Error ? error.message : 'Unknown error';
|
|
@@ -149,7 +149,7 @@ export function fetchCommand() {
|
|
|
149
149
|
.option('-o, --output <path>', 'output file path')
|
|
150
150
|
.option('-d, --decrypt', 'decrypt state after fetching')
|
|
151
151
|
.action(async (canisterId, options) => {
|
|
152
|
-
console.log(chalk.bold('\n📥
|
|
152
|
+
console.log(chalk.bold('\n📥 AgentVault Fetch\n'));
|
|
153
153
|
try {
|
|
154
154
|
await executeFetch(canisterId, options);
|
|
155
155
|
}
|
|
@@ -9,11 +9,11 @@ inferenceCmd
|
|
|
9
9
|
console.log(chalk.yellow('[Experimental] This feature is under active development and may change.'));
|
|
10
10
|
console.log(chalk.yellow('Please specify a subcommand: query, subnets, modules, cache, or stats'));
|
|
11
11
|
console.log(chalk.gray(`\nExamples:
|
|
12
|
-
${chalk.cyan('
|
|
13
|
-
${chalk.cyan('
|
|
14
|
-
${chalk.cyan('
|
|
15
|
-
${chalk.cyan('
|
|
16
|
-
${chalk.cyan('
|
|
12
|
+
${chalk.cyan('agentvault inference query <netuid> <inputs>')}${chalk.gray(' Query inference')}
|
|
13
|
+
${chalk.cyan('agentvault inference subnets')}${chalk.gray(' List Bittensor subnets')}
|
|
14
|
+
${chalk.cyan('agentvault inference modules <netuid>')}${chalk.gray(' List subnet modules')}
|
|
15
|
+
${chalk.cyan('agentvault inference cache clear')}${chalk.gray(' Clear inference cache')}
|
|
16
|
+
${chalk.cyan('agentvault inference cache stats')}${chalk.gray(' Show cache statistics')}`));
|
|
17
17
|
});
|
|
18
18
|
inferenceCmd
|
|
19
19
|
.command('query')
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Init command - Initialize a new
|
|
2
|
+
* Init command - Initialize a new AgentVault project
|
|
3
3
|
*/
|
|
4
4
|
import * as path from 'node:path';
|
|
5
5
|
import * as fs from 'node:fs';
|
|
@@ -12,7 +12,7 @@ export async function promptForInitOptions(options) {
|
|
|
12
12
|
if (options.yes) {
|
|
13
13
|
return {
|
|
14
14
|
name: options.name ?? 'my-agent',
|
|
15
|
-
description: 'An
|
|
15
|
+
description: 'An AgentVault agent',
|
|
16
16
|
confirm: true,
|
|
17
17
|
};
|
|
18
18
|
}
|
|
@@ -36,7 +36,7 @@ export async function promptForInitOptions(options) {
|
|
|
36
36
|
type: 'input',
|
|
37
37
|
name: 'description',
|
|
38
38
|
message: 'Provide a description for your agent:',
|
|
39
|
-
default: 'An
|
|
39
|
+
default: 'An AgentVault agent',
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
type: 'confirm',
|
|
@@ -48,8 +48,8 @@ export async function promptForInitOptions(options) {
|
|
|
48
48
|
return answers;
|
|
49
49
|
}
|
|
50
50
|
export async function executeInit(answers, _options, sourcePath) {
|
|
51
|
-
const spinner = ora('Initializing
|
|
52
|
-
const projectDir = path.resolve(sourcePath, '.
|
|
51
|
+
const spinner = ora('Initializing AgentVault project...').start();
|
|
52
|
+
const projectDir = path.resolve(sourcePath, '.agentvault');
|
|
53
53
|
const agentDir = path.join(projectDir, 'agent');
|
|
54
54
|
const canisterDir = path.join(projectDir, 'canister');
|
|
55
55
|
const configDir = path.join(projectDir, 'config');
|
|
@@ -67,11 +67,11 @@ export async function executeInit(answers, _options, sourcePath) {
|
|
|
67
67
|
type: 'generic',
|
|
68
68
|
version: '1.0.0',
|
|
69
69
|
createdAt: Date.now(),
|
|
70
|
-
description: answers.description || 'An
|
|
70
|
+
description: answers.description || 'An AgentVault agent',
|
|
71
71
|
};
|
|
72
72
|
fs.writeFileSync(configPath, JSON.stringify(configContent, null, 2), 'utf-8');
|
|
73
73
|
const gitignorePath = path.join(projectDir, '.gitignore');
|
|
74
|
-
const gitignoreContent = `#
|
|
74
|
+
const gitignoreContent = `# AgentVault dependencies
|
|
75
75
|
node_modules/
|
|
76
76
|
dist/
|
|
77
77
|
*.log
|
|
@@ -79,19 +79,19 @@ dist/
|
|
|
79
79
|
*.local
|
|
80
80
|
.DS_Store
|
|
81
81
|
|
|
82
|
-
#
|
|
82
|
+
# AgentVault generated files
|
|
83
83
|
*.wasm
|
|
84
84
|
*.backup
|
|
85
85
|
*.state.json
|
|
86
86
|
|
|
87
|
-
#
|
|
88
|
-
.
|
|
87
|
+
# AgentVault project structure
|
|
88
|
+
.agentvault/
|
|
89
89
|
src/
|
|
90
90
|
canister/
|
|
91
91
|
config/
|
|
92
92
|
`;
|
|
93
93
|
fs.writeFileSync(gitignorePath, gitignoreContent, 'utf-8');
|
|
94
|
-
spinner.succeed('
|
|
94
|
+
spinner.succeed('AgentVault project initialized successfully!');
|
|
95
95
|
console.log();
|
|
96
96
|
console.log(chalk.green('✓'), 'Project initialized at:', chalk.bold(projectDir));
|
|
97
97
|
console.log(chalk.cyan('Directory structure:'));
|
|
@@ -107,22 +107,22 @@ config/
|
|
|
107
107
|
console.log(' ├── Description:', chalk.bold(configContent.description));
|
|
108
108
|
console.log();
|
|
109
109
|
console.log(chalk.cyan('Next steps:'));
|
|
110
|
-
console.log(' 1. Run', chalk.bold('
|
|
110
|
+
console.log(' 1. Run', chalk.bold('agentvault status'), 'to check your project');
|
|
111
111
|
console.log(' 2. Configure your agent in', chalk.bold('agent.config.json'), '(add agent type, description, etc.)');
|
|
112
|
-
console.log(' 3. Compile agent with', chalk.bold('
|
|
113
|
-
console.log(' 4. Deploy with', chalk.bold('
|
|
112
|
+
console.log(' 3. Compile agent with', chalk.bold('agentvault package'), 'to prepare for deployment');
|
|
113
|
+
console.log(' 4. Deploy with', chalk.bold('agentvault deploy'), 'to upload to ICP');
|
|
114
114
|
}
|
|
115
115
|
export function initCommand() {
|
|
116
116
|
const command = new Command('init');
|
|
117
117
|
command
|
|
118
|
-
.description('Initialize a new
|
|
118
|
+
.description('Initialize a new AgentVault project')
|
|
119
119
|
.argument('[source]', 'path to agent source directory', '.')
|
|
120
120
|
.option('-n, --name <name>', 'name of the agent')
|
|
121
121
|
.option('-y, --yes', 'skip prompts and use defaults')
|
|
122
122
|
.option('-v, --verbose', 'display detailed configuration information')
|
|
123
123
|
.option('--vv', 'extra verbose mode for debugging')
|
|
124
124
|
.action(async (source, options) => {
|
|
125
|
-
console.log(chalk.bold('\n🔐
|
|
125
|
+
console.log(chalk.bold('\n🔐 AgentVault Project Initialization\n'));
|
|
126
126
|
const answers = await promptForInitOptions(options);
|
|
127
127
|
if (!answers || !answers.confirm) {
|
|
128
128
|
console.log(chalk.yellow('Initialization cancelled.'));
|
|
@@ -28,8 +28,8 @@ export async function getAgents(options) {
|
|
|
28
28
|
*/
|
|
29
29
|
async function getLocalAgents() {
|
|
30
30
|
const agents = [];
|
|
31
|
-
// Check for
|
|
32
|
-
const agentDir = path.join(process.cwd(), '.
|
|
31
|
+
// Check for agentvault directory
|
|
32
|
+
const agentDir = path.join(process.cwd(), '.agentvault');
|
|
33
33
|
if (fs.existsSync(agentDir)) {
|
|
34
34
|
const agentsDir = path.join(agentDir, 'agents');
|
|
35
35
|
if (fs.existsSync(agentsDir)) {
|
|
@@ -109,7 +109,7 @@ export function displayAgents(agents, options) {
|
|
|
109
109
|
if (agents.length === 0) {
|
|
110
110
|
console.log(chalk.yellow('No agents found.'));
|
|
111
111
|
console.log();
|
|
112
|
-
console.log('Create a new agent with:', chalk.bold('
|
|
112
|
+
console.log('Create a new agent with:', chalk.bold('agentvault init'));
|
|
113
113
|
return;
|
|
114
114
|
}
|
|
115
115
|
console.log(chalk.cyan(`Found ${agents.length} agent(s):\n`));
|
|
@@ -158,7 +158,7 @@ export function listCommand() {
|
|
|
158
158
|
.option('--local', 'show only local agents')
|
|
159
159
|
.option('-j, --json', 'output as JSON')
|
|
160
160
|
.action(async (options) => {
|
|
161
|
-
console.log(chalk.bold('\n📋
|
|
161
|
+
console.log(chalk.bold('\n📋 AgentVault List\n'));
|
|
162
162
|
try {
|
|
163
163
|
await executeList(options);
|
|
164
164
|
}
|
|
@@ -112,7 +112,7 @@ export function displayResult(result) {
|
|
|
112
112
|
}
|
|
113
113
|
console.log(chalk.cyan('Next steps:'));
|
|
114
114
|
console.log(' 1. Review the generated files');
|
|
115
|
-
console.log(' 2. Run', chalk.bold('
|
|
115
|
+
console.log(' 2. Run', chalk.bold('agentvault deploy'), 'to upload to ICP');
|
|
116
116
|
}
|
|
117
117
|
/**
|
|
118
118
|
* Execute the package command
|
|
@@ -173,7 +173,7 @@ export function packageCommand() {
|
|
|
173
173
|
.option('--memory-limit <limit>', 'set canister memory limit (e.g. 4GiB)')
|
|
174
174
|
.option('--compute-quota <quota>', 'set canister compute quota')
|
|
175
175
|
.action(async (source, options) => {
|
|
176
|
-
console.log(chalk.bold('\n📦
|
|
176
|
+
console.log(chalk.bold('\n📦 AgentVault Package\n'));
|
|
177
177
|
try {
|
|
178
178
|
await executePackage(source, options);
|
|
179
179
|
}
|
|
@@ -64,7 +64,7 @@ profileCmd
|
|
|
64
64
|
}
|
|
65
65
|
console.log();
|
|
66
66
|
console.log(chalk.yellow('Profiling is in mock mode.'));
|
|
67
|
-
console.log(chalk.gray('Real profiling requires
|
|
67
|
+
console.log(chalk.gray('Real profiling requires agentvault instrument and trace collection.'));
|
|
68
68
|
}
|
|
69
69
|
catch (error) {
|
|
70
70
|
spinner.fail(chalk.red('Failed to profile canister'));
|
|
@@ -101,7 +101,7 @@ export async function executeRebuild(stateFile, options) {
|
|
|
101
101
|
console.log();
|
|
102
102
|
console.log(chalk.cyan('Next steps:'));
|
|
103
103
|
console.log(' 1. Test rebuilt agent locally');
|
|
104
|
-
console.log(' 2. Deploy with:', chalk.bold('
|
|
104
|
+
console.log(' 2. Deploy with:', chalk.bold('agentvault deploy'));
|
|
105
105
|
}
|
|
106
106
|
catch (error) {
|
|
107
107
|
compileSpinner.fail('Compilation failed');
|
|
@@ -125,7 +125,7 @@ export function rebuildCommand() {
|
|
|
125
125
|
.option('--debug', 'enable debugging features')
|
|
126
126
|
.option('--optimize <level>', 'optimization level (0-3)', '2')
|
|
127
127
|
.action(async (stateFile, options) => {
|
|
128
|
-
console.log(chalk.bold('\n🔧
|
|
128
|
+
console.log(chalk.bold('\n🔧 AgentVault Rebuild\n'));
|
|
129
129
|
try {
|
|
130
130
|
await executeRebuild(stateFile, options);
|
|
131
131
|
}
|
|
@@ -185,7 +185,7 @@ export function showCommand() {
|
|
|
185
185
|
.option('-m, --memories', 'show memories')
|
|
186
186
|
.option('-c, --context', 'show context')
|
|
187
187
|
.action(async (canisterId, options) => {
|
|
188
|
-
console.log(chalk.bold('\n👁️
|
|
188
|
+
console.log(chalk.bold('\n👁️ AgentVault Show\n'));
|
|
189
189
|
try {
|
|
190
190
|
await executeShow(canisterId, options);
|
|
191
191
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Status command - Display current
|
|
2
|
+
* Status command - Display current AgentVault project status
|
|
3
3
|
*/
|
|
4
4
|
import { Command } from 'commander';
|
|
5
5
|
import chalk from 'chalk';
|
|
@@ -17,7 +17,7 @@ export async function getProjectStatus() {
|
|
|
17
17
|
};
|
|
18
18
|
}
|
|
19
19
|
const cwd = process.cwd();
|
|
20
|
-
const projectDir = path.join(cwd, '.
|
|
20
|
+
const projectDir = path.join(cwd, '.agentvault');
|
|
21
21
|
const configPath = path.join(projectDir, 'config', 'agent.config.json');
|
|
22
22
|
const canisterIdsPath = path.join(cwd, 'canister_ids.json');
|
|
23
23
|
const initialized = fs.existsSync(projectDir) && fs.statSync(projectDir).isDirectory();
|
|
@@ -35,8 +35,8 @@ export async function getProjectStatus() {
|
|
|
35
35
|
if (fs.existsSync(canisterIdsPath)) {
|
|
36
36
|
try {
|
|
37
37
|
const canisterData = JSON.parse(fs.readFileSync(canisterIdsPath, 'utf-8'));
|
|
38
|
-
canisterDeployed = !!(canisterData.
|
|
39
|
-
canisterData.
|
|
38
|
+
canisterDeployed = !!(canisterData.agent_vault?.local ||
|
|
39
|
+
canisterData.agent_vault?.ic);
|
|
40
40
|
}
|
|
41
41
|
catch {
|
|
42
42
|
canisterDeployed = false;
|
|
@@ -50,13 +50,13 @@ export async function getProjectStatus() {
|
|
|
50
50
|
};
|
|
51
51
|
}
|
|
52
52
|
export async function displayStatus(status) {
|
|
53
|
-
console.log(chalk.bold('\n📊
|
|
53
|
+
console.log(chalk.bold('\n📊 AgentVault Project Status\n'));
|
|
54
54
|
console.log(chalk.cyan('Version:'), status.version);
|
|
55
55
|
console.log();
|
|
56
56
|
if (!status.initialized) {
|
|
57
|
-
console.log(chalk.yellow('⚠'), 'No
|
|
57
|
+
console.log(chalk.yellow('⚠'), 'No AgentVault project found in current directory.');
|
|
58
58
|
console.log();
|
|
59
|
-
console.log('Run', chalk.bold('
|
|
59
|
+
console.log('Run', chalk.bold('agentvault init'), 'to create a new project.');
|
|
60
60
|
return;
|
|
61
61
|
}
|
|
62
62
|
console.log(chalk.green('✓'), 'Project initialized');
|
|
@@ -66,7 +66,7 @@ export async function displayStatus(status) {
|
|
|
66
66
|
export function statusCommand() {
|
|
67
67
|
const command = new Command('status');
|
|
68
68
|
command
|
|
69
|
-
.description('Display current
|
|
69
|
+
.description('Display current AgentVault project status')
|
|
70
70
|
.option('-j, --json', 'output status as JSON')
|
|
71
71
|
.action(async (options) => {
|
|
72
72
|
const spinner = ora('Checking project status...').start();
|
|
@@ -38,7 +38,7 @@ traceCmd
|
|
|
38
38
|
console.log(chalk.gray(' (Note: Requires instrumented WASM and trace collection)'));
|
|
39
39
|
console.log();
|
|
40
40
|
console.log(chalk.yellow('To collect traces:'));
|
|
41
|
-
console.log(chalk.gray(' 1. Run
|
|
41
|
+
console.log(chalk.gray(' 1. Run agentvault instrument <wasm-file>'));
|
|
42
42
|
console.log(chalk.gray(' 2. Deploy instrumented WASM'));
|
|
43
43
|
console.log(chalk.gray(' 3. Canister will emit traces to stable memory'));
|
|
44
44
|
console.log();
|
|
@@ -26,7 +26,7 @@ function ensureBackupDir() {
|
|
|
26
26
|
function generateBackupFilename(agentId, format) {
|
|
27
27
|
const timestamp = new Date().toISOString().replace(/[:.]/g, '-');
|
|
28
28
|
const ext = format === 'encrypted' ? 'backup' : 'json';
|
|
29
|
-
return `
|
|
29
|
+
return `agentvault-backup-${agentId}-${timestamp}.${ext}`;
|
|
30
30
|
}
|
|
31
31
|
/**
|
|
32
32
|
* Display wallet summary
|
|
@@ -63,7 +63,7 @@ function displaySignedTransaction(signedTx, chain) {
|
|
|
63
63
|
* Save signed transaction to file
|
|
64
64
|
*/
|
|
65
65
|
function saveSignedTransaction(signedTx, agentId, chain) {
|
|
66
|
-
const outputDir = path.join(process.cwd(), '.
|
|
66
|
+
const outputDir = path.join(process.cwd(), '.agentvault', 'signed-txs');
|
|
67
67
|
if (!fs.existsSync(outputDir)) {
|
|
68
68
|
fs.mkdirSync(outputDir, { recursive: true });
|
|
69
69
|
}
|
package/dist/cli/index.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* AgentVault CLI
|
|
4
4
|
*
|
|
5
|
-
* Command-line interface for the
|
|
5
|
+
* Command-line interface for the AgentVault platform.
|
|
6
6
|
*/
|
|
7
7
|
import { Command } from 'commander';
|
|
8
8
|
export declare function createProgram(): Command;
|
package/dist/cli/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
/**
|
|
3
|
-
*
|
|
3
|
+
* AgentVault CLI
|
|
4
4
|
*
|
|
5
|
-
* Command-line interface for the
|
|
5
|
+
* Command-line interface for the AgentVault platform.
|
|
6
6
|
*/
|
|
7
7
|
import { Command } from 'commander';
|
|
8
8
|
import { VERSION } from '../src/index.js';
|
|
@@ -42,7 +42,7 @@ import { cloudBackupCmd } from './commands/cloud-backup.js';
|
|
|
42
42
|
export function createProgram() {
|
|
43
43
|
const program = new Command();
|
|
44
44
|
program
|
|
45
|
-
.name('
|
|
45
|
+
.name('agentvault')
|
|
46
46
|
.description('Persistent On-Chain AI Agent Platform - Sovereign, Reconstructible, Autonomous')
|
|
47
47
|
.version(VERSION, '-v, --version', 'output the current version');
|
|
48
48
|
// Register commands
|