agentvault 1.0.2 → 1.0.5
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/CHANGELOG.md +69 -0
- package/README.md +66 -6
- package/dist/cli/commands/approve.d.ts.map +1 -0
- package/dist/cli/commands/approve.js +357 -1
- package/dist/cli/commands/approve.js.map +1 -0
- package/dist/cli/commands/archive.d.ts.map +1 -0
- package/dist/cli/commands/archive.js.map +1 -0
- package/dist/cli/commands/backup.d.ts.map +1 -0
- package/dist/cli/commands/backup.js +303 -20
- package/dist/cli/commands/backup.js.map +1 -0
- package/dist/cli/commands/cloud-backup.d.ts.map +1 -0
- package/dist/cli/commands/cloud-backup.js +17 -0
- package/dist/cli/commands/cloud-backup.js.map +1 -0
- package/dist/cli/commands/cron.d.ts +14 -0
- package/dist/cli/commands/cron.d.ts.map +1 -0
- package/dist/cli/commands/cron.js +144 -0
- package/dist/cli/commands/cron.js.map +1 -0
- package/dist/cli/commands/cycles.d.ts.map +1 -0
- package/dist/cli/commands/cycles.js.map +1 -0
- package/dist/cli/commands/decrypt.d.ts.map +1 -0
- package/dist/cli/commands/decrypt.js.map +1 -0
- package/dist/cli/commands/deploy.d.ts.map +1 -0
- package/dist/cli/commands/deploy.js.map +1 -0
- package/dist/cli/commands/exec.d.ts.map +1 -0
- package/dist/cli/commands/exec.js.map +1 -0
- package/dist/cli/commands/fetch.d.ts +3 -0
- package/dist/cli/commands/fetch.d.ts.map +1 -0
- package/dist/cli/commands/fetch.js +68 -4
- package/dist/cli/commands/fetch.js.map +1 -0
- package/dist/cli/commands/health.d.ts.map +1 -0
- package/dist/cli/commands/health.js +57 -2
- package/dist/cli/commands/health.js.map +1 -0
- package/dist/cli/commands/identity.d.ts.map +1 -0
- package/dist/cli/commands/identity.js.map +1 -0
- package/dist/cli/commands/inference.d.ts.map +1 -0
- package/dist/cli/commands/inference.js.map +1 -0
- package/dist/cli/commands/info.d.ts.map +1 -0
- package/dist/cli/commands/info.js.map +1 -0
- package/dist/cli/commands/init.d.ts +18 -1
- package/dist/cli/commands/init.d.ts.map +1 -0
- package/dist/cli/commands/init.js +152 -27
- package/dist/cli/commands/init.js.map +1 -0
- package/dist/cli/commands/instrument.d.ts.map +1 -0
- package/dist/cli/commands/instrument.js.map +1 -0
- package/dist/cli/commands/list.d.ts.map +1 -0
- package/dist/cli/commands/list.js.map +1 -0
- package/dist/cli/commands/logs.d.ts.map +1 -0
- package/dist/cli/commands/logs.js.map +1 -0
- package/dist/cli/commands/mcp.d.ts +4 -0
- package/dist/cli/commands/mcp.d.ts.map +1 -0
- package/dist/cli/commands/mcp.js +228 -0
- package/dist/cli/commands/mcp.js.map +1 -0
- package/dist/cli/commands/memory.d.ts +26 -0
- package/dist/cli/commands/memory.d.ts.map +1 -0
- package/dist/cli/commands/memory.js +509 -0
- package/dist/cli/commands/memory.js.map +1 -0
- package/dist/cli/commands/mint.d.ts +25 -0
- package/dist/cli/commands/mint.d.ts.map +1 -0
- package/dist/cli/commands/mint.js +276 -0
- package/dist/cli/commands/mint.js.map +1 -0
- package/dist/cli/commands/mirror.d.ts +19 -0
- package/dist/cli/commands/mirror.d.ts.map +1 -0
- package/dist/cli/commands/mirror.js +216 -0
- package/dist/cli/commands/mirror.js.map +1 -0
- package/dist/cli/commands/monitor.d.ts.map +1 -0
- package/dist/cli/commands/monitor.js.map +1 -0
- package/dist/cli/commands/network.d.ts.map +1 -0
- package/dist/cli/commands/network.js.map +1 -0
- package/dist/cli/commands/orchestrate.d.ts +35 -0
- package/dist/cli/commands/orchestrate.d.ts.map +1 -0
- package/dist/cli/commands/orchestrate.js +190 -0
- package/dist/cli/commands/orchestrate.js.map +1 -0
- package/dist/cli/commands/package.d.ts.map +1 -0
- package/dist/cli/commands/package.js.map +1 -0
- package/dist/cli/commands/pilot.d.ts +17 -0
- package/dist/cli/commands/pilot.d.ts.map +1 -0
- package/dist/cli/commands/pilot.js +490 -0
- package/dist/cli/commands/pilot.js.map +1 -0
- package/dist/cli/commands/polytician.d.ts +4 -0
- package/dist/cli/commands/polytician.d.ts.map +1 -0
- package/dist/cli/commands/polytician.js +229 -0
- package/dist/cli/commands/polytician.js.map +1 -0
- package/dist/cli/commands/profile.d.ts.map +1 -0
- package/dist/cli/commands/profile.js +1 -1
- package/dist/cli/commands/profile.js.map +1 -0
- package/dist/cli/commands/promote.d.ts.map +1 -0
- package/dist/cli/commands/promote.js.map +1 -0
- package/dist/cli/commands/rebase.d.ts +85 -0
- package/dist/cli/commands/rebase.d.ts.map +1 -0
- package/dist/cli/commands/rebase.js +175 -0
- package/dist/cli/commands/rebase.js.map +1 -0
- package/dist/cli/commands/rebuild.d.ts.map +1 -0
- package/dist/cli/commands/rebuild.js.map +1 -0
- package/dist/cli/commands/repo.d.ts +19 -0
- package/dist/cli/commands/repo.d.ts.map +1 -0
- package/dist/cli/commands/repo.js +187 -0
- package/dist/cli/commands/repo.js.map +1 -0
- package/dist/cli/commands/rollback.d.ts.map +1 -0
- package/dist/cli/commands/rollback.js.map +1 -0
- package/dist/cli/commands/safehouse.d.ts +11 -0
- package/dist/cli/commands/safehouse.d.ts.map +1 -0
- package/dist/cli/commands/safehouse.js +323 -0
- package/dist/cli/commands/safehouse.js.map +1 -0
- package/dist/cli/commands/show.d.ts.map +1 -0
- package/dist/cli/commands/show.js.map +1 -0
- package/dist/cli/commands/skills.d.ts +12 -0
- package/dist/cli/commands/skills.d.ts.map +1 -0
- package/dist/cli/commands/skills.js +248 -0
- package/dist/cli/commands/skills.js.map +1 -0
- package/dist/cli/commands/stats.d.ts.map +1 -0
- package/dist/cli/commands/stats.js +2 -2
- package/dist/cli/commands/stats.js.map +1 -0
- package/dist/cli/commands/status.d.ts +2 -0
- package/dist/cli/commands/status.d.ts.map +1 -0
- package/dist/cli/commands/status.js +25 -0
- package/dist/cli/commands/status.js.map +1 -0
- package/dist/cli/commands/test.d.ts.map +1 -0
- package/dist/cli/commands/test.js.map +1 -0
- package/dist/cli/commands/tokens.d.ts.map +1 -0
- package/dist/cli/commands/tokens.js.map +1 -0
- package/dist/cli/commands/trace.d.ts.map +1 -0
- package/dist/cli/commands/trace.js +3 -3
- package/dist/cli/commands/trace.js.map +1 -0
- package/dist/cli/commands/vault.d.ts +7 -0
- package/dist/cli/commands/vault.d.ts.map +1 -0
- package/dist/cli/commands/vault.js +551 -0
- package/dist/cli/commands/vault.js.map +1 -0
- package/dist/cli/commands/wallet-export.d.ts.map +1 -0
- package/dist/cli/commands/wallet-export.js.map +1 -0
- package/dist/cli/commands/wallet-history.d.ts.map +1 -0
- package/dist/cli/commands/wallet-history.js +2 -26
- package/dist/cli/commands/wallet-history.js.map +1 -0
- package/dist/cli/commands/wallet-import.d.ts.map +1 -0
- package/dist/cli/commands/wallet-import.js.map +1 -0
- package/dist/cli/commands/wallet-multi-send.d.ts.map +1 -0
- package/dist/cli/commands/wallet-multi-send.js.map +1 -0
- package/dist/cli/commands/wallet-process-queue.d.ts.map +1 -0
- package/dist/cli/commands/wallet-process-queue.js +2 -23
- package/dist/cli/commands/wallet-process-queue.js.map +1 -0
- package/dist/cli/commands/wallet-sign.d.ts.map +1 -0
- package/dist/cli/commands/wallet-sign.js +2 -26
- package/dist/cli/commands/wallet-sign.js.map +1 -0
- package/dist/cli/commands/wallet.d.ts +61 -0
- package/dist/cli/commands/wallet.d.ts.map +1 -0
- package/dist/cli/commands/wallet.js +312 -42
- package/dist/cli/commands/wallet.js.map +1 -0
- package/dist/cli/commands/wiki.d.ts +29 -0
- package/dist/cli/commands/wiki.d.ts.map +1 -0
- package/dist/cli/commands/wiki.js +528 -0
- package/dist/cli/commands/wiki.js.map +1 -0
- package/dist/cli/index.d.ts.map +1 -0
- package/dist/cli/index.js +74 -2
- package/dist/cli/index.js.map +1 -0
- package/dist/cli/merge.d.ts +70 -0
- package/dist/cli/merge.d.ts.map +1 -0
- package/dist/cli/merge.js +232 -0
- package/dist/cli/merge.js.map +1 -0
- package/dist/src/archival/archive-manager.d.ts +4 -0
- package/dist/src/archival/archive-manager.d.ts.map +1 -0
- package/dist/src/archival/archive-manager.js +6 -0
- package/dist/src/archival/archive-manager.js.map +1 -0
- package/dist/src/archival/arweave-archiver.d.ts +173 -0
- package/dist/src/archival/arweave-archiver.d.ts.map +1 -0
- package/dist/src/archival/arweave-archiver.js +279 -0
- package/dist/src/archival/arweave-archiver.js.map +1 -0
- package/dist/src/archival/arweave-client.d.ts +1 -0
- package/dist/src/archival/arweave-client.d.ts.map +1 -0
- package/dist/src/archival/arweave-client.js +5 -2
- package/dist/src/archival/arweave-client.js.map +1 -0
- package/dist/src/archival/index.d.ts +4 -1
- package/dist/src/archival/index.d.ts.map +1 -0
- package/dist/src/archival/index.js +2 -1
- package/dist/src/archival/index.js.map +1 -0
- package/dist/src/backbone/constants.d.ts +30 -0
- package/dist/src/backbone/constants.d.ts.map +1 -0
- package/dist/src/backbone/constants.js +62 -0
- package/dist/src/backbone/constants.js.map +1 -0
- package/dist/src/backbone/index.d.ts +15 -0
- package/dist/src/backbone/index.d.ts.map +1 -0
- package/dist/src/backbone/index.js +18 -0
- package/dist/src/backbone/index.js.map +1 -0
- package/dist/src/backbone/services/communication.d.ts +42 -0
- package/dist/src/backbone/services/communication.d.ts.map +1 -0
- package/dist/src/backbone/services/communication.js +107 -0
- package/dist/src/backbone/services/communication.js.map +1 -0
- package/dist/src/backbone/services/consensus.d.ts +61 -0
- package/dist/src/backbone/services/consensus.d.ts.map +1 -0
- package/dist/src/backbone/services/consensus.js +210 -0
- package/dist/src/backbone/services/consensus.js.map +1 -0
- package/dist/src/backbone/services/index.d.ts +10 -0
- package/dist/src/backbone/services/index.d.ts.map +1 -0
- package/dist/src/backbone/services/index.js +6 -0
- package/dist/src/backbone/services/index.js.map +1 -0
- package/dist/src/backbone/services/knowledge.d.ts +44 -0
- package/dist/src/backbone/services/knowledge.d.ts.map +1 -0
- package/dist/src/backbone/services/knowledge.js +99 -0
- package/dist/src/backbone/services/knowledge.js.map +1 -0
- package/dist/src/backbone/services/memory.d.ts +36 -0
- package/dist/src/backbone/services/memory.d.ts.map +1 -0
- package/dist/src/backbone/services/memory.js +94 -0
- package/dist/src/backbone/services/memory.js.map +1 -0
- package/dist/src/backbone/services/vault-health.d.ts +18 -0
- package/dist/src/backbone/services/vault-health.d.ts.map +1 -0
- package/dist/src/backbone/services/vault-health.js +74 -0
- package/dist/src/backbone/services/vault-health.js.map +1 -0
- package/dist/src/backbone/types.d.ts +211 -0
- package/dist/src/backbone/types.d.ts.map +1 -0
- package/dist/src/backbone/types.js +8 -0
- package/dist/src/backbone/types.js.map +1 -0
- package/dist/src/backbone/validators.d.ts +211 -0
- package/dist/src/backbone/validators.d.ts.map +1 -0
- package/dist/src/backbone/validators.js +122 -0
- package/dist/src/backbone/validators.js.map +1 -0
- package/dist/src/backup/backup.d.ts +107 -1
- package/dist/src/backup/backup.d.ts.map +1 -0
- package/dist/src/backup/backup.js +413 -4
- package/dist/src/backup/backup.js.map +1 -0
- package/dist/src/backup/index.d.ts +3 -1
- package/dist/src/backup/index.d.ts.map +1 -0
- package/dist/src/backup/index.js +3 -1
- package/dist/src/backup/index.js.map +1 -0
- package/dist/src/backup/merkle.d.ts +44 -0
- package/dist/src/backup/merkle.d.ts.map +1 -0
- package/dist/src/backup/merkle.js +85 -0
- package/dist/src/backup/merkle.js.map +1 -0
- package/dist/src/backup/thoughtform-bundle.d.ts +42 -0
- package/dist/src/backup/thoughtform-bundle.d.ts.map +1 -0
- package/dist/src/backup/thoughtform-bundle.js +200 -0
- package/dist/src/backup/thoughtform-bundle.js.map +1 -0
- package/dist/src/canister/actor.d.ts +310 -0
- package/dist/src/canister/actor.d.ts.map +1 -0
- package/dist/src/canister/actor.idl.d.ts +8 -0
- package/dist/src/canister/actor.idl.d.ts.map +1 -0
- package/dist/src/canister/actor.idl.js +518 -0
- package/dist/src/canister/actor.idl.js.map +1 -0
- package/dist/src/canister/actor.js +51 -0
- package/dist/src/canister/actor.js.map +1 -0
- package/dist/src/canister/encryption.d.ts +158 -0
- package/dist/src/canister/encryption.d.ts.map +1 -0
- package/dist/src/canister/encryption.js +296 -0
- package/dist/src/canister/encryption.js.map +1 -0
- package/dist/src/canister/memory-repo-actor.d.ts +162 -0
- package/dist/src/canister/memory-repo-actor.d.ts.map +1 -0
- package/dist/src/canister/memory-repo-actor.idl.d.ts +8 -0
- package/dist/src/canister/memory-repo-actor.idl.d.ts.map +1 -0
- package/dist/src/canister/memory-repo-actor.idl.js +90 -0
- package/dist/src/canister/memory-repo-actor.idl.js.map +1 -0
- package/dist/src/canister/memory-repo-actor.js +69 -0
- package/dist/src/canister/memory-repo-actor.js.map +1 -0
- package/dist/src/canister/types.d.ts +54 -0
- package/dist/src/canister/types.d.ts.map +1 -0
- package/dist/src/canister/types.js +7 -0
- package/dist/src/canister/types.js.map +1 -0
- package/dist/src/cloud-storage/cloud-sync.d.ts.map +1 -0
- package/dist/src/cloud-storage/cloud-sync.js +10 -5
- package/dist/src/cloud-storage/cloud-sync.js.map +1 -0
- package/dist/src/cloud-storage/index.d.ts.map +1 -0
- package/dist/src/cloud-storage/index.js.map +1 -0
- package/dist/src/cloud-storage/provider-detector.d.ts.map +1 -0
- package/dist/src/cloud-storage/provider-detector.js.map +1 -0
- package/dist/src/cloud-storage/types.d.ts +5 -0
- package/dist/src/cloud-storage/types.d.ts.map +1 -0
- package/dist/src/cloud-storage/types.js.map +1 -0
- package/dist/src/debugging/debug-logger.d.ts +8 -0
- package/dist/src/debugging/debug-logger.d.ts.map +1 -0
- package/dist/src/debugging/debug-logger.js +11 -0
- package/dist/src/debugging/debug-logger.js.map +1 -0
- package/dist/src/debugging/index.d.ts +1 -0
- package/dist/src/debugging/index.d.ts.map +1 -0
- package/dist/src/debugging/index.js +1 -0
- package/dist/src/debugging/index.js.map +1 -0
- package/dist/src/debugging/logs.d.ts.map +1 -0
- package/dist/src/debugging/logs.js.map +1 -0
- package/dist/src/debugging/types.d.ts.map +1 -0
- package/dist/src/debugging/types.js.map +1 -0
- package/dist/src/deployment/deployer.d.ts.map +1 -0
- package/dist/src/deployment/deployer.js +133 -1
- package/dist/src/deployment/deployer.js.map +1 -0
- package/dist/src/deployment/icpClient.d.ts.map +1 -0
- package/dist/src/deployment/icpClient.js +4 -0
- package/dist/src/deployment/icpClient.js.map +1 -0
- package/dist/src/deployment/index.d.ts.map +1 -0
- package/dist/src/deployment/index.js.map +1 -0
- package/dist/src/deployment/promotion.d.ts.map +1 -0
- package/dist/src/deployment/promotion.js.map +1 -0
- package/dist/src/deployment/types.d.ts +2 -1
- package/dist/src/deployment/types.d.ts.map +1 -0
- package/dist/src/deployment/types.js.map +1 -0
- package/dist/src/fault-tolerance/backup-status.d.ts +31 -0
- package/dist/src/fault-tolerance/backup-status.d.ts.map +1 -0
- package/dist/src/fault-tolerance/backup-status.js +76 -0
- package/dist/src/fault-tolerance/backup-status.js.map +1 -0
- package/dist/src/fault-tolerance/cron-check.d.ts +66 -0
- package/dist/src/fault-tolerance/cron-check.d.ts.map +1 -0
- package/dist/src/fault-tolerance/cron-check.js +177 -0
- package/dist/src/fault-tolerance/cron-check.js.map +1 -0
- package/dist/src/fault-tolerance/index.d.ts +12 -0
- package/dist/src/fault-tolerance/index.d.ts.map +1 -0
- package/dist/src/fault-tolerance/index.js +12 -0
- package/dist/src/fault-tolerance/index.js.map +1 -0
- package/dist/src/fault-tolerance/mirror-sync.d.ts +61 -0
- package/dist/src/fault-tolerance/mirror-sync.d.ts.map +1 -0
- package/dist/src/fault-tolerance/mirror-sync.js +203 -0
- package/dist/src/fault-tolerance/mirror-sync.js.map +1 -0
- package/dist/src/icp/batch.d.ts.map +1 -0
- package/dist/src/icp/batch.js +10 -4
- package/dist/src/icp/batch.js.map +1 -0
- package/dist/src/icp/cycles.d.ts.map +1 -0
- package/dist/src/icp/cycles.js.map +1 -0
- package/dist/src/icp/environment.d.ts.map +1 -0
- package/dist/src/icp/environment.js.map +1 -0
- package/dist/src/icp/icpcli.d.ts.map +1 -0
- package/dist/src/icp/icpcli.js.map +1 -0
- package/dist/src/icp/icwasm.d.ts.map +1 -0
- package/dist/src/icp/icwasm.js.map +1 -0
- package/dist/src/icp/identity.d.ts.map +1 -0
- package/dist/src/icp/identity.js.map +1 -0
- package/dist/src/icp/index.d.ts.map +1 -0
- package/dist/src/icp/index.js.map +1 -0
- package/dist/src/icp/optimization.d.ts.map +1 -0
- package/dist/src/icp/optimization.js.map +1 -0
- package/dist/src/icp/tokens.d.ts.map +1 -0
- package/dist/src/icp/tokens.js.map +1 -0
- package/dist/src/icp/tool-detector.d.ts.map +1 -0
- package/dist/src/icp/tool-detector.js +19 -5
- package/dist/src/icp/tool-detector.js.map +1 -0
- package/dist/src/icp/types.d.ts.map +1 -0
- package/dist/src/icp/types.js.map +1 -0
- package/dist/src/index.d.ts +1 -1
- package/dist/src/index.d.ts.map +1 -0
- package/dist/src/index.js +22 -1
- package/dist/src/index.js.map +1 -0
- package/dist/src/inference/bittensor-client.d.ts +54 -1
- package/dist/src/inference/bittensor-client.d.ts.map +1 -0
- package/dist/src/inference/bittensor-client.js +96 -3
- package/dist/src/inference/bittensor-client.js.map +1 -0
- package/dist/src/inference/fallback-chain.d.ts +90 -0
- package/dist/src/inference/fallback-chain.d.ts.map +1 -0
- package/dist/src/inference/fallback-chain.js +219 -0
- package/dist/src/inference/fallback-chain.js.map +1 -0
- package/dist/src/inference/index.d.ts +6 -1
- package/dist/src/inference/index.d.ts.map +1 -0
- package/dist/src/inference/index.js +6 -1
- package/dist/src/inference/index.js.map +1 -0
- package/dist/src/inference/inference-manager.d.ts.map +1 -0
- package/dist/src/inference/inference-manager.js.map +1 -0
- package/dist/src/inference/local-model-client.d.ts +46 -0
- package/dist/src/inference/local-model-client.d.ts.map +1 -0
- package/dist/src/inference/local-model-client.js +92 -0
- package/dist/src/inference/local-model-client.js.map +1 -0
- package/dist/src/inference/secure-inference.d.ts +105 -0
- package/dist/src/inference/secure-inference.d.ts.map +1 -0
- package/dist/src/inference/secure-inference.js +237 -0
- package/dist/src/inference/secure-inference.js.map +1 -0
- package/dist/src/inference/venice-client.d.ts +149 -0
- package/dist/src/inference/venice-client.d.ts.map +1 -0
- package/dist/src/inference/venice-client.js +333 -0
- package/dist/src/inference/venice-client.js.map +1 -0
- package/dist/src/metrics/index.d.ts.map +1 -0
- package/dist/src/metrics/index.js.map +1 -0
- package/dist/src/metrics/metrics.d.ts.map +1 -0
- package/dist/src/metrics/metrics.js.map +1 -0
- package/dist/src/mint/google-adk.d.ts +19 -0
- package/dist/src/mint/google-adk.d.ts.map +1 -0
- package/dist/src/mint/google-adk.js +180 -0
- package/dist/src/mint/google-adk.js.map +1 -0
- package/dist/src/monitoring/alerting.d.ts.map +1 -0
- package/dist/src/monitoring/alerting.js.map +1 -0
- package/dist/src/monitoring/health.d.ts +9 -1
- package/dist/src/monitoring/health.d.ts.map +1 -0
- package/dist/src/monitoring/health.js +63 -0
- package/dist/src/monitoring/health.js.map +1 -0
- package/dist/src/monitoring/index.d.ts +2 -2
- package/dist/src/monitoring/index.d.ts.map +1 -0
- package/dist/src/monitoring/index.js +1 -1
- package/dist/src/monitoring/index.js.map +1 -0
- package/dist/src/monitoring/info.d.ts.map +1 -0
- package/dist/src/monitoring/info.js.map +1 -0
- package/dist/src/monitoring/types.d.ts +26 -0
- package/dist/src/monitoring/types.d.ts.map +1 -0
- package/dist/src/monitoring/types.js.map +1 -0
- package/dist/src/network/index.d.ts.map +1 -0
- package/dist/src/network/index.js.map +1 -0
- package/dist/src/network/network-config.d.ts.map +1 -0
- package/dist/src/network/network-config.js.map +1 -0
- package/dist/src/orchestration/claude.d.ts +125 -0
- package/dist/src/orchestration/claude.d.ts.map +1 -0
- package/dist/src/orchestration/claude.js +639 -0
- package/dist/src/orchestration/claude.js.map +1 -0
- package/dist/src/orchestration/google-adk.d.ts +77 -0
- package/dist/src/orchestration/google-adk.d.ts.map +1 -0
- package/dist/src/orchestration/google-adk.js +659 -0
- package/dist/src/orchestration/google-adk.js.map +1 -0
- package/dist/src/orchestration/mcp-client.d.ts +47 -0
- package/dist/src/orchestration/mcp-client.d.ts.map +1 -0
- package/dist/src/orchestration/mcp-client.js +179 -0
- package/dist/src/orchestration/mcp-client.js.map +1 -0
- package/dist/src/orchestration/polytician-enricher.d.ts +21 -0
- package/dist/src/orchestration/polytician-enricher.d.ts.map +1 -0
- package/dist/src/orchestration/polytician-enricher.js +131 -0
- package/dist/src/orchestration/polytician-enricher.js.map +1 -0
- package/dist/src/orchestration/smallchat-bridge.d.ts +121 -0
- package/dist/src/orchestration/smallchat-bridge.d.ts.map +1 -0
- package/dist/src/orchestration/smallchat-bridge.js +331 -0
- package/dist/src/orchestration/smallchat-bridge.js.map +1 -0
- package/dist/src/orchestration/smallchat-compression.d.ts +100 -0
- package/dist/src/orchestration/smallchat-compression.d.ts.map +1 -0
- package/dist/src/orchestration/smallchat-compression.js +203 -0
- package/dist/src/orchestration/smallchat-compression.js.map +1 -0
- package/dist/src/orchestration/smallchat-policy.d.ts +158 -0
- package/dist/src/orchestration/smallchat-policy.d.ts.map +1 -0
- package/dist/src/orchestration/smallchat-policy.js +314 -0
- package/dist/src/orchestration/smallchat-policy.js.map +1 -0
- package/dist/src/orchestration/smallchat-tools.d.ts +69 -0
- package/dist/src/orchestration/smallchat-tools.d.ts.map +1 -0
- package/dist/src/orchestration/smallchat-tools.js +501 -0
- package/dist/src/orchestration/smallchat-tools.js.map +1 -0
- package/dist/src/packaging/compiler.d.ts.map +1 -0
- package/dist/src/packaging/compiler.js.map +1 -0
- package/dist/src/packaging/config-persistence.d.ts.map +1 -0
- package/dist/src/packaging/config-persistence.js.map +1 -0
- package/dist/src/packaging/config-schemas.d.ts +44 -2
- package/dist/src/packaging/config-schemas.d.ts.map +1 -0
- package/dist/src/packaging/config-schemas.js +19 -0
- package/dist/src/packaging/config-schemas.js.map +1 -0
- package/dist/src/packaging/detector.d.ts.map +1 -0
- package/dist/src/packaging/detector.js +15 -1
- package/dist/src/packaging/detector.js.map +1 -0
- package/dist/src/packaging/index.d.ts +11 -5
- package/dist/src/packaging/index.d.ts.map +1 -0
- package/dist/src/packaging/index.js +10 -4
- package/dist/src/packaging/index.js.map +1 -0
- package/dist/src/packaging/packager.d.ts.map +1 -0
- package/dist/src/packaging/packager.js.map +1 -0
- package/dist/src/packaging/parsers/clawdbot.d.ts +1 -1
- package/dist/src/packaging/parsers/clawdbot.d.ts.map +1 -0
- package/dist/src/packaging/parsers/clawdbot.js +26 -28
- package/dist/src/packaging/parsers/clawdbot.js.map +1 -0
- package/dist/src/packaging/parsers/cline.d.ts.map +1 -0
- package/dist/src/packaging/parsers/cline.js.map +1 -0
- package/dist/src/packaging/parsers/generic.d.ts +1 -1
- package/dist/src/packaging/parsers/generic.d.ts.map +1 -0
- package/dist/src/packaging/parsers/generic.js +13 -20
- package/dist/src/packaging/parsers/generic.js.map +1 -0
- package/dist/src/packaging/parsers/goose.d.ts.map +1 -0
- package/dist/src/packaging/parsers/goose.js.map +1 -0
- package/dist/src/packaging/parsers/index.d.ts +2 -0
- package/dist/src/packaging/parsers/index.d.ts.map +1 -0
- package/dist/src/packaging/parsers/index.js +2 -0
- package/dist/src/packaging/parsers/index.js.map +1 -0
- package/dist/src/packaging/parsers/nemoclaw.d.ts +4 -0
- package/dist/src/packaging/parsers/nemoclaw.d.ts.map +1 -0
- package/dist/src/packaging/parsers/nemoclaw.js +145 -0
- package/dist/src/packaging/parsers/nemoclaw.js.map +1 -0
- package/dist/src/packaging/parsers/polytician.d.ts +4 -0
- package/dist/src/packaging/parsers/polytician.d.ts.map +1 -0
- package/dist/src/packaging/parsers/polytician.js +121 -0
- package/dist/src/packaging/parsers/polytician.js.map +1 -0
- package/dist/src/packaging/serializer.d.ts +7 -1
- package/dist/src/packaging/serializer.d.ts.map +1 -0
- package/dist/src/packaging/serializer.js +14 -3
- package/dist/src/packaging/serializer.js.map +1 -0
- package/dist/src/packaging/serializers/index.d.ts +3 -0
- package/dist/src/packaging/serializers/index.d.ts.map +1 -0
- package/dist/src/packaging/serializers/index.js +2 -0
- package/dist/src/packaging/serializers/index.js.map +1 -0
- package/dist/src/packaging/serializers/thoughtform.d.ts +89 -0
- package/dist/src/packaging/serializers/thoughtform.d.ts.map +1 -0
- package/dist/src/packaging/serializers/thoughtform.js +84 -0
- package/dist/src/packaging/serializers/thoughtform.js.map +1 -0
- package/dist/src/packaging/state-format.d.ts +332 -0
- package/dist/src/packaging/state-format.d.ts.map +1 -0
- package/dist/src/packaging/state-format.js +602 -0
- package/dist/src/packaging/state-format.js.map +1 -0
- package/dist/src/packaging/types.d.ts +2 -2
- package/dist/src/packaging/types.d.ts.map +1 -0
- package/dist/src/packaging/types.js.map +1 -0
- package/dist/src/packaging/wasm-compiler.d.ts +160 -0
- package/dist/src/packaging/wasm-compiler.d.ts.map +1 -0
- package/dist/src/packaging/wasm-compiler.js +662 -0
- package/dist/src/packaging/wasm-compiler.js.map +1 -0
- package/dist/src/packaging/wasmedge-compiler.d.ts.map +1 -0
- package/dist/src/packaging/wasmedge-compiler.js +6 -4
- package/dist/src/packaging/wasmedge-compiler.js.map +1 -0
- package/dist/src/pilot/air-gap.d.ts +51 -0
- package/dist/src/pilot/air-gap.d.ts.map +1 -0
- package/dist/src/pilot/air-gap.js +118 -0
- package/dist/src/pilot/air-gap.js.map +1 -0
- package/dist/src/pilot/index.d.ts +14 -0
- package/dist/src/pilot/index.d.ts.map +1 -0
- package/dist/src/pilot/index.js +16 -0
- package/dist/src/pilot/index.js.map +1 -0
- package/dist/src/pilot/private-replica.d.ts +67 -0
- package/dist/src/pilot/private-replica.d.ts.map +1 -0
- package/dist/src/pilot/private-replica.js +429 -0
- package/dist/src/pilot/private-replica.js.map +1 -0
- package/dist/src/pilot/proxy-config.d.ts +36 -0
- package/dist/src/pilot/proxy-config.d.ts.map +1 -0
- package/dist/src/pilot/proxy-config.js +96 -0
- package/dist/src/pilot/proxy-config.js.map +1 -0
- package/dist/src/pilot/types.d.ts +181 -0
- package/dist/src/pilot/types.d.ts.map +1 -0
- package/dist/src/pilot/types.js +7 -0
- package/dist/src/pilot/types.js.map +1 -0
- package/dist/src/security/icp-audit.d.ts +63 -0
- package/dist/src/security/icp-audit.d.ts.map +1 -0
- package/dist/src/security/icp-audit.js +234 -0
- package/dist/src/security/icp-audit.js.map +1 -0
- package/dist/src/security/index.d.ts +7 -1
- package/dist/src/security/index.d.ts.map +1 -0
- package/dist/src/security/index.js +12 -2
- package/dist/src/security/index.js.map +1 -0
- package/dist/src/security/mfa-approval.d.ts +219 -0
- package/dist/src/security/mfa-approval.d.ts.map +1 -0
- package/dist/src/security/mfa-approval.js +668 -0
- package/dist/src/security/mfa-approval.js.map +1 -0
- package/dist/src/security/multisig.d.ts.map +1 -0
- package/dist/src/security/multisig.js.map +1 -0
- package/dist/src/security/totp.d.ts +67 -0
- package/dist/src/security/totp.d.ts.map +1 -0
- package/dist/src/security/totp.js +148 -0
- package/dist/src/security/totp.js.map +1 -0
- package/dist/src/security/types.d.ts +7 -2
- package/dist/src/security/types.d.ts.map +1 -0
- package/dist/src/security/types.js +14 -14
- package/dist/src/security/types.js.map +1 -0
- package/dist/src/security/vetkeys.d.ts +43 -0
- package/dist/src/security/vetkeys.d.ts.map +1 -0
- package/dist/src/security/vetkeys.js +144 -15
- package/dist/src/security/vetkeys.js.map +1 -0
- package/dist/src/security/webauthn.d.ts +127 -0
- package/dist/src/security/webauthn.d.ts.map +1 -0
- package/dist/src/security/webauthn.js +246 -0
- package/dist/src/security/webauthn.js.map +1 -0
- package/dist/src/testing/index.d.ts.map +1 -0
- package/dist/src/testing/index.js.map +1 -0
- package/dist/src/testing/local-runner.d.ts.map +1 -0
- package/dist/src/testing/local-runner.js.map +1 -0
- package/dist/src/testing/types.d.ts.map +1 -0
- package/dist/src/testing/types.js.map +1 -0
- package/dist/src/trading/api-key-manager.d.ts +96 -0
- package/dist/src/trading/api-key-manager.d.ts.map +1 -0
- package/dist/src/trading/api-key-manager.js +201 -0
- package/dist/src/trading/api-key-manager.js.map +1 -0
- package/dist/src/trading/consensus.d.ts +171 -0
- package/dist/src/trading/consensus.d.ts.map +1 -0
- package/dist/src/trading/consensus.js +291 -0
- package/dist/src/trading/consensus.js.map +1 -0
- package/dist/src/trading/index.d.ts +19 -0
- package/dist/src/trading/index.d.ts.map +1 -0
- package/dist/src/trading/index.js +15 -0
- package/dist/src/trading/index.js.map +1 -0
- package/dist/src/trading/ip-whitelist.d.ts +70 -0
- package/dist/src/trading/ip-whitelist.d.ts.map +1 -0
- package/dist/src/trading/ip-whitelist.js +239 -0
- package/dist/src/trading/ip-whitelist.js.map +1 -0
- package/dist/src/trading/skill-sandbox.d.ts +88 -0
- package/dist/src/trading/skill-sandbox.d.ts.map +1 -0
- package/dist/src/trading/skill-sandbox.js +175 -0
- package/dist/src/trading/skill-sandbox.js.map +1 -0
- package/dist/src/utils/path-validation.d.ts +34 -0
- package/dist/src/utils/path-validation.d.ts.map +1 -0
- package/dist/src/utils/path-validation.js +88 -0
- package/dist/src/utils/path-validation.js.map +1 -0
- package/dist/src/vault/bitwarden.d.ts +51 -0
- package/dist/src/vault/bitwarden.d.ts.map +1 -0
- package/dist/src/vault/bitwarden.js +172 -0
- package/dist/src/vault/bitwarden.js.map +1 -0
- package/dist/src/vault/client.d.ts +44 -0
- package/dist/src/vault/client.d.ts.map +1 -0
- package/dist/src/vault/client.js +523 -0
- package/dist/src/vault/client.js.map +1 -0
- package/dist/src/vault/config.d.ts +68 -0
- package/dist/src/vault/config.d.ts.map +1 -0
- package/dist/src/vault/config.js +265 -0
- package/dist/src/vault/config.js.map +1 -0
- package/dist/src/vault/encrypted-memory-store.d.ts +80 -0
- package/dist/src/vault/encrypted-memory-store.d.ts.map +1 -0
- package/dist/src/vault/encrypted-memory-store.js +175 -0
- package/dist/src/vault/encrypted-memory-store.js.map +1 -0
- package/dist/src/vault/hashicorp-provider.d.ts +22 -0
- package/dist/src/vault/hashicorp-provider.d.ts.map +1 -0
- package/dist/src/vault/hashicorp-provider.js +63 -0
- package/dist/src/vault/hashicorp-provider.js.map +1 -0
- package/dist/src/vault/index.d.ts +40 -0
- package/dist/src/vault/index.d.ts.map +1 -0
- package/dist/src/vault/index.js +38 -0
- package/dist/src/vault/index.js.map +1 -0
- package/dist/src/vault/memory-provider.d.ts +26 -0
- package/dist/src/vault/memory-provider.d.ts.map +1 -0
- package/dist/src/vault/memory-provider.js +42 -0
- package/dist/src/vault/memory-provider.js.map +1 -0
- package/dist/src/vault/provider.d.ts +68 -0
- package/dist/src/vault/provider.d.ts.map +1 -0
- package/dist/src/vault/provider.js +50 -0
- package/dist/src/vault/provider.js.map +1 -0
- package/dist/src/vault/safehouse-types.d.ts +204 -0
- package/dist/src/vault/safehouse-types.d.ts.map +1 -0
- package/dist/src/vault/safehouse-types.js +9 -0
- package/dist/src/vault/safehouse-types.js.map +1 -0
- package/dist/src/vault/secret-audit.d.ts +91 -0
- package/dist/src/vault/secret-audit.d.ts.map +1 -0
- package/dist/src/vault/secret-audit.js +224 -0
- package/dist/src/vault/secret-audit.js.map +1 -0
- package/dist/src/vault/secret-injector.d.ts +62 -0
- package/dist/src/vault/secret-injector.d.ts.map +1 -0
- package/dist/src/vault/secret-injector.js +237 -0
- package/dist/src/vault/secret-injector.js.map +1 -0
- package/dist/src/vault/secret-leak-detector.d.ts +94 -0
- package/dist/src/vault/secret-leak-detector.d.ts.map +1 -0
- package/dist/src/vault/secret-leak-detector.js +218 -0
- package/dist/src/vault/secret-leak-detector.js.map +1 -0
- package/dist/src/vault/secret-management-layer.d.ts +139 -0
- package/dist/src/vault/secret-management-layer.d.ts.map +1 -0
- package/dist/src/vault/secret-management-layer.js +366 -0
- package/dist/src/vault/secret-management-layer.js.map +1 -0
- package/dist/src/vault/secret-rotation.d.ts +54 -0
- package/dist/src/vault/secret-rotation.d.ts.map +1 -0
- package/dist/src/vault/secret-rotation.js +156 -0
- package/dist/src/vault/secret-rotation.js.map +1 -0
- package/dist/src/vault/secret-sandbox.d.ts +94 -0
- package/dist/src/vault/secret-sandbox.d.ts.map +1 -0
- package/dist/src/vault/secret-sandbox.js +232 -0
- package/dist/src/vault/secret-sandbox.js.map +1 -0
- package/dist/src/vault/types.d.ts +148 -0
- package/dist/src/vault/types.d.ts.map +1 -0
- package/dist/src/vault/types.js +7 -0
- package/dist/src/vault/types.js.map +1 -0
- package/dist/src/wallet/cbor-serializer.d.ts.map +1 -0
- package/dist/src/wallet/cbor-serializer.js +7 -2
- package/dist/src/wallet/cbor-serializer.js.map +1 -0
- package/dist/src/wallet/chain-dispatcher.d.ts +1 -1
- package/dist/src/wallet/chain-dispatcher.d.ts.map +1 -0
- package/dist/src/wallet/chain-dispatcher.js +8 -19
- package/dist/src/wallet/chain-dispatcher.js.map +1 -0
- package/dist/src/wallet/cross-chain-aggregator.d.ts.map +1 -0
- package/dist/src/wallet/cross-chain-aggregator.js.map +1 -0
- package/dist/src/wallet/hsm/index.d.ts +39 -0
- package/dist/src/wallet/hsm/index.d.ts.map +1 -0
- package/dist/src/wallet/hsm/index.js +60 -0
- package/dist/src/wallet/hsm/index.js.map +1 -0
- package/dist/src/wallet/hsm/ledger-provider.d.ts +75 -0
- package/dist/src/wallet/hsm/ledger-provider.d.ts.map +1 -0
- package/dist/src/wallet/hsm/ledger-provider.js +272 -0
- package/dist/src/wallet/hsm/ledger-provider.js.map +1 -0
- package/dist/src/wallet/hsm/sgx-provider.d.ts +83 -0
- package/dist/src/wallet/hsm/sgx-provider.d.ts.map +1 -0
- package/dist/src/wallet/hsm/sgx-provider.js +281 -0
- package/dist/src/wallet/hsm/sgx-provider.js.map +1 -0
- package/dist/src/wallet/hsm/types.d.ts +134 -0
- package/dist/src/wallet/hsm/types.d.ts.map +1 -0
- package/dist/src/wallet/hsm/types.js +46 -0
- package/dist/src/wallet/hsm/types.js.map +1 -0
- package/dist/src/wallet/index.d.ts +8 -2
- package/dist/src/wallet/index.d.ts.map +1 -0
- package/dist/src/wallet/index.js +9 -2
- package/dist/src/wallet/index.js.map +1 -0
- package/dist/src/wallet/key-derivation.d.ts +29 -1
- package/dist/src/wallet/key-derivation.d.ts.map +1 -0
- package/dist/src/wallet/key-derivation.js +106 -23
- package/dist/src/wallet/key-derivation.js.map +1 -0
- package/dist/src/wallet/providers/arweave-provider.d.ts +34 -0
- package/dist/src/wallet/providers/arweave-provider.d.ts.map +1 -0
- package/dist/src/wallet/providers/arweave-provider.js +126 -0
- package/dist/src/wallet/providers/arweave-provider.js.map +1 -0
- package/dist/src/wallet/providers/base-provider.d.ts.map +1 -0
- package/dist/src/wallet/providers/base-provider.js.map +1 -0
- package/dist/src/wallet/providers/cketh-provider.d.ts.map +1 -0
- package/dist/src/wallet/providers/cketh-provider.js.map +1 -0
- package/dist/src/wallet/providers/icp-provider.d.ts +34 -0
- package/dist/src/wallet/providers/icp-provider.d.ts.map +1 -0
- package/dist/src/wallet/providers/icp-provider.js +114 -0
- package/dist/src/wallet/providers/icp-provider.js.map +1 -0
- package/dist/src/wallet/providers/polkadot-provider.d.ts.map +1 -0
- package/dist/src/wallet/providers/polkadot-provider.js +5 -6
- package/dist/src/wallet/providers/polkadot-provider.js.map +1 -0
- package/dist/src/wallet/providers/provider-factory.d.ts +23 -0
- package/dist/src/wallet/providers/provider-factory.d.ts.map +1 -0
- package/dist/src/wallet/providers/provider-factory.js +74 -0
- package/dist/src/wallet/providers/provider-factory.js.map +1 -0
- package/dist/src/wallet/providers/solana-provider.d.ts.map +1 -0
- package/dist/src/wallet/providers/solana-provider.js +6 -7
- package/dist/src/wallet/providers/solana-provider.js.map +1 -0
- package/dist/src/wallet/secure-wallet.d.ts +132 -0
- package/dist/src/wallet/secure-wallet.d.ts.map +1 -0
- package/dist/src/wallet/secure-wallet.js +298 -0
- package/dist/src/wallet/secure-wallet.js.map +1 -0
- package/dist/src/wallet/transaction-queue.d.ts.map +1 -0
- package/dist/src/wallet/transaction-queue.js.map +1 -0
- package/dist/src/wallet/types.d.ts +57 -2
- package/dist/src/wallet/types.d.ts.map +1 -0
- package/dist/src/wallet/types.js.map +1 -0
- package/dist/src/wallet/vetkeys-adapter.d.ts.map +1 -0
- package/dist/src/wallet/vetkeys-adapter.js +16 -25
- package/dist/src/wallet/vetkeys-adapter.js.map +1 -0
- package/dist/src/wallet/wallet-crypto.d.ts +101 -0
- package/dist/src/wallet/wallet-crypto.d.ts.map +1 -0
- package/dist/src/wallet/wallet-crypto.js +185 -0
- package/dist/src/wallet/wallet-crypto.js.map +1 -0
- package/dist/src/wallet/wallet-manager.d.ts +24 -4
- package/dist/src/wallet/wallet-manager.d.ts.map +1 -0
- package/dist/src/wallet/wallet-manager.js +70 -3
- package/dist/src/wallet/wallet-manager.js.map +1 -0
- package/dist/src/wallet/wallet-storage.d.ts +15 -7
- package/dist/src/wallet/wallet-storage.d.ts.map +1 -0
- package/dist/src/wallet/wallet-storage.js +34 -18
- package/dist/src/wallet/wallet-storage.js.map +1 -0
- package/dist/src/wiki/index.d.ts +30 -0
- package/dist/src/wiki/index.d.ts.map +1 -0
- package/dist/src/wiki/index.js +30 -0
- package/dist/src/wiki/index.js.map +1 -0
- package/dist/src/wiki/ingest.d.ts +51 -0
- package/dist/src/wiki/ingest.d.ts.map +1 -0
- package/dist/src/wiki/ingest.js +197 -0
- package/dist/src/wiki/ingest.js.map +1 -0
- package/dist/src/wiki/lint.d.ts +43 -0
- package/dist/src/wiki/lint.d.ts.map +1 -0
- package/dist/src/wiki/lint.js +187 -0
- package/dist/src/wiki/lint.js.map +1 -0
- package/dist/src/wiki/mcp-tools.d.ts +35 -0
- package/dist/src/wiki/mcp-tools.d.ts.map +1 -0
- package/dist/src/wiki/mcp-tools.js +353 -0
- package/dist/src/wiki/mcp-tools.js.map +1 -0
- package/dist/src/wiki/query.d.ts +38 -0
- package/dist/src/wiki/query.d.ts.map +1 -0
- package/dist/src/wiki/query.js +117 -0
- package/dist/src/wiki/query.js.map +1 -0
- package/dist/src/wiki/wiki-store.d.ts +53 -0
- package/dist/src/wiki/wiki-store.d.ts.map +1 -0
- package/dist/src/wiki/wiki-store.js +132 -0
- package/dist/src/wiki/wiki-store.js.map +1 -0
- package/package.json +35 -11
- package/.claude/settings.local.json +0 -9
- package/.dfx/local/network-id +0 -4
- package/.next/trace +0 -2
- package/.vercel/README.txt +0 -11
- package/.vercel/project.json +0 -1
- package/AGENTS.md +0 -43
- package/PLAN_VAULT_INTEGRATION.md +0 -318
- package/dist/vitest.config.d.ts +0 -3
- package/dist/vitest.config.js +0 -14
- package/fixup_1_0_OSS_release.md +0 -136
- package/fixup_REALEASE_PRD.md +0 -136
- package/macos-wallet-app/AgentVaultWallet/App/AgentVaultWalletApp.swift +0 -54
- package/macos-wallet-app/AgentVaultWallet/Models/AppState.swift +0 -102
- package/macos-wallet-app/AgentVaultWallet/Models/Chain.swift +0 -121
- package/macos-wallet-app/AgentVaultWallet/Models/Wallet.swift +0 -98
- package/macos-wallet-app/AgentVaultWallet/Resources/AgentVaultWallet.entitlements +0 -27
- package/macos-wallet-app/AgentVaultWallet/Resources/Info.plist +0 -69
- package/macos-wallet-app/AgentVaultWallet/Services/BackupService.swift +0 -270
- package/macos-wallet-app/AgentVaultWallet/Services/CLIBridge.swift +0 -367
- package/macos-wallet-app/AgentVaultWallet/Services/CryptoService.swift +0 -157
- package/macos-wallet-app/AgentVaultWallet/Services/FileService.swift +0 -120
- package/macos-wallet-app/AgentVaultWallet/Services/KeychainService.swift +0 -219
- package/macos-wallet-app/AgentVaultWallet/Utilities/Constants.swift +0 -44
- package/macos-wallet-app/AgentVaultWallet/Utilities/Extensions.swift +0 -115
- package/macos-wallet-app/AgentVaultWallet/ViewModels/BackupViewModel.swift +0 -237
- package/macos-wallet-app/AgentVaultWallet/ViewModels/CreateWalletViewModel.swift +0 -137
- package/macos-wallet-app/AgentVaultWallet/ViewModels/ImportWalletViewModel.swift +0 -179
- package/macos-wallet-app/AgentVaultWallet/ViewModels/WalletStore.swift +0 -286
- package/macos-wallet-app/AgentVaultWallet/Views/Backup/BackupView.swift +0 -235
- package/macos-wallet-app/AgentVaultWallet/Views/Backup/RestoreView.swift +0 -316
- package/macos-wallet-app/AgentVaultWallet/Views/Create/CreateWalletFlow.swift +0 -438
- package/macos-wallet-app/AgentVaultWallet/Views/Import/ImportWalletFlow.swift +0 -399
- package/macos-wallet-app/AgentVaultWallet/Views/MainView.swift +0 -134
- package/macos-wallet-app/AgentVaultWallet/Views/Settings/SettingsView.swift +0 -276
- package/macos-wallet-app/AgentVaultWallet/Views/Sidebar/SidebarView.swift +0 -133
- package/macos-wallet-app/AgentVaultWallet/Views/Wallet/DashboardView.swift +0 -233
- package/macos-wallet-app/AgentVaultWallet/Views/Wallet/WalletDetailView.swift +0 -281
- package/macos-wallet-app/AgentVaultWallet/Views/Wallet/WalletListView.swift +0 -280
- package/macos-wallet-app/AgentVaultWallet/Views/Welcome/WelcomeView.swift +0 -176
- package/macos-wallet-app/Makefile +0 -47
- package/macos-wallet-app/project.yml +0 -40
- package/macos-wallet-app/setup.sh +0 -73
- package/pnpm-workspace.yaml +0 -5
- package/vercel.json +0 -8
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
|
|
3
|
-
/// Detailed view for a single wallet
|
|
4
|
-
struct WalletDetailView: View {
|
|
5
|
-
let wallet: Wallet
|
|
6
|
-
@EnvironmentObject var walletStore: WalletStore
|
|
7
|
-
@EnvironmentObject var appState: AppState
|
|
8
|
-
@State private var isEditingName = false
|
|
9
|
-
@State private var editedName: String = ""
|
|
10
|
-
@State private var showDeleteConfirmation = false
|
|
11
|
-
@State private var isRefreshing = false
|
|
12
|
-
|
|
13
|
-
var body: some View {
|
|
14
|
-
ScrollView {
|
|
15
|
-
VStack(spacing: 24) {
|
|
16
|
-
// Header card
|
|
17
|
-
walletHeader
|
|
18
|
-
|
|
19
|
-
// Address section
|
|
20
|
-
addressSection
|
|
21
|
-
|
|
22
|
-
// Balance section
|
|
23
|
-
balanceSection
|
|
24
|
-
|
|
25
|
-
// Details section
|
|
26
|
-
detailsSection
|
|
27
|
-
|
|
28
|
-
// Actions section
|
|
29
|
-
actionsSection
|
|
30
|
-
}
|
|
31
|
-
.padding(24)
|
|
32
|
-
}
|
|
33
|
-
.navigationTitle(wallet.name)
|
|
34
|
-
.confirmationDialog("Delete Wallet", isPresented: $showDeleteConfirmation) {
|
|
35
|
-
Button("Delete \"\(wallet.name)\"", role: .destructive) {
|
|
36
|
-
walletStore.deleteWallet(wallet)
|
|
37
|
-
appState.selectedDestination = .walletList
|
|
38
|
-
}
|
|
39
|
-
} message: {
|
|
40
|
-
Text("This will permanently delete the wallet and remove its keys from your Keychain. Make sure you have a backup of your recovery phrase.")
|
|
41
|
-
}
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
private var walletHeader: some View {
|
|
45
|
-
HStack(spacing: 20) {
|
|
46
|
-
// Chain badge
|
|
47
|
-
ZStack {
|
|
48
|
-
RoundedRectangle(cornerRadius: 16)
|
|
49
|
-
.fill(
|
|
50
|
-
LinearGradient(colors: wallet.chain.gradientColors,
|
|
51
|
-
startPoint: .topLeading, endPoint: .bottomTrailing)
|
|
52
|
-
)
|
|
53
|
-
.frame(width: 64, height: 64)
|
|
54
|
-
|
|
55
|
-
Image(systemName: wallet.chain.iconName)
|
|
56
|
-
.font(.system(size: 28))
|
|
57
|
-
.foregroundStyle(.white)
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
VStack(alignment: .leading, spacing: 6) {
|
|
61
|
-
if isEditingName {
|
|
62
|
-
HStack {
|
|
63
|
-
TextField("Wallet name", text: $editedName)
|
|
64
|
-
.textFieldStyle(.roundedBorder)
|
|
65
|
-
.onSubmit {
|
|
66
|
-
walletStore.renameWallet(wallet, to: editedName)
|
|
67
|
-
isEditingName = false
|
|
68
|
-
}
|
|
69
|
-
Button("Save") {
|
|
70
|
-
walletStore.renameWallet(wallet, to: editedName)
|
|
71
|
-
isEditingName = false
|
|
72
|
-
}
|
|
73
|
-
.buttonStyle(.bordered)
|
|
74
|
-
.controlSize(.small)
|
|
75
|
-
}
|
|
76
|
-
} else {
|
|
77
|
-
HStack {
|
|
78
|
-
Text(wallet.name)
|
|
79
|
-
.font(.title2.bold())
|
|
80
|
-
|
|
81
|
-
Button {
|
|
82
|
-
editedName = wallet.name
|
|
83
|
-
isEditingName = true
|
|
84
|
-
} label: {
|
|
85
|
-
Image(systemName: "pencil")
|
|
86
|
-
.font(.caption)
|
|
87
|
-
}
|
|
88
|
-
.buttonStyle(.plain)
|
|
89
|
-
.foregroundStyle(.secondary)
|
|
90
|
-
}
|
|
91
|
-
}
|
|
92
|
-
|
|
93
|
-
HStack(spacing: 8) {
|
|
94
|
-
Text(wallet.chain.displayName)
|
|
95
|
-
.font(.subheadline)
|
|
96
|
-
.foregroundStyle(.secondary)
|
|
97
|
-
|
|
98
|
-
if wallet.isImported {
|
|
99
|
-
Text("IMPORTED")
|
|
100
|
-
.font(.caption2.bold())
|
|
101
|
-
.foregroundStyle(.secondary)
|
|
102
|
-
.padding(.horizontal, 6)
|
|
103
|
-
.padding(.vertical, 2)
|
|
104
|
-
.background(.secondary.opacity(0.15), in: Capsule())
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
Spacer()
|
|
110
|
-
}
|
|
111
|
-
.padding(20)
|
|
112
|
-
.background(.quaternary.opacity(0.5), in: RoundedRectangle(cornerRadius: 16))
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
private var addressSection: some View {
|
|
116
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
117
|
-
Text("Address")
|
|
118
|
-
.font(.headline)
|
|
119
|
-
|
|
120
|
-
HStack {
|
|
121
|
-
Text(wallet.address)
|
|
122
|
-
.font(.system(.body, design: .monospaced))
|
|
123
|
-
.lineLimit(2)
|
|
124
|
-
.textSelection(.enabled)
|
|
125
|
-
|
|
126
|
-
Spacer()
|
|
127
|
-
|
|
128
|
-
VStack(spacing: 6) {
|
|
129
|
-
Button {
|
|
130
|
-
NSPasteboard.general.clearContents()
|
|
131
|
-
NSPasteboard.general.setString(wallet.address, forType: .string)
|
|
132
|
-
} label: {
|
|
133
|
-
Image(systemName: "doc.on.doc")
|
|
134
|
-
}
|
|
135
|
-
.buttonStyle(.bordered)
|
|
136
|
-
.controlSize(.small)
|
|
137
|
-
.help("Copy address to clipboard")
|
|
138
|
-
|
|
139
|
-
if let url = wallet.explorerURL {
|
|
140
|
-
Button {
|
|
141
|
-
NSWorkspace.shared.open(url)
|
|
142
|
-
} label: {
|
|
143
|
-
Image(systemName: "arrow.up.right.square")
|
|
144
|
-
}
|
|
145
|
-
.buttonStyle(.bordered)
|
|
146
|
-
.controlSize(.small)
|
|
147
|
-
.help("View on block explorer")
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
.padding(16)
|
|
152
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
153
|
-
.overlay(RoundedRectangle(cornerRadius: 12).stroke(.secondary.opacity(0.15)))
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
private var balanceSection: some View {
|
|
158
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
159
|
-
HStack {
|
|
160
|
-
Text("Balance")
|
|
161
|
-
.font(.headline)
|
|
162
|
-
|
|
163
|
-
Spacer()
|
|
164
|
-
|
|
165
|
-
Button {
|
|
166
|
-
isRefreshing = true
|
|
167
|
-
Task {
|
|
168
|
-
await walletStore.refreshBalance(for: wallet)
|
|
169
|
-
isRefreshing = false
|
|
170
|
-
}
|
|
171
|
-
} label: {
|
|
172
|
-
Label("Refresh", systemImage: "arrow.clockwise")
|
|
173
|
-
}
|
|
174
|
-
.buttonStyle(.bordered)
|
|
175
|
-
.controlSize(.small)
|
|
176
|
-
.disabled(isRefreshing)
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
HStack(alignment: .firstTextBaseline) {
|
|
180
|
-
if isRefreshing {
|
|
181
|
-
ProgressView()
|
|
182
|
-
.controlSize(.small)
|
|
183
|
-
} else {
|
|
184
|
-
Text(wallet.cachedBalance ?? "—")
|
|
185
|
-
.font(.system(size: 36, weight: .semibold, design: .rounded).monospacedDigit())
|
|
186
|
-
}
|
|
187
|
-
|
|
188
|
-
Text(wallet.chain.symbol)
|
|
189
|
-
.font(.title2)
|
|
190
|
-
.foregroundStyle(.secondary)
|
|
191
|
-
|
|
192
|
-
Spacer()
|
|
193
|
-
|
|
194
|
-
if let updated = wallet.balanceLastUpdated {
|
|
195
|
-
Text("Updated \(updated, style: .relative) ago")
|
|
196
|
-
.font(.caption)
|
|
197
|
-
.foregroundStyle(.tertiary)
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
.padding(16)
|
|
201
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
202
|
-
.overlay(RoundedRectangle(cornerRadius: 12).stroke(.secondary.opacity(0.15)))
|
|
203
|
-
}
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
private var detailsSection: some View {
|
|
207
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
208
|
-
Text("Details")
|
|
209
|
-
.font(.headline)
|
|
210
|
-
|
|
211
|
-
VStack(spacing: 0) {
|
|
212
|
-
DetailRow(label: "Network", value: wallet.chain.displayName)
|
|
213
|
-
Divider().padding(.leading, 16)
|
|
214
|
-
DetailRow(label: "Symbol", value: wallet.chain.symbol)
|
|
215
|
-
Divider().padding(.leading, 16)
|
|
216
|
-
if !wallet.derivationPath.isEmpty {
|
|
217
|
-
DetailRow(label: "Derivation Path", value: wallet.derivationPath)
|
|
218
|
-
Divider().padding(.leading, 16)
|
|
219
|
-
}
|
|
220
|
-
DetailRow(label: "Created", value: wallet.createdAt.formatted(date: .long, time: .shortened))
|
|
221
|
-
Divider().padding(.leading, 16)
|
|
222
|
-
DetailRow(label: "Recovery Phrase", value: wallet.hasMnemonicBackup ? "Backed up" : "Not available")
|
|
223
|
-
}
|
|
224
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
225
|
-
.overlay(RoundedRectangle(cornerRadius: 12).stroke(.secondary.opacity(0.15)))
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
private var actionsSection: some View {
|
|
230
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
231
|
-
Text("Actions")
|
|
232
|
-
.font(.headline)
|
|
233
|
-
|
|
234
|
-
HStack(spacing: 12) {
|
|
235
|
-
if walletStore.hasMnemonic(for: wallet) {
|
|
236
|
-
Button {
|
|
237
|
-
appState.activeSheet = .mnemonicReveal(wallet.id)
|
|
238
|
-
} label: {
|
|
239
|
-
Label("Reveal Recovery Phrase", systemImage: "eye")
|
|
240
|
-
.frame(maxWidth: .infinity)
|
|
241
|
-
}
|
|
242
|
-
.buttonStyle(.bordered)
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
Button {
|
|
246
|
-
appState.activeSheet = .backup
|
|
247
|
-
} label: {
|
|
248
|
-
Label("Backup", systemImage: "arrow.down.doc")
|
|
249
|
-
.frame(maxWidth: .infinity)
|
|
250
|
-
}
|
|
251
|
-
.buttonStyle(.bordered)
|
|
252
|
-
}
|
|
253
|
-
|
|
254
|
-
Button(role: .destructive) {
|
|
255
|
-
showDeleteConfirmation = true
|
|
256
|
-
} label: {
|
|
257
|
-
Label("Delete Wallet", systemImage: "trash")
|
|
258
|
-
.frame(maxWidth: .infinity)
|
|
259
|
-
}
|
|
260
|
-
.buttonStyle(.bordered)
|
|
261
|
-
.tint(.red)
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
|
|
266
|
-
struct DetailRow: View {
|
|
267
|
-
let label: String
|
|
268
|
-
let value: String
|
|
269
|
-
|
|
270
|
-
var body: some View {
|
|
271
|
-
HStack {
|
|
272
|
-
Text(label)
|
|
273
|
-
.foregroundStyle(.secondary)
|
|
274
|
-
Spacer()
|
|
275
|
-
Text(value)
|
|
276
|
-
.font(.callout)
|
|
277
|
-
}
|
|
278
|
-
.padding(.horizontal, 16)
|
|
279
|
-
.padding(.vertical, 10)
|
|
280
|
-
}
|
|
281
|
-
}
|
|
@@ -1,280 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
|
|
3
|
-
/// Shows all wallets grouped by chain with search and filtering
|
|
4
|
-
struct WalletListView: View {
|
|
5
|
-
@EnvironmentObject var walletStore: WalletStore
|
|
6
|
-
@EnvironmentObject var appState: AppState
|
|
7
|
-
@State private var searchText = ""
|
|
8
|
-
@State private var filterChain: Chain?
|
|
9
|
-
@State private var sortOrder: WalletSortOrder = .name
|
|
10
|
-
@State private var showDeleteConfirmation: Wallet?
|
|
11
|
-
|
|
12
|
-
private var filteredWallets: [Wallet] {
|
|
13
|
-
var results = walletStore.wallets
|
|
14
|
-
|
|
15
|
-
// Filter by chain
|
|
16
|
-
if let chain = filterChain {
|
|
17
|
-
results = results.filter { $0.chain == chain }
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
// Filter by search text
|
|
21
|
-
if !searchText.isEmpty {
|
|
22
|
-
results = results.filter {
|
|
23
|
-
$0.name.localizedCaseInsensitiveContains(searchText) ||
|
|
24
|
-
$0.address.localizedCaseInsensitiveContains(searchText) ||
|
|
25
|
-
$0.chain.displayName.localizedCaseInsensitiveContains(searchText)
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
// Sort
|
|
30
|
-
switch sortOrder {
|
|
31
|
-
case .name:
|
|
32
|
-
results.sort { $0.name.localizedCompare($1.name) == .orderedAscending }
|
|
33
|
-
case .chain:
|
|
34
|
-
results.sort { $0.chain.rawValue < $1.chain.rawValue }
|
|
35
|
-
case .created:
|
|
36
|
-
results.sort { $0.createdAt > $1.createdAt }
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
return results
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
var body: some View {
|
|
43
|
-
VStack(spacing: 0) {
|
|
44
|
-
// Toolbar
|
|
45
|
-
toolbar
|
|
46
|
-
|
|
47
|
-
if walletStore.wallets.isEmpty {
|
|
48
|
-
emptyState
|
|
49
|
-
} else if filteredWallets.isEmpty {
|
|
50
|
-
noResultsState
|
|
51
|
-
} else {
|
|
52
|
-
ScrollView {
|
|
53
|
-
LazyVStack(spacing: 12) {
|
|
54
|
-
ForEach(filteredWallets) { wallet in
|
|
55
|
-
WalletRowView(wallet: wallet)
|
|
56
|
-
.onTapGesture {
|
|
57
|
-
appState.selectedDestination = .walletDetail(wallet.id)
|
|
58
|
-
}
|
|
59
|
-
.contextMenu {
|
|
60
|
-
walletContextMenu(wallet)
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
}
|
|
64
|
-
.padding(20)
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
.navigationTitle("All Wallets")
|
|
69
|
-
.confirmationDialog(
|
|
70
|
-
"Delete Wallet",
|
|
71
|
-
isPresented: Binding(
|
|
72
|
-
get: { showDeleteConfirmation != nil },
|
|
73
|
-
set: { if !$0 { showDeleteConfirmation = nil } }
|
|
74
|
-
),
|
|
75
|
-
presenting: showDeleteConfirmation
|
|
76
|
-
) { wallet in
|
|
77
|
-
Button("Delete \"\(wallet.name)\"", role: .destructive) {
|
|
78
|
-
walletStore.deleteWallet(wallet)
|
|
79
|
-
}
|
|
80
|
-
} message: { wallet in
|
|
81
|
-
Text("This will permanently delete the wallet and its keys from your Keychain. This cannot be undone unless you have a backup.")
|
|
82
|
-
}
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
private var toolbar: some View {
|
|
86
|
-
HStack(spacing: 12) {
|
|
87
|
-
// Search
|
|
88
|
-
HStack {
|
|
89
|
-
Image(systemName: "magnifyingglass")
|
|
90
|
-
.foregroundStyle(.secondary)
|
|
91
|
-
TextField("Search wallets...", text: $searchText)
|
|
92
|
-
.textFieldStyle(.plain)
|
|
93
|
-
if !searchText.isEmpty {
|
|
94
|
-
Button { searchText = "" } label: {
|
|
95
|
-
Image(systemName: "xmark.circle.fill")
|
|
96
|
-
.foregroundStyle(.secondary)
|
|
97
|
-
}
|
|
98
|
-
.buttonStyle(.plain)
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
.padding(8)
|
|
102
|
-
.background(.quaternary, in: RoundedRectangle(cornerRadius: 8))
|
|
103
|
-
|
|
104
|
-
// Chain filter
|
|
105
|
-
Picker("Network", selection: $filterChain) {
|
|
106
|
-
Text("All Networks").tag(Chain?.none)
|
|
107
|
-
Divider()
|
|
108
|
-
ForEach(Chain.allCases) { chain in
|
|
109
|
-
Label(chain.displayName, systemImage: chain.iconName)
|
|
110
|
-
.tag(Chain?.some(chain))
|
|
111
|
-
}
|
|
112
|
-
}
|
|
113
|
-
.frame(width: 160)
|
|
114
|
-
|
|
115
|
-
// Sort
|
|
116
|
-
Picker("Sort", selection: $sortOrder) {
|
|
117
|
-
ForEach(WalletSortOrder.allCases) { order in
|
|
118
|
-
Text(order.label).tag(order)
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
.frame(width: 120)
|
|
122
|
-
|
|
123
|
-
Spacer()
|
|
124
|
-
|
|
125
|
-
// Refresh all balances
|
|
126
|
-
Button {
|
|
127
|
-
Task { await walletStore.refreshAllBalances() }
|
|
128
|
-
} label: {
|
|
129
|
-
Image(systemName: "arrow.clockwise")
|
|
130
|
-
}
|
|
131
|
-
.buttonStyle(.bordered)
|
|
132
|
-
.controlSize(.small)
|
|
133
|
-
.disabled(walletStore.isLoading)
|
|
134
|
-
}
|
|
135
|
-
.padding(.horizontal, 20)
|
|
136
|
-
.padding(.vertical, 12)
|
|
137
|
-
.background(.bar)
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
private var emptyState: some View {
|
|
141
|
-
ContentUnavailableView {
|
|
142
|
-
Label("No Wallets Yet", systemImage: "wallet.pass")
|
|
143
|
-
} description: {
|
|
144
|
-
Text("Create or import a wallet to get started.")
|
|
145
|
-
} actions: {
|
|
146
|
-
HStack(spacing: 12) {
|
|
147
|
-
Button("Create Wallet") {
|
|
148
|
-
appState.activeSheet = .createWallet
|
|
149
|
-
}
|
|
150
|
-
.buttonStyle(.borderedProminent)
|
|
151
|
-
|
|
152
|
-
Button("Import Wallet") {
|
|
153
|
-
appState.activeSheet = .importWallet
|
|
154
|
-
}
|
|
155
|
-
.buttonStyle(.bordered)
|
|
156
|
-
}
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
private var noResultsState: some View {
|
|
161
|
-
ContentUnavailableView.search(text: searchText)
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
@ViewBuilder
|
|
165
|
-
private func walletContextMenu(_ wallet: Wallet) -> some View {
|
|
166
|
-
Button("Copy Address") {
|
|
167
|
-
NSPasteboard.general.clearContents()
|
|
168
|
-
NSPasteboard.general.setString(wallet.address, forType: .string)
|
|
169
|
-
}
|
|
170
|
-
|
|
171
|
-
if let url = wallet.explorerURL {
|
|
172
|
-
Button("View on Explorer") {
|
|
173
|
-
NSWorkspace.shared.open(url)
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
|
|
177
|
-
if walletStore.hasMnemonic(for: wallet) {
|
|
178
|
-
Button("Reveal Recovery Phrase") {
|
|
179
|
-
appState.activeSheet = .mnemonicReveal(wallet.id)
|
|
180
|
-
}
|
|
181
|
-
}
|
|
182
|
-
|
|
183
|
-
Divider()
|
|
184
|
-
|
|
185
|
-
Button("Refresh Balance") {
|
|
186
|
-
Task { await walletStore.refreshBalance(for: wallet) }
|
|
187
|
-
}
|
|
188
|
-
|
|
189
|
-
Divider()
|
|
190
|
-
|
|
191
|
-
Button("Delete Wallet", role: .destructive) {
|
|
192
|
-
showDeleteConfirmation = wallet
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
|
|
197
|
-
/// Wallet card row for the list view
|
|
198
|
-
struct WalletRowView: View {
|
|
199
|
-
let wallet: Wallet
|
|
200
|
-
@EnvironmentObject var walletStore: WalletStore
|
|
201
|
-
|
|
202
|
-
var body: some View {
|
|
203
|
-
HStack(spacing: 16) {
|
|
204
|
-
// Chain icon
|
|
205
|
-
ZStack {
|
|
206
|
-
RoundedRectangle(cornerRadius: 12)
|
|
207
|
-
.fill(
|
|
208
|
-
LinearGradient(colors: wallet.chain.gradientColors,
|
|
209
|
-
startPoint: .topLeading, endPoint: .bottomTrailing)
|
|
210
|
-
)
|
|
211
|
-
.frame(width: 44, height: 44)
|
|
212
|
-
|
|
213
|
-
Image(systemName: wallet.chain.iconName)
|
|
214
|
-
.font(.title3)
|
|
215
|
-
.foregroundStyle(.white)
|
|
216
|
-
}
|
|
217
|
-
|
|
218
|
-
// Wallet info
|
|
219
|
-
VStack(alignment: .leading, spacing: 4) {
|
|
220
|
-
HStack {
|
|
221
|
-
Text(wallet.name)
|
|
222
|
-
.font(.headline)
|
|
223
|
-
|
|
224
|
-
if wallet.isImported {
|
|
225
|
-
Text("IMPORTED")
|
|
226
|
-
.font(.caption2.bold())
|
|
227
|
-
.foregroundStyle(.secondary)
|
|
228
|
-
.padding(.horizontal, 6)
|
|
229
|
-
.padding(.vertical, 2)
|
|
230
|
-
.background(.secondary.opacity(0.15), in: Capsule())
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
Text(wallet.shortAddress)
|
|
235
|
-
.font(.system(.caption, design: .monospaced))
|
|
236
|
-
.foregroundStyle(.secondary)
|
|
237
|
-
}
|
|
238
|
-
|
|
239
|
-
Spacer()
|
|
240
|
-
|
|
241
|
-
// Balance
|
|
242
|
-
VStack(alignment: .trailing, spacing: 4) {
|
|
243
|
-
Text(wallet.displayBalance)
|
|
244
|
-
.font(.headline.monospacedDigit())
|
|
245
|
-
|
|
246
|
-
if let updated = wallet.balanceLastUpdated {
|
|
247
|
-
Text(updated, style: .relative)
|
|
248
|
-
.font(.caption2)
|
|
249
|
-
.foregroundStyle(.tertiary)
|
|
250
|
-
}
|
|
251
|
-
}
|
|
252
|
-
|
|
253
|
-
// Arrow
|
|
254
|
-
Image(systemName: "chevron.right")
|
|
255
|
-
.font(.caption)
|
|
256
|
-
.foregroundStyle(.tertiary)
|
|
257
|
-
}
|
|
258
|
-
.padding(16)
|
|
259
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
260
|
-
.overlay(
|
|
261
|
-
RoundedRectangle(cornerRadius: 12)
|
|
262
|
-
.stroke(Color.secondary.opacity(0.1))
|
|
263
|
-
)
|
|
264
|
-
.shadow(color: .black.opacity(0.03), radius: 4, y: 2)
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
enum WalletSortOrder: String, CaseIterable, Identifiable {
|
|
269
|
-
case name, chain, created
|
|
270
|
-
|
|
271
|
-
var id: String { rawValue }
|
|
272
|
-
|
|
273
|
-
var label: String {
|
|
274
|
-
switch self {
|
|
275
|
-
case .name: return "Name"
|
|
276
|
-
case .chain: return "Network"
|
|
277
|
-
case .created: return "Date Created"
|
|
278
|
-
}
|
|
279
|
-
}
|
|
280
|
-
}
|