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,276 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
|
|
3
|
-
/// Application settings
|
|
4
|
-
struct SettingsView: View {
|
|
5
|
-
@EnvironmentObject var walletStore: WalletStore
|
|
6
|
-
@EnvironmentObject var appState: AppState
|
|
7
|
-
@State private var showPurgeConfirmation = false
|
|
8
|
-
@State private var showResetConfirmation = false
|
|
9
|
-
@State private var customCLIPath: String = ""
|
|
10
|
-
|
|
11
|
-
var body: some View {
|
|
12
|
-
ScrollView {
|
|
13
|
-
VStack(spacing: 24) {
|
|
14
|
-
// General
|
|
15
|
-
settingsSection("General") {
|
|
16
|
-
VStack(spacing: 0) {
|
|
17
|
-
SettingsRow(label: "Default Network") {
|
|
18
|
-
Picker("", selection: $appState.defaultChain) {
|
|
19
|
-
ForEach(Chain.allCases) { chain in
|
|
20
|
-
Text(chain.displayName).tag(chain.rawValue)
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
.frame(width: 180)
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
Divider().padding(.leading, 16)
|
|
27
|
-
|
|
28
|
-
SettingsRow(label: "Auto-refresh Balances") {
|
|
29
|
-
Toggle("", isOn: $appState.autoRefreshBalances)
|
|
30
|
-
.labelsHidden()
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
.settingsCard()
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
// Environment
|
|
37
|
-
settingsSection("Environment") {
|
|
38
|
-
VStack(spacing: 0) {
|
|
39
|
-
SettingsRow(label: "Node.js") {
|
|
40
|
-
HStack(spacing: 8) {
|
|
41
|
-
Circle()
|
|
42
|
-
.fill(appState.environment.nodeInstalled ? .green : .red)
|
|
43
|
-
.frame(width: 8, height: 8)
|
|
44
|
-
Text(appState.environment.nodeVersion ?? "Not installed")
|
|
45
|
-
.font(.callout.monospaced())
|
|
46
|
-
.foregroundStyle(.secondary)
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
Divider().padding(.leading, 16)
|
|
51
|
-
|
|
52
|
-
SettingsRow(label: "npm") {
|
|
53
|
-
HStack(spacing: 8) {
|
|
54
|
-
Circle()
|
|
55
|
-
.fill(appState.environment.npmInstalled ? .green : .red)
|
|
56
|
-
.frame(width: 8, height: 8)
|
|
57
|
-
Text(appState.environment.npmInstalled ? "Installed" : "Not installed")
|
|
58
|
-
.font(.callout)
|
|
59
|
-
.foregroundStyle(.secondary)
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
|
|
63
|
-
Divider().padding(.leading, 16)
|
|
64
|
-
|
|
65
|
-
SettingsRow(label: "AgentVault CLI") {
|
|
66
|
-
HStack(spacing: 8) {
|
|
67
|
-
Circle()
|
|
68
|
-
.fill(appState.environment.agentVaultInstalled ? .green : .red)
|
|
69
|
-
.frame(width: 8, height: 8)
|
|
70
|
-
Text(appState.environment.agentVaultInstalled ? "Available" : "Not found")
|
|
71
|
-
.font(.callout)
|
|
72
|
-
.foregroundStyle(.secondary)
|
|
73
|
-
}
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
Divider().padding(.leading, 16)
|
|
77
|
-
|
|
78
|
-
SettingsRow(label: "CLI Path Override") {
|
|
79
|
-
HStack {
|
|
80
|
-
TextField("Auto-detect", text: $customCLIPath)
|
|
81
|
-
.textFieldStyle(.roundedBorder)
|
|
82
|
-
.frame(width: 200)
|
|
83
|
-
Button("Browse") {
|
|
84
|
-
let panel = NSOpenPanel()
|
|
85
|
-
panel.canChooseFiles = false
|
|
86
|
-
panel.canChooseDirectories = true
|
|
87
|
-
panel.allowsMultipleSelection = false
|
|
88
|
-
panel.prompt = "Select AgentVault Directory"
|
|
89
|
-
if panel.runModal() == .OK, let url = panel.url {
|
|
90
|
-
customCLIPath = url.path
|
|
91
|
-
appState.cliPath = url.path
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
.buttonStyle(.bordered)
|
|
95
|
-
.controlSize(.small)
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
.settingsCard()
|
|
100
|
-
|
|
101
|
-
Button("Re-check Environment") {
|
|
102
|
-
appState.checkEnvironment()
|
|
103
|
-
}
|
|
104
|
-
.buttonStyle(.bordered)
|
|
105
|
-
.controlSize(.small)
|
|
106
|
-
.disabled(appState.isCheckingEnvironment)
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
// Security
|
|
110
|
-
settingsSection("Security") {
|
|
111
|
-
VStack(spacing: 0) {
|
|
112
|
-
SettingsRow(label: "Wallet Count") {
|
|
113
|
-
Text("\(walletStore.totalWalletCount)")
|
|
114
|
-
.foregroundStyle(.secondary)
|
|
115
|
-
}
|
|
116
|
-
|
|
117
|
-
Divider().padding(.leading, 16)
|
|
118
|
-
|
|
119
|
-
SettingsRow(label: "Storage") {
|
|
120
|
-
Text("macOS Keychain")
|
|
121
|
-
.font(.callout)
|
|
122
|
-
.foregroundStyle(.secondary)
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
Divider().padding(.leading, 16)
|
|
126
|
-
|
|
127
|
-
SettingsRow(label: "Encryption") {
|
|
128
|
-
Text("AES-256-GCM")
|
|
129
|
-
.font(.callout)
|
|
130
|
-
.foregroundStyle(.secondary)
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
.settingsCard()
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
// Data management
|
|
137
|
-
settingsSection("Data Management") {
|
|
138
|
-
VStack(spacing: 0) {
|
|
139
|
-
SettingsRow(label: "Data Location") {
|
|
140
|
-
Button("Reveal in Finder") {
|
|
141
|
-
NSWorkspace.shared.selectFile(nil,
|
|
142
|
-
inFileViewerRootedAtPath: FileService.shared.appDataDirectory.path)
|
|
143
|
-
}
|
|
144
|
-
.buttonStyle(.bordered)
|
|
145
|
-
.controlSize(.small)
|
|
146
|
-
}
|
|
147
|
-
|
|
148
|
-
Divider().padding(.leading, 16)
|
|
149
|
-
|
|
150
|
-
SettingsRow(label: "Backup Directory") {
|
|
151
|
-
Button("Open") {
|
|
152
|
-
NSWorkspace.shared.selectFile(nil,
|
|
153
|
-
inFileViewerRootedAtPath: BackupService.shared.defaultBackupDirectory.path)
|
|
154
|
-
}
|
|
155
|
-
.buttonStyle(.bordered)
|
|
156
|
-
.controlSize(.small)
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
.settingsCard()
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
// Danger zone
|
|
163
|
-
settingsSection("Danger Zone") {
|
|
164
|
-
VStack(spacing: 12) {
|
|
165
|
-
HStack {
|
|
166
|
-
VStack(alignment: .leading, spacing: 4) {
|
|
167
|
-
Text("Purge All Keychain Data")
|
|
168
|
-
.font(.callout.bold())
|
|
169
|
-
Text("Remove all wallet secrets from the macOS Keychain.")
|
|
170
|
-
.font(.caption)
|
|
171
|
-
.foregroundStyle(.secondary)
|
|
172
|
-
}
|
|
173
|
-
Spacer()
|
|
174
|
-
Button("Purge", role: .destructive) {
|
|
175
|
-
showPurgeConfirmation = true
|
|
176
|
-
}
|
|
177
|
-
.buttonStyle(.bordered)
|
|
178
|
-
.tint(.red)
|
|
179
|
-
.controlSize(.small)
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
Divider()
|
|
183
|
-
|
|
184
|
-
HStack {
|
|
185
|
-
VStack(alignment: .leading, spacing: 4) {
|
|
186
|
-
Text("Reset Application")
|
|
187
|
-
.font(.callout.bold())
|
|
188
|
-
Text("Delete all wallets, settings, and cached data. This cannot be undone.")
|
|
189
|
-
.font(.caption)
|
|
190
|
-
.foregroundStyle(.secondary)
|
|
191
|
-
}
|
|
192
|
-
Spacer()
|
|
193
|
-
Button("Reset", role: .destructive) {
|
|
194
|
-
showResetConfirmation = true
|
|
195
|
-
}
|
|
196
|
-
.buttonStyle(.bordered)
|
|
197
|
-
.tint(.red)
|
|
198
|
-
.controlSize(.small)
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
.padding(16)
|
|
202
|
-
.background(.red.opacity(0.05), in: RoundedRectangle(cornerRadius: 12))
|
|
203
|
-
.overlay(RoundedRectangle(cornerRadius: 12).stroke(.red.opacity(0.2)))
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
// About
|
|
207
|
-
settingsSection("About") {
|
|
208
|
-
VStack(spacing: 0) {
|
|
209
|
-
SettingsRow(label: "Version") {
|
|
210
|
-
Text("1.0.0")
|
|
211
|
-
.foregroundStyle(.secondary)
|
|
212
|
-
}
|
|
213
|
-
Divider().padding(.leading, 16)
|
|
214
|
-
SettingsRow(label: "Platform") {
|
|
215
|
-
Text("macOS \(ProcessInfo.processInfo.operatingSystemVersionString)")
|
|
216
|
-
.foregroundStyle(.secondary)
|
|
217
|
-
}
|
|
218
|
-
}
|
|
219
|
-
.settingsCard()
|
|
220
|
-
}
|
|
221
|
-
}
|
|
222
|
-
.padding(24)
|
|
223
|
-
}
|
|
224
|
-
.navigationTitle("Settings")
|
|
225
|
-
.confirmationDialog("Purge Keychain", isPresented: $showPurgeConfirmation) {
|
|
226
|
-
Button("Purge All Secrets", role: .destructive) {
|
|
227
|
-
KeychainService.shared.purgeAll()
|
|
228
|
-
appState.showSuccess("All Keychain data has been purged.")
|
|
229
|
-
}
|
|
230
|
-
} message: {
|
|
231
|
-
Text("This will delete ALL wallet private keys and mnemonics from the Keychain. Make sure you have backups!")
|
|
232
|
-
}
|
|
233
|
-
.confirmationDialog("Reset Application", isPresented: $showResetConfirmation) {
|
|
234
|
-
Button("Reset Everything", role: .destructive) {
|
|
235
|
-
KeychainService.shared.purgeAll()
|
|
236
|
-
walletStore.wallets.removeAll()
|
|
237
|
-
walletStore.saveWallets()
|
|
238
|
-
appState.hasCompletedOnboarding = false
|
|
239
|
-
appState.isFirstLaunch = true
|
|
240
|
-
}
|
|
241
|
-
} message: {
|
|
242
|
-
Text("This will delete all wallets, purge the Keychain, and reset the app to its initial state. This CANNOT be undone.")
|
|
243
|
-
}
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
private func settingsSection(_ title: String, @ViewBuilder content: () -> some View) -> some View {
|
|
247
|
-
VStack(alignment: .leading, spacing: 8) {
|
|
248
|
-
Text(title)
|
|
249
|
-
.font(.headline)
|
|
250
|
-
content()
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
struct SettingsRow<Content: View>: View {
|
|
256
|
-
let label: String
|
|
257
|
-
@ViewBuilder let content: () -> Content
|
|
258
|
-
|
|
259
|
-
var body: some View {
|
|
260
|
-
HStack {
|
|
261
|
-
Text(label)
|
|
262
|
-
Spacer()
|
|
263
|
-
content()
|
|
264
|
-
}
|
|
265
|
-
.padding(.horizontal, 16)
|
|
266
|
-
.padding(.vertical, 10)
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
|
|
270
|
-
extension View {
|
|
271
|
-
func settingsCard() -> some View {
|
|
272
|
-
self
|
|
273
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
274
|
-
.overlay(RoundedRectangle(cornerRadius: 12).stroke(.secondary.opacity(0.15)))
|
|
275
|
-
}
|
|
276
|
-
}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
|
|
3
|
-
/// Navigation sidebar with wallet groups and actions
|
|
4
|
-
struct SidebarView: View {
|
|
5
|
-
@EnvironmentObject var walletStore: WalletStore
|
|
6
|
-
@EnvironmentObject var appState: AppState
|
|
7
|
-
|
|
8
|
-
var body: some View {
|
|
9
|
-
List(selection: $appState.selectedDestination) {
|
|
10
|
-
// Main navigation
|
|
11
|
-
Section {
|
|
12
|
-
NavigationLink(value: NavigationDestination.dashboard) {
|
|
13
|
-
Label("Dashboard", systemImage: "square.grid.2x2")
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
NavigationLink(value: NavigationDestination.walletList) {
|
|
17
|
-
Label {
|
|
18
|
-
HStack {
|
|
19
|
-
Text("All Wallets")
|
|
20
|
-
Spacer()
|
|
21
|
-
Text("\(walletStore.totalWalletCount)")
|
|
22
|
-
.font(.caption)
|
|
23
|
-
.foregroundStyle(.secondary)
|
|
24
|
-
.padding(.horizontal, 6)
|
|
25
|
-
.padding(.vertical, 2)
|
|
26
|
-
.background(.quaternary, in: Capsule())
|
|
27
|
-
}
|
|
28
|
-
} icon: {
|
|
29
|
-
Image(systemName: "wallet.pass.fill")
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
// Wallets by chain
|
|
35
|
-
Section("Networks") {
|
|
36
|
-
ForEach(Chain.allCases) { chain in
|
|
37
|
-
DisclosureGroup {
|
|
38
|
-
let chainWallets = walletStore.wallets.filter { $0.chain == chain }
|
|
39
|
-
if chainWallets.isEmpty {
|
|
40
|
-
Text("No wallets")
|
|
41
|
-
.font(.caption)
|
|
42
|
-
.foregroundStyle(.tertiary)
|
|
43
|
-
.padding(.leading, 4)
|
|
44
|
-
} else {
|
|
45
|
-
ForEach(chainWallets) { wallet in
|
|
46
|
-
NavigationLink(value: NavigationDestination.walletDetail(wallet.id)) {
|
|
47
|
-
WalletSidebarRow(wallet: wallet)
|
|
48
|
-
}
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
} label: {
|
|
52
|
-
Label {
|
|
53
|
-
HStack {
|
|
54
|
-
Text(chain.displayName)
|
|
55
|
-
Spacer()
|
|
56
|
-
Text("\(walletStore.wallets.filter { $0.chain == chain }.count)")
|
|
57
|
-
.font(.caption2)
|
|
58
|
-
.foregroundStyle(.secondary)
|
|
59
|
-
}
|
|
60
|
-
} icon: {
|
|
61
|
-
Image(systemName: chain.iconName)
|
|
62
|
-
.foregroundStyle(chain.color)
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
// Tools
|
|
69
|
-
Section("Tools") {
|
|
70
|
-
NavigationLink(value: NavigationDestination.backup) {
|
|
71
|
-
Label("Backup & Restore", systemImage: "arrow.triangle.2.circlepath")
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
NavigationLink(value: NavigationDestination.settings) {
|
|
75
|
-
Label("Settings", systemImage: "gearshape")
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
}
|
|
79
|
-
.listStyle(.sidebar)
|
|
80
|
-
.safeAreaInset(edge: .bottom) {
|
|
81
|
-
sidebarActions
|
|
82
|
-
}
|
|
83
|
-
.navigationSplitViewColumnWidth(min: 220, ideal: 260)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
private var sidebarActions: some View {
|
|
87
|
-
VStack(spacing: 8) {
|
|
88
|
-
Divider()
|
|
89
|
-
|
|
90
|
-
HStack(spacing: 12) {
|
|
91
|
-
Button {
|
|
92
|
-
appState.activeSheet = .createWallet
|
|
93
|
-
} label: {
|
|
94
|
-
Label("Create", systemImage: "plus.circle.fill")
|
|
95
|
-
.frame(maxWidth: .infinity)
|
|
96
|
-
}
|
|
97
|
-
.buttonStyle(.borderedProminent)
|
|
98
|
-
.controlSize(.regular)
|
|
99
|
-
|
|
100
|
-
Button {
|
|
101
|
-
appState.activeSheet = .importWallet
|
|
102
|
-
} label: {
|
|
103
|
-
Label("Import", systemImage: "square.and.arrow.down")
|
|
104
|
-
.frame(maxWidth: .infinity)
|
|
105
|
-
}
|
|
106
|
-
.buttonStyle(.bordered)
|
|
107
|
-
.controlSize(.regular)
|
|
108
|
-
}
|
|
109
|
-
.padding(.horizontal, 16)
|
|
110
|
-
.padding(.bottom, 12)
|
|
111
|
-
}
|
|
112
|
-
.background(.bar)
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
/// Compact wallet row for the sidebar
|
|
117
|
-
struct WalletSidebarRow: View {
|
|
118
|
-
let wallet: Wallet
|
|
119
|
-
|
|
120
|
-
var body: some View {
|
|
121
|
-
VStack(alignment: .leading, spacing: 2) {
|
|
122
|
-
Text(wallet.name)
|
|
123
|
-
.font(.body)
|
|
124
|
-
.lineLimit(1)
|
|
125
|
-
|
|
126
|
-
Text(wallet.shortAddress)
|
|
127
|
-
.font(.caption)
|
|
128
|
-
.foregroundStyle(.secondary)
|
|
129
|
-
.lineLimit(1)
|
|
130
|
-
}
|
|
131
|
-
.padding(.vertical, 2)
|
|
132
|
-
}
|
|
133
|
-
}
|
|
@@ -1,233 +0,0 @@
|
|
|
1
|
-
import SwiftUI
|
|
2
|
-
|
|
3
|
-
/// Main dashboard showing wallet overview and quick actions
|
|
4
|
-
struct DashboardView: View {
|
|
5
|
-
@EnvironmentObject var walletStore: WalletStore
|
|
6
|
-
@EnvironmentObject var appState: AppState
|
|
7
|
-
|
|
8
|
-
var body: some View {
|
|
9
|
-
ScrollView {
|
|
10
|
-
VStack(spacing: 24) {
|
|
11
|
-
// Hero header
|
|
12
|
-
heroSection
|
|
13
|
-
|
|
14
|
-
// Quick actions
|
|
15
|
-
quickActions
|
|
16
|
-
|
|
17
|
-
// Network overview
|
|
18
|
-
if !walletStore.wallets.isEmpty {
|
|
19
|
-
networkOverview
|
|
20
|
-
}
|
|
21
|
-
|
|
22
|
-
// Recent wallets
|
|
23
|
-
if !walletStore.wallets.isEmpty {
|
|
24
|
-
recentWallets
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
.padding(24)
|
|
28
|
-
}
|
|
29
|
-
.navigationTitle("Dashboard")
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
private var heroSection: some View {
|
|
33
|
-
VStack(spacing: 16) {
|
|
34
|
-
HStack(spacing: 20) {
|
|
35
|
-
VStack(alignment: .leading, spacing: 8) {
|
|
36
|
-
Text("AgentVault Wallet")
|
|
37
|
-
.font(.system(size: 28, weight: .bold, design: .rounded))
|
|
38
|
-
|
|
39
|
-
Text("Manage your blockchain wallets securely")
|
|
40
|
-
.font(.body)
|
|
41
|
-
.foregroundStyle(.secondary)
|
|
42
|
-
}
|
|
43
|
-
|
|
44
|
-
Spacer()
|
|
45
|
-
|
|
46
|
-
// Stats
|
|
47
|
-
HStack(spacing: 24) {
|
|
48
|
-
StatCard(value: "\(walletStore.totalWalletCount)", label: "Wallets", icon: "wallet.pass.fill")
|
|
49
|
-
StatCard(value: "\(Set(walletStore.wallets.map(\.chain)).count)", label: "Networks", icon: "network")
|
|
50
|
-
}
|
|
51
|
-
}
|
|
52
|
-
.padding(24)
|
|
53
|
-
.background(
|
|
54
|
-
LinearGradient(
|
|
55
|
-
colors: [Color.accentColor.opacity(0.08), Color.accentColor.opacity(0.03)],
|
|
56
|
-
startPoint: .topLeading,
|
|
57
|
-
endPoint: .bottomTrailing
|
|
58
|
-
)
|
|
59
|
-
)
|
|
60
|
-
.clipShape(RoundedRectangle(cornerRadius: 16))
|
|
61
|
-
.overlay(
|
|
62
|
-
RoundedRectangle(cornerRadius: 16)
|
|
63
|
-
.stroke(Color.accentColor.opacity(0.15))
|
|
64
|
-
)
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
private var quickActions: some View {
|
|
69
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
70
|
-
Text("Quick Actions")
|
|
71
|
-
.font(.headline)
|
|
72
|
-
|
|
73
|
-
HStack(spacing: 12) {
|
|
74
|
-
ActionCard(
|
|
75
|
-
title: "Create Wallet",
|
|
76
|
-
description: "Generate a new wallet",
|
|
77
|
-
icon: "plus.circle.fill",
|
|
78
|
-
color: .blue
|
|
79
|
-
) {
|
|
80
|
-
appState.activeSheet = .createWallet
|
|
81
|
-
}
|
|
82
|
-
|
|
83
|
-
ActionCard(
|
|
84
|
-
title: "Import Wallet",
|
|
85
|
-
description: "From phrase, key, or file",
|
|
86
|
-
icon: "square.and.arrow.down.fill",
|
|
87
|
-
color: .green
|
|
88
|
-
) {
|
|
89
|
-
appState.activeSheet = .importWallet
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
ActionCard(
|
|
93
|
-
title: "Backup",
|
|
94
|
-
description: "Secure your wallets",
|
|
95
|
-
icon: "arrow.down.doc.fill",
|
|
96
|
-
color: .orange
|
|
97
|
-
) {
|
|
98
|
-
appState.activeSheet = .backup
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
ActionCard(
|
|
102
|
-
title: "Restore",
|
|
103
|
-
description: "From backup file",
|
|
104
|
-
icon: "arrow.uturn.backward.circle.fill",
|
|
105
|
-
color: .purple
|
|
106
|
-
) {
|
|
107
|
-
appState.activeSheet = .restore
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
private var networkOverview: some View {
|
|
114
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
115
|
-
Text("Networks")
|
|
116
|
-
.font(.headline)
|
|
117
|
-
|
|
118
|
-
HStack(spacing: 12) {
|
|
119
|
-
ForEach(Chain.allCases) { chain in
|
|
120
|
-
let chainWallets = walletStore.wallets.filter { $0.chain == chain }
|
|
121
|
-
|
|
122
|
-
VStack(spacing: 12) {
|
|
123
|
-
ZStack {
|
|
124
|
-
RoundedRectangle(cornerRadius: 12)
|
|
125
|
-
.fill(
|
|
126
|
-
LinearGradient(colors: chain.gradientColors,
|
|
127
|
-
startPoint: .topLeading, endPoint: .bottomTrailing)
|
|
128
|
-
)
|
|
129
|
-
.frame(width: 44, height: 44)
|
|
130
|
-
|
|
131
|
-
Image(systemName: chain.iconName)
|
|
132
|
-
.font(.title3)
|
|
133
|
-
.foregroundStyle(.white)
|
|
134
|
-
}
|
|
135
|
-
|
|
136
|
-
Text(chain.displayName)
|
|
137
|
-
.font(.callout.bold())
|
|
138
|
-
|
|
139
|
-
Text("\(chainWallets.count) wallet\(chainWallets.count == 1 ? "" : "s")")
|
|
140
|
-
.font(.caption)
|
|
141
|
-
.foregroundStyle(.secondary)
|
|
142
|
-
}
|
|
143
|
-
.frame(maxWidth: .infinity)
|
|
144
|
-
.padding(16)
|
|
145
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
146
|
-
.overlay(RoundedRectangle(cornerRadius: 12).stroke(.secondary.opacity(0.1)))
|
|
147
|
-
}
|
|
148
|
-
}
|
|
149
|
-
}
|
|
150
|
-
}
|
|
151
|
-
|
|
152
|
-
private var recentWallets: some View {
|
|
153
|
-
VStack(alignment: .leading, spacing: 12) {
|
|
154
|
-
HStack {
|
|
155
|
-
Text("Your Wallets")
|
|
156
|
-
.font(.headline)
|
|
157
|
-
Spacer()
|
|
158
|
-
Button("View All") {
|
|
159
|
-
appState.selectedDestination = .walletList
|
|
160
|
-
}
|
|
161
|
-
.buttonStyle(.plain)
|
|
162
|
-
.foregroundStyle(.accentColor)
|
|
163
|
-
.font(.callout)
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
let recent = Array(walletStore.wallets.prefix(5))
|
|
167
|
-
VStack(spacing: 8) {
|
|
168
|
-
ForEach(recent) { wallet in
|
|
169
|
-
WalletRowView(wallet: wallet)
|
|
170
|
-
.onTapGesture {
|
|
171
|
-
appState.selectedDestination = .walletDetail(wallet.id)
|
|
172
|
-
}
|
|
173
|
-
}
|
|
174
|
-
}
|
|
175
|
-
}
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
// MARK: - Supporting Views
|
|
180
|
-
|
|
181
|
-
struct StatCard: View {
|
|
182
|
-
let value: String
|
|
183
|
-
let label: String
|
|
184
|
-
let icon: String
|
|
185
|
-
|
|
186
|
-
var body: some View {
|
|
187
|
-
VStack(spacing: 6) {
|
|
188
|
-
Image(systemName: icon)
|
|
189
|
-
.font(.title3)
|
|
190
|
-
.foregroundStyle(.accentColor)
|
|
191
|
-
Text(value)
|
|
192
|
-
.font(.title.bold().monospacedDigit())
|
|
193
|
-
Text(label)
|
|
194
|
-
.font(.caption)
|
|
195
|
-
.foregroundStyle(.secondary)
|
|
196
|
-
}
|
|
197
|
-
.frame(width: 80)
|
|
198
|
-
}
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
struct ActionCard: View {
|
|
202
|
-
let title: String
|
|
203
|
-
let description: String
|
|
204
|
-
let icon: String
|
|
205
|
-
let color: Color
|
|
206
|
-
let action: () -> Void
|
|
207
|
-
|
|
208
|
-
var body: some View {
|
|
209
|
-
Button(action: action) {
|
|
210
|
-
VStack(spacing: 10) {
|
|
211
|
-
Image(systemName: icon)
|
|
212
|
-
.font(.title2)
|
|
213
|
-
.foregroundStyle(color)
|
|
214
|
-
|
|
215
|
-
VStack(spacing: 2) {
|
|
216
|
-
Text(title)
|
|
217
|
-
.font(.callout.bold())
|
|
218
|
-
Text(description)
|
|
219
|
-
.font(.caption2)
|
|
220
|
-
.foregroundStyle(.secondary)
|
|
221
|
-
}
|
|
222
|
-
}
|
|
223
|
-
.frame(maxWidth: .infinity)
|
|
224
|
-
.padding(.vertical, 16)
|
|
225
|
-
.background(.background, in: RoundedRectangle(cornerRadius: 12))
|
|
226
|
-
.overlay(
|
|
227
|
-
RoundedRectangle(cornerRadius: 12)
|
|
228
|
-
.stroke(Color.secondary.opacity(0.15))
|
|
229
|
-
)
|
|
230
|
-
}
|
|
231
|
-
.buttonStyle(.plain)
|
|
232
|
-
}
|
|
233
|
-
}
|