mirror of
https://github.com/PR0M3TH3AN/SeedPass.git
synced 2026-11-08 22:02:24 +00:00
Install and setup TORCH in torch/ directory
- Added `torch-lock` dependency to `torch/package.json` - Initialized TORCH structure using `cmdInit` (mocked interaction) - Updated `torch/package.json` with TORCH CLI scripts (`lock:check`, `lock:lock`, etc.) - Updated `torch/torch-config.json` with Nostr configuration - Added `type: module` to `torch/package.json` to support ES modules - Cleaned up extraneous directories (`test_logs`, `todo`, etc.) from initialization Co-authored-by: PR0M3TH3AN <[email protected]>
This commit is contained in:
1 parent
22cdb75b2b
commit
8761455bd4
170 files changed
+31085
-13
No files matched your search
@@ -0,0 +1,19 @@
|
||||
import { rollbackPrompt } from './services/governance/index.js';
|
||||
import { ExitError } from './errors.mjs';
|
||||
|
||||
export async function cmdRollback(target, strategy) {
|
||||
if (!target) {
|
||||
console.error('Usage: torch-lock rollback --target <path> [--strategy <hash|latest>]');
|
||||
throw new ExitError(1, 'Missing target');
|
||||
}
|
||||
|
||||
const effectiveStrategy = strategy || 'latest';
|
||||
|
||||
try {
|
||||
const result = await rollbackPrompt(target, effectiveStrategy);
|
||||
console.log(JSON.stringify(result, null, 2));
|
||||
} catch (e) {
|
||||
console.error(`Rollback failed: ${e.message}`);
|
||||
throw new ExitError(1, 'Rollback failed');
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user