aliasmate 1.6.1 → 2.0.0
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 +37 -0
- package/README.md +61 -876
- package/dist/cli/completion.d.ts +5 -0
- package/dist/cli/completion.d.ts.map +1 -0
- package/dist/cli/completion.js +144 -0
- package/dist/cli/completion.js.map +1 -0
- package/dist/cli/manage.d.ts +20 -0
- package/dist/cli/manage.d.ts.map +1 -0
- package/dist/cli/manage.js +213 -0
- package/dist/cli/manage.js.map +1 -0
- package/dist/cli/run.d.ts +6 -0
- package/dist/cli/run.d.ts.map +1 -0
- package/dist/cli/run.js +46 -0
- package/dist/cli/run.js.map +1 -0
- package/dist/cli/save.d.ts +9 -0
- package/dist/cli/save.d.ts.map +1 -0
- package/dist/cli/save.js +52 -0
- package/dist/cli/save.js.map +1 -0
- package/dist/cli/transfer.d.ts +5 -0
- package/dist/cli/transfer.d.ts.map +1 -0
- package/dist/cli/transfer.js +118 -0
- package/dist/cli/transfer.js.map +1 -0
- package/dist/core/commands.d.ts +27 -0
- package/dist/core/commands.d.ts.map +1 -0
- package/dist/core/commands.js +194 -0
- package/dist/core/commands.js.map +1 -0
- package/dist/core/env.d.ts +9 -0
- package/dist/core/env.d.ts.map +1 -0
- package/dist/core/env.js +45 -0
- package/dist/core/env.js.map +1 -0
- package/dist/core/executor.d.ts +7 -0
- package/dist/core/executor.d.ts.map +1 -0
- package/dist/{utils → core}/executor.js +10 -46
- package/dist/core/executor.js.map +1 -0
- package/dist/core/history.d.ts +11 -0
- package/dist/core/history.d.ts.map +1 -0
- package/dist/core/history.js +117 -0
- package/dist/core/history.js.map +1 -0
- package/dist/core/recent.d.ts +14 -0
- package/dist/core/recent.d.ts.map +1 -0
- package/dist/core/recent.js +54 -0
- package/dist/core/recent.js.map +1 -0
- package/dist/core/runner.d.ts +13 -0
- package/dist/core/runner.d.ts.map +1 -0
- package/dist/core/runner.js +83 -0
- package/dist/core/runner.js.map +1 -0
- package/dist/core/store.d.ts +29 -0
- package/dist/core/store.d.ts.map +1 -0
- package/dist/core/store.js +131 -0
- package/dist/core/store.js.map +1 -0
- package/dist/core/types.d.ts +29 -0
- package/dist/core/types.d.ts.map +1 -0
- package/dist/core/types.js +3 -0
- package/dist/core/types.js.map +1 -0
- package/dist/core/validate.d.ts +6 -0
- package/dist/core/validate.d.ts.map +1 -0
- package/dist/core/validate.js +139 -0
- package/dist/core/validate.js.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +169 -0
- package/dist/index.js.map +1 -0
- package/dist/ui/format.d.ts +16 -0
- package/dist/ui/format.d.ts.map +1 -0
- package/dist/ui/format.js +112 -0
- package/dist/ui/format.js.map +1 -0
- package/dist/ui/interactive.d.ts +6 -0
- package/dist/ui/interactive.d.ts.map +1 -0
- package/dist/ui/interactive.js +147 -0
- package/dist/ui/interactive.js.map +1 -0
- package/dist/ui/onboarding.d.ts +3 -0
- package/dist/ui/onboarding.d.ts.map +1 -0
- package/dist/ui/onboarding.js +82 -0
- package/dist/ui/onboarding.js.map +1 -0
- package/dist/ui/prompts.d.ts +14 -0
- package/dist/ui/prompts.d.ts.map +1 -0
- package/dist/ui/prompts.js +96 -0
- package/dist/ui/prompts.js.map +1 -0
- package/dist/ui/theme.d.ts +28 -0
- package/dist/ui/theme.d.ts.map +1 -0
- package/dist/ui/theme.js +43 -0
- package/dist/ui/theme.js.map +1 -0
- package/package.json +4 -5
- package/dist/cli.d.ts +0 -3
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -252
- package/dist/cli.js.map +0 -1
- package/dist/commands/alias.d.ts +0 -30
- package/dist/commands/alias.d.ts.map +0 -1
- package/dist/commands/alias.js +0 -213
- package/dist/commands/alias.js.map +0 -1
- package/dist/commands/changelog.d.ts +0 -9
- package/dist/commands/changelog.d.ts.map +0 -1
- package/dist/commands/changelog.js +0 -72
- package/dist/commands/changelog.js.map +0 -1
- package/dist/commands/completion.d.ts +0 -17
- package/dist/commands/completion.d.ts.map +0 -1
- package/dist/commands/completion.js +0 -363
- package/dist/commands/completion.js.map +0 -1
- package/dist/commands/delete.d.ts +0 -14
- package/dist/commands/delete.d.ts.map +0 -1
- package/dist/commands/delete.js +0 -54
- package/dist/commands/delete.js.map +0 -1
- package/dist/commands/edit.d.ts +0 -16
- package/dist/commands/edit.d.ts.map +0 -1
- package/dist/commands/edit.js +0 -231
- package/dist/commands/edit.js.map +0 -1
- package/dist/commands/export.d.ts +0 -23
- package/dist/commands/export.d.ts.map +0 -1
- package/dist/commands/export.js +0 -122
- package/dist/commands/export.js.map +0 -1
- package/dist/commands/import.d.ts +0 -23
- package/dist/commands/import.d.ts.map +0 -1
- package/dist/commands/import.js +0 -235
- package/dist/commands/import.js.map +0 -1
- package/dist/commands/list.d.ts +0 -25
- package/dist/commands/list.d.ts.map +0 -1
- package/dist/commands/list.js +0 -58
- package/dist/commands/list.js.map +0 -1
- package/dist/commands/prev.d.ts +0 -15
- package/dist/commands/prev.d.ts.map +0 -1
- package/dist/commands/prev.js +0 -138
- package/dist/commands/prev.js.map +0 -1
- package/dist/commands/recent.d.ts +0 -24
- package/dist/commands/recent.d.ts.map +0 -1
- package/dist/commands/recent.js +0 -132
- package/dist/commands/recent.js.map +0 -1
- package/dist/commands/run.d.ts +0 -22
- package/dist/commands/run.d.ts.map +0 -1
- package/dist/commands/run.js +0 -217
- package/dist/commands/run.js.map +0 -1
- package/dist/commands/save.d.ts +0 -17
- package/dist/commands/save.d.ts.map +0 -1
- package/dist/commands/save.js +0 -232
- package/dist/commands/save.js.map +0 -1
- package/dist/commands/search.d.ts +0 -19
- package/dist/commands/search.d.ts.map +0 -1
- package/dist/commands/search.js +0 -113
- package/dist/commands/search.js.map +0 -1
- package/dist/commands/validate.d.ts +0 -10
- package/dist/commands/validate.d.ts.map +0 -1
- package/dist/commands/validate.js +0 -162
- package/dist/commands/validate.js.map +0 -1
- package/dist/storage/index.d.ts +0 -117
- package/dist/storage/index.d.ts.map +0 -1
- package/dist/storage/index.js +0 -262
- package/dist/storage/index.js.map +0 -1
- package/dist/utils/changelog.d.ts +0 -41
- package/dist/utils/changelog.d.ts.map +0 -1
- package/dist/utils/changelog.js +0 -192
- package/dist/utils/changelog.js.map +0 -1
- package/dist/utils/constants.d.ts +0 -48
- package/dist/utils/constants.d.ts.map +0 -1
- package/dist/utils/constants.js +0 -51
- package/dist/utils/constants.js.map +0 -1
- package/dist/utils/env.d.ts +0 -64
- package/dist/utils/env.d.ts.map +0 -1
- package/dist/utils/env.js +0 -199
- package/dist/utils/env.js.map +0 -1
- package/dist/utils/errors.d.ts +0 -30
- package/dist/utils/errors.d.ts.map +0 -1
- package/dist/utils/errors.js +0 -62
- package/dist/utils/errors.js.map +0 -1
- package/dist/utils/executor.d.ts +0 -33
- package/dist/utils/executor.d.ts.map +0 -1
- package/dist/utils/executor.js.map +0 -1
- package/dist/utils/formatters.d.ts +0 -30
- package/dist/utils/formatters.d.ts.map +0 -1
- package/dist/utils/formatters.js +0 -188
- package/dist/utils/formatters.js.map +0 -1
- package/dist/utils/history.d.ts +0 -37
- package/dist/utils/history.d.ts.map +0 -1
- package/dist/utils/history.js +0 -179
- package/dist/utils/history.js.map +0 -1
- package/dist/utils/llm-generator.d.ts +0 -21
- package/dist/utils/llm-generator.d.ts.map +0 -1
- package/dist/utils/llm-generator.js +0 -915
- package/dist/utils/llm-generator.js.map +0 -1
- package/dist/utils/onboarding.d.ts +0 -10
- package/dist/utils/onboarding.d.ts.map +0 -1
- package/dist/utils/onboarding.js +0 -316
- package/dist/utils/onboarding.js.map +0 -1
- package/dist/utils/paths.d.ts +0 -44
- package/dist/utils/paths.d.ts.map +0 -1
- package/dist/utils/paths.js +0 -115
- package/dist/utils/paths.js.map +0 -1
- package/dist/utils/prompts.d.ts +0 -66
- package/dist/utils/prompts.d.ts.map +0 -1
- package/dist/utils/prompts.js +0 -51
- package/dist/utils/prompts.js.map +0 -1
- package/dist/utils/recent.d.ts +0 -55
- package/dist/utils/recent.d.ts.map +0 -1
- package/dist/utils/recent.js +0 -102
- package/dist/utils/recent.js.map +0 -1
- package/dist/utils/validator.d.ts +0 -56
- package/dist/utils/validator.d.ts.map +0 -1
- package/dist/utils/validator.js +0 -413
- package/dist/utils/validator.js.map +0 -1
- package/dist/utils/version-checker.d.ts +0 -29
- package/dist/utils/version-checker.d.ts.map +0 -1
- package/dist/utils/version-checker.js +0 -191
- package/dist/utils/version-checker.js.map +0 -1
- package/whats-new.json +0 -202
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version-checker.d.ts","sourceRoot":"","sources":["../../src/utils/version-checker.ts"],"names":[],"mappings":"AAKA;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACnC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,iBAAiB,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,OAAO,CAgBvE;AAED;;;GAGG;AACH,wBAAsB,kBAAkB,IAAI,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CA6CjE;AA4DD;;;;;;GAMG;AACH,wBAAsB,eAAe,IAAI,OAAO,CAAC,IAAI,CAAC,CA4BrD"}
|
|
@@ -1,191 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || (function () {
|
|
19
|
-
var ownKeys = function(o) {
|
|
20
|
-
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
21
|
-
var ar = [];
|
|
22
|
-
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
23
|
-
return ar;
|
|
24
|
-
};
|
|
25
|
-
return ownKeys(o);
|
|
26
|
-
};
|
|
27
|
-
return function (mod) {
|
|
28
|
-
if (mod && mod.__esModule) return mod;
|
|
29
|
-
var result = {};
|
|
30
|
-
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
31
|
-
__setModuleDefault(result, mod);
|
|
32
|
-
return result;
|
|
33
|
-
};
|
|
34
|
-
})();
|
|
35
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
36
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
37
|
-
};
|
|
38
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.isNewerVersion = isNewerVersion;
|
|
40
|
-
exports.fetchLatestVersion = fetchLatestVersion;
|
|
41
|
-
exports.checkForUpdates = checkForUpdates;
|
|
42
|
-
const https = __importStar(require("https"));
|
|
43
|
-
const chalk_1 = __importDefault(require("chalk"));
|
|
44
|
-
const constants_1 = require("./constants");
|
|
45
|
-
const storage_1 = require("../storage");
|
|
46
|
-
/**
|
|
47
|
-
* Compare two semantic version strings
|
|
48
|
-
* @param current - Current version (e.g., "1.4.0")
|
|
49
|
-
* @param latest - Latest version (e.g., "1.5.0")
|
|
50
|
-
* @returns true if latest is greater than current
|
|
51
|
-
*/
|
|
52
|
-
function isNewerVersion(current, latest) {
|
|
53
|
-
const currentParts = current.split('.').map((n) => parseInt(n, 10));
|
|
54
|
-
const latestParts = latest.split('.').map((n) => parseInt(n, 10));
|
|
55
|
-
for (let i = 0; i < 3; i++) {
|
|
56
|
-
const currentPart = currentParts[i] || 0;
|
|
57
|
-
const latestPart = latestParts[i] || 0;
|
|
58
|
-
if (latestPart > currentPart) {
|
|
59
|
-
return true;
|
|
60
|
-
}
|
|
61
|
-
else if (latestPart < currentPart) {
|
|
62
|
-
return false;
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
return false;
|
|
66
|
-
}
|
|
67
|
-
/**
|
|
68
|
-
* Fetch the latest version from npm registry
|
|
69
|
-
* @returns Promise that resolves to the latest version string or null on error
|
|
70
|
-
*/
|
|
71
|
-
async function fetchLatestVersion() {
|
|
72
|
-
return new Promise((resolve) => {
|
|
73
|
-
const options = {
|
|
74
|
-
hostname: 'registry.npmjs.org',
|
|
75
|
-
path: `/${constants_1.APP_NAME}/latest`,
|
|
76
|
-
method: 'GET',
|
|
77
|
-
headers: {
|
|
78
|
-
'User-Agent': `${constants_1.APP_NAME}/${constants_1.APP_VERSION}`,
|
|
79
|
-
},
|
|
80
|
-
timeout: 5000, // 5 second timeout
|
|
81
|
-
};
|
|
82
|
-
const req = https.request(options, (res) => {
|
|
83
|
-
let data = '';
|
|
84
|
-
res.on('data', (chunk) => {
|
|
85
|
-
data += chunk;
|
|
86
|
-
});
|
|
87
|
-
res.on('end', () => {
|
|
88
|
-
try {
|
|
89
|
-
if (res.statusCode === 200) {
|
|
90
|
-
const json = JSON.parse(data);
|
|
91
|
-
resolve(json.version || null);
|
|
92
|
-
}
|
|
93
|
-
else {
|
|
94
|
-
resolve(null);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
catch {
|
|
98
|
-
resolve(null);
|
|
99
|
-
}
|
|
100
|
-
});
|
|
101
|
-
});
|
|
102
|
-
req.on('error', () => {
|
|
103
|
-
// Silently fail on network errors
|
|
104
|
-
resolve(null);
|
|
105
|
-
});
|
|
106
|
-
req.on('timeout', () => {
|
|
107
|
-
req.destroy();
|
|
108
|
-
resolve(null);
|
|
109
|
-
});
|
|
110
|
-
req.end();
|
|
111
|
-
});
|
|
112
|
-
}
|
|
113
|
-
/**
|
|
114
|
-
* Get today's date in ISO format (YYYY-MM-DD)
|
|
115
|
-
*/
|
|
116
|
-
function getTodayDate() {
|
|
117
|
-
return new Date().toISOString().split('T')[0];
|
|
118
|
-
}
|
|
119
|
-
/**
|
|
120
|
-
* Check if we should run the update check
|
|
121
|
-
* - Returns false if already checked today
|
|
122
|
-
* - Returns false if user dismissed for today
|
|
123
|
-
*/
|
|
124
|
-
function shouldCheckForUpdate() {
|
|
125
|
-
const metadata = (0, storage_1.getMetadata)('versionCheck');
|
|
126
|
-
const today = getTodayDate();
|
|
127
|
-
// If already checked today, skip
|
|
128
|
-
if (metadata?.lastCheckDate === today) {
|
|
129
|
-
return false;
|
|
130
|
-
}
|
|
131
|
-
return true;
|
|
132
|
-
}
|
|
133
|
-
/**
|
|
134
|
-
* Display update notification to the user
|
|
135
|
-
*/
|
|
136
|
-
function displayUpdateNotification(latestVersion) {
|
|
137
|
-
console.log();
|
|
138
|
-
console.log(chalk_1.default.yellow('╭─────────────────────────────────────────────────────╮'));
|
|
139
|
-
console.log(chalk_1.default.yellow('│') +
|
|
140
|
-
chalk_1.default.bold.yellow(' Update Available! ') +
|
|
141
|
-
chalk_1.default.yellow('│'));
|
|
142
|
-
console.log(chalk_1.default.yellow('├─────────────────────────────────────────────────────┤'));
|
|
143
|
-
console.log(chalk_1.default.yellow('│') +
|
|
144
|
-
` Current version: ${chalk_1.default.cyan(constants_1.APP_VERSION)}${' '.repeat(28 - constants_1.APP_VERSION.length)}` +
|
|
145
|
-
chalk_1.default.yellow('│'));
|
|
146
|
-
console.log(chalk_1.default.yellow('│') +
|
|
147
|
-
` Latest version: ${chalk_1.default.green(latestVersion)}${' '.repeat(28 - latestVersion.length)}` +
|
|
148
|
-
chalk_1.default.yellow('│'));
|
|
149
|
-
console.log(chalk_1.default.yellow('├─────────────────────────────────────────────────────┤'));
|
|
150
|
-
console.log(chalk_1.default.yellow('│') +
|
|
151
|
-
' Run ' +
|
|
152
|
-
chalk_1.default.cyan.bold('npm install -g aliasmate') +
|
|
153
|
-
' to update ' +
|
|
154
|
-
chalk_1.default.yellow('│'));
|
|
155
|
-
console.log(chalk_1.default.yellow('╰─────────────────────────────────────────────────────╯'));
|
|
156
|
-
console.log();
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* Check for updates and notify the user if a new version is available
|
|
160
|
-
* This function:
|
|
161
|
-
* - Only runs once per day
|
|
162
|
-
* - Silently fails if offline or on error
|
|
163
|
-
* - Updates metadata after checking
|
|
164
|
-
*/
|
|
165
|
-
async function checkForUpdates() {
|
|
166
|
-
// Skip if already checked today
|
|
167
|
-
if (!shouldCheckForUpdate()) {
|
|
168
|
-
return;
|
|
169
|
-
}
|
|
170
|
-
const today = getTodayDate();
|
|
171
|
-
try {
|
|
172
|
-
// Fetch the latest version from npm
|
|
173
|
-
const latestVersion = await fetchLatestVersion();
|
|
174
|
-
// Update metadata that we checked today
|
|
175
|
-
(0, storage_1.setMetadata)('versionCheck', {
|
|
176
|
-
lastCheckDate: today,
|
|
177
|
-
lastSeenVersion: latestVersion || undefined,
|
|
178
|
-
});
|
|
179
|
-
// If we got a version and it's newer, display notification
|
|
180
|
-
if (latestVersion && isNewerVersion(constants_1.APP_VERSION, latestVersion)) {
|
|
181
|
-
displayUpdateNotification(latestVersion);
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
catch {
|
|
185
|
-
// Silently fail - just update the check date so we don't retry immediately
|
|
186
|
-
(0, storage_1.setMetadata)('versionCheck', {
|
|
187
|
-
lastCheckDate: today,
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
}
|
|
191
|
-
//# sourceMappingURL=version-checker.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"version-checker.js","sourceRoot":"","sources":["../../src/utils/version-checker.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoBA,wCAgBC;AAMD,gDA6CC;AAmED,0CA4BC;AAtLD,6CAA+B;AAC/B,kDAA0B;AAC1B,2CAAoD;AACpD,wCAAsD;AAWtD;;;;;GAKG;AACH,SAAgB,cAAc,CAAC,OAAe,EAAE,MAAc;IAC5D,MAAM,YAAY,GAAG,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACpE,MAAM,WAAW,GAAG,MAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IAElE,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC;QAC3B,MAAM,WAAW,GAAG,YAAY,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QACzC,MAAM,UAAU,GAAG,WAAW,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC;QAEvC,IAAI,UAAU,GAAG,WAAW,EAAE,CAAC;YAC7B,OAAO,IAAI,CAAC;QACd,CAAC;aAAM,IAAI,UAAU,GAAG,WAAW,EAAE,CAAC;YACpC,OAAO,KAAK,CAAC;QACf,CAAC;IACH,CAAC;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;;GAGG;AACI,KAAK,UAAU,kBAAkB;IACtC,OAAO,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE;QAC7B,MAAM,OAAO,GAAG;YACd,QAAQ,EAAE,oBAAoB;Y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
|
|
2
|
-
"1.0.0": {
|
|
3
|
-
"version": "1.0.0",
|
|
4
|
-
"date": "2025-11-15",
|
|
5
|
-
"sections": {
|
|
6
|
-
"added": [
|
|
7
|
-
"Initial release with core functionality",
|
|
8
|
-
"`prev` command to save previous shell command",
|
|
9
|
-
"`run` command to execute saved commands",
|
|
10
|
-
"`save` command for interactive command saving",
|
|
11
|
-
"`list` (alias `ls`) command to display all saved commands",
|
|
12
|
-
"`edit` command to modify saved commands",
|
|
13
|
-
"`delete` (alias `rm`) command to remove saved commands",
|
|
14
|
-
"`export` command to backup commands to JSON",
|
|
15
|
-
"`import` command to restore commands from JSON",
|
|
16
|
-
"`config` command to show config file location",
|
|
17
|
-
"Cross-platform support (Linux, macOS, Windows)",
|
|
18
|
-
"Working directory preservation and override",
|
|
19
|
-
"Interactive conflict resolution for imports"
|
|
20
|
-
]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"1.1.0": {
|
|
24
|
-
"version": "1.1.0",
|
|
25
|
-
"date": "2026-01-08",
|
|
26
|
-
"sections": {
|
|
27
|
-
"added": [
|
|
28
|
-
"ESLint configuration with TypeScript support",
|
|
29
|
-
"Prettier configuration for consistent code formatting",
|
|
30
|
-
"Comprehensive JSDoc documentation for all public functions",
|
|
31
|
-
"CONTRIBUTING.md with detailed contributor guidelines",
|
|
32
|
-
"DEV_GUIDE.md for quick development reference",
|
|
33
|
-
"Centralized error handling utilities",
|
|
34
|
-
"Custom error types and exit code enums"
|
|
35
|
-
],
|
|
36
|
-
"changed": [
|
|
37
|
-
"Removed all `any` types, replaced with proper TypeScript interfaces",
|
|
38
|
-
"Standardized error handling across all commands",
|
|
39
|
-
"Improved type safety for inquirer prompt responses",
|
|
40
|
-
"Better code organization with centralized error utilities"
|
|
41
|
-
],
|
|
42
|
-
"fixed": [
|
|
43
|
-
"Proper typing for execa error handling",
|
|
44
|
-
"Consistent exit codes across all error scenarios"
|
|
45
|
-
]
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
"1.2.0": {
|
|
49
|
-
"version": "1.2.0",
|
|
50
|
-
"date": "2026-01-11",
|
|
51
|
-
"sections": {
|
|
52
|
-
"added": [
|
|
53
|
-
"`search` (alias `find`) command to search commands by name, text, or directory",
|
|
54
|
-
"Automatic backup creation before importing commands",
|
|
55
|
-
"Directory existence indicator in list output",
|
|
56
|
-
"Command creation timestamp display in list output",
|
|
57
|
-
"Exit code display for failed command executions",
|
|
58
|
-
"Comprehensive input validation for command names",
|
|
59
|
-
"Directory existence validation with warnings",
|
|
60
|
-
"Path normalization to absolute paths for consistency",
|
|
61
|
-
"Global uncaught exception handler"
|
|
62
|
-
],
|
|
63
|
-
"changed": [
|
|
64
|
-
"Delete command now shows details of what will be deleted",
|
|
65
|
-
"Export command creates parent directories if they don't exist",
|
|
66
|
-
"Import command validates each alias structure before processing",
|
|
67
|
-
"All user inputs are trimmed before processing",
|
|
68
|
-
"Enhanced CLI help messages for unknown commands"
|
|
69
|
-
],
|
|
70
|
-
"fixed": [
|
|
71
|
-
"Atomic write operations prevent config file corruption during saves",
|
|
72
|
-
"Proper validation of command names to prevent special characters",
|
|
73
|
-
"Input trimming prevents whitespace-related issues"
|
|
74
|
-
]
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"1.3.0": {
|
|
78
|
-
"version": "1.3.0",
|
|
79
|
-
"date": "2026-01-12",
|
|
80
|
-
"sections": {
|
|
81
|
-
"added": [
|
|
82
|
-
"Onboarding experience with welcome message for first-time users",
|
|
83
|
-
"Version upgrade notifications with feature highlights",
|
|
84
|
-
"Path Mode feature: Commands can run in saved or current directory",
|
|
85
|
-
"Path mode selection during `aliasmate save` command",
|
|
86
|
-
"Path mode display in list output with icons (📁 Saved / 📍 Current)",
|
|
87
|
-
"LLM Integration with automatic 'llm' command creation",
|
|
88
|
-
"Comprehensive llm.txt documentation file generation"
|
|
89
|
-
],
|
|
90
|
-
"changed": [
|
|
91
|
-
"Enhanced list command output with path mode information",
|
|
92
|
-
"Better visual hierarchy in command listings",
|
|
93
|
-
"More informative output when saving commands"
|
|
94
|
-
]
|
|
95
|
-
}
|
|
96
|
-
},
|
|
97
|
-
"1.3.1": {
|
|
98
|
-
"version": "1.3.1",
|
|
99
|
-
"date": "2026-01-12",
|
|
100
|
-
"sections": {
|
|
101
|
-
"fixed": [
|
|
102
|
-
"Onboarding display issue - now shows on first install or after upgrades",
|
|
103
|
-
"Onboarding displays on first run regardless of arguments provided",
|
|
104
|
-
"Welcome message appears before any command execution"
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
},
|
|
108
|
-
"1.4.0": {
|
|
109
|
-
"version": "1.4.0",
|
|
110
|
-
"date": "2026-01-14",
|
|
111
|
-
"sections": {
|
|
112
|
-
"added": [
|
|
113
|
-
"Automated release script for version management",
|
|
114
|
-
"Cumulative changelog system with whats-new.json",
|
|
115
|
-
"`changelog` command to view version changes",
|
|
116
|
-
"Display cumulative changes for upgrade migrations",
|
|
117
|
-
"Version comparison utilities for semantic versioning"
|
|
118
|
-
],
|
|
119
|
-
"changed": [
|
|
120
|
-
"Onboarding now shows cumulative changes during upgrades",
|
|
121
|
-
"Upgrade messages pull from structured changelog data"
|
|
122
|
-
]
|
|
123
|
-
}
|
|
124
|
-
},
|
|
125
|
-
"1.5.0": {
|
|
126
|
-
"version": "1.5.0",
|
|
127
|
-
"date": "2026-01-14",
|
|
128
|
-
"sections": {
|
|
129
|
-
"added": [
|
|
130
|
-
"Automatic version update checker that notifies users once per day when new versions are available",
|
|
131
|
-
"Beautiful CLI notification box with clear upgrade instructions",
|
|
132
|
-
"Smart error handling for offline scenarios - silently fails without disrupting workflow",
|
|
133
|
-
"Generic metadata storage system for application state (separate from command aliases)",
|
|
134
|
-
"Metadata file at ~/.config/aliasmate/metadata.json for persistent app state",
|
|
135
|
-
"5-second timeout on version checks to prevent blocking",
|
|
136
|
-
"Comprehensive test suite with 16 new tests for version checker and 6 for metadata storage"
|
|
137
|
-
],
|
|
138
|
-
"changed": [
|
|
139
|
-
"Version checks run automatically but only notify once per day to avoid being intrusive",
|
|
140
|
-
"Configuration directory now manages both aliases and metadata separately"
|
|
141
|
-
]
|
|
142
|
-
}
|
|
143
|
-
},
|
|
144
|
-
"1.5.1": {
|
|
145
|
-
"version": "1.5.1",
|
|
146
|
-
"date": "2026-01-14",
|
|
147
|
-
"sections": {
|
|
148
|
-
"fixed": [
|
|
149
|
-
"Fixed a bug where llm.txt is stuck with initial version",
|
|
150
|
-
"Silently recreates llm command with the latest version"
|
|
151
|
-
]
|
|
152
|
-
}
|
|
153
|
-
},
|
|
154
|
-
"1.6.0": {
|
|
155
|
-
"version": "1.6.0",
|
|
156
|
-
"date": "2026-01-22",
|
|
157
|
-
"sections": {
|
|
158
|
-
"added": [
|
|
159
|
-
"Command Aliases: Create short aliases for frequently used commands (aliasmate alias <short> <command>)",
|
|
160
|
-
"Recent Commands: Track and display recently executed commands with timestamps (aliasmate recent)",
|
|
161
|
-
"@N syntax: Quick re-execution of recent commands (aliasmate run @0 for most recent)",
|
|
162
|
-
"Auto-completion Support: Shell completion for bash, zsh, and fish (aliasmate completion <shell>)",
|
|
163
|
-
"Dry Run Mode: Preview commands before execution with --dry-run flag",
|
|
164
|
-
"Command Validation: Verify commands and directories when saving (aliasmate validate <name>)",
|
|
165
|
-
"Output Formatting: Multiple formats for list/export (JSON, YAML, table, compact)",
|
|
166
|
-
"Alias management: List (--list) and remove (--remove) commands for aliases",
|
|
167
|
-
"Execution tracking: Automatic recording of command executions with timestamps",
|
|
168
|
-
"Configurable recent history: Adjustable history size (default: 50 entries)",
|
|
169
|
-
"Dangerous command detection: Warnings for potentially destructive commands in dry-run",
|
|
170
|
-
"Validation bypass: --no-validate flag for save and edit commands",
|
|
171
|
-
"Time-ago formatting: Human-readable timestamps (e.g., '2 minutes ago')",
|
|
172
|
-
"Shell syntax validation: Basic validation for quotes, brackets, and operators",
|
|
173
|
-
"Directory permission checks: Validates read/write/execute permissions",
|
|
174
|
-
"Environment variable validation: Checks for valid variable name patterns"
|
|
175
|
-
],
|
|
176
|
-
"changed": [
|
|
177
|
-
"Run command now supports alias resolution automatically",
|
|
178
|
-
"Run command enhanced with @N syntax for recent commands",
|
|
179
|
-
"List command supports multiple output formats (--format flag)",
|
|
180
|
-
"Export command supports JSON and YAML formats",
|
|
181
|
-
"Save/Edit commands include optional validation bypass",
|
|
182
|
-
"Metadata storage now includes aliases and execution history"
|
|
183
|
-
]
|
|
184
|
-
}
|
|
185
|
-
},
|
|
186
|
-
"1.6.1": {
|
|
187
|
-
"version": "1.6.1",
|
|
188
|
-
"date": "2026-01-24",
|
|
189
|
-
"sections": {
|
|
190
|
-
"fixed": [
|
|
191
|
-
"Fixed bug where downgrade scenarios incorrectly showed 'upgraded' message",
|
|
192
|
-
"Version detection now properly distinguishes upgrades from downgrades",
|
|
193
|
-
"Outdated version message now encourages users to upgrade to latest"
|
|
194
|
-
],
|
|
195
|
-
"changed": [
|
|
196
|
-
"Outdated version message displays available features from newer versions",
|
|
197
|
-
"Added clear upgrade instructions with npm command",
|
|
198
|
-
"Improved user experience with motivational messaging for upgrades"
|
|
199
|
-
]
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
}
|