zames_pro 2.82.84 → 2.82.86
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 +12 -0
- package/dist/commands.js +6 -1
- package/dist/index.js +3 -3
- package/dist/undo.js +14 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -7,6 +7,18 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
|
7
7
|
|
|
8
8
|
## [Unreleased]
|
|
9
9
|
|
|
10
|
+
## [2.82.86] - 2026-10-24
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- **review:** collapse whitespace in the review focus text
|
|
15
|
+
|
|
16
|
+
## [2.82.85] - 2026-10-24
|
|
17
|
+
|
|
18
|
+
### Fixed
|
|
19
|
+
|
|
20
|
+
- **undo:** never print Invalid Date in /undo-list and /checkpoints
|
|
21
|
+
|
|
10
22
|
## [2.82.84] - 2026-10-24
|
|
11
23
|
|
|
12
24
|
### Fixed
|
package/dist/commands.js
CHANGED
|
@@ -1111,7 +1111,12 @@ export function isDevOnlyCommand(text) {
|
|
|
1111
1111
|
}
|
|
1112
1112
|
export function buildReviewPrompt(focus, hasStaged = false) {
|
|
1113
1113
|
const scope = hasStaged ? 'staged' : 'uncommitted';
|
|
1114
|
-
|
|
1114
|
+
// Collapse ALL whitespace: a NEWLINE in the focus started a new line of the
|
|
1115
|
+
// prompt, so the operator's text could inject an extra instruction instead
|
|
1116
|
+
// of being the "Extra focus" of one sentence.
|
|
1117
|
+
const f = String(focus ?? '')
|
|
1118
|
+
.trim()
|
|
1119
|
+
.replace(/\s+/g, ' ');
|
|
1115
1120
|
let s = 'Review the ' +
|
|
1116
1121
|
scope +
|
|
1117
1122
|
' changes in this repository (use GitDiff). ' +
|
package/dist/index.js
CHANGED
|
@@ -27,7 +27,7 @@ import { formatConfigList } from './config-commands.js';
|
|
|
27
27
|
import { handleConfigCommand as runConfigCommand } from './config-command.js';
|
|
28
28
|
import { translate, normalizeLocale, localeDisplayName, isLocale, } from './i18n.js';
|
|
29
29
|
import { Transcript } from './transcript.js';
|
|
30
|
-
import { UndoStore } from './undo.js';
|
|
30
|
+
import { UndoStore, undoDateLabel } from './undo.js';
|
|
31
31
|
import { CheckpointStore, pickRecord as pickCheckpoint, isFullStampSelector, } from './checkpoint.js';
|
|
32
32
|
import { selfReview, selfDiff, selfApply, selfList } from './self-review.js';
|
|
33
33
|
import { performCompact } from './compact.js';
|
|
@@ -3886,7 +3886,7 @@ async function main() {
|
|
|
3886
3886
|
}
|
|
3887
3887
|
else {
|
|
3888
3888
|
for (const r of list) {
|
|
3889
|
-
const stamp =
|
|
3889
|
+
const stamp = undoDateLabel(r.stamp);
|
|
3890
3890
|
const flag = r.existed ? t('undo.changed') : t('undo.created');
|
|
3891
3891
|
console.log(theme.system(`${stamp} [${flag}] ${r.originalPath}`));
|
|
3892
3892
|
}
|
|
@@ -3901,7 +3901,7 @@ async function main() {
|
|
|
3901
3901
|
else {
|
|
3902
3902
|
console.log(theme.system(t('rewind.list_title')));
|
|
3903
3903
|
list.forEach((r, i) => {
|
|
3904
|
-
const stamp =
|
|
3904
|
+
const stamp = undoDateLabel(r.stamp);
|
|
3905
3905
|
const label = r.label ? ' [' + t('rewind.label_backup') + ']' : '';
|
|
3906
3906
|
console.log(theme.system(` ${i + 1}. ${stamp} ${r.workdir}${label}`));
|
|
3907
3907
|
});
|
package/dist/undo.js
CHANGED
|
@@ -158,3 +158,17 @@ export class UndoStore {
|
|
|
158
158
|
return history.slice(-count).reverse();
|
|
159
159
|
}
|
|
160
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* A display date for an undo record. A record from an older format (no
|
|
163
|
+
* `stamp`) or a hand-edited index (`stamp: "oops"`) made
|
|
164
|
+
* `new Date(...).toLocaleString()` return the literal "Invalid Date", so
|
|
165
|
+
* /undo-list printed a broken row. PURE; exported for tests.
|
|
166
|
+
*/
|
|
167
|
+
export function undoDateLabel(stamp) {
|
|
168
|
+
const n = typeof stamp === 'number' ? stamp : Number(stamp);
|
|
169
|
+
if (!Number.isFinite(n) || n <= 0)
|
|
170
|
+
return '(unknown time)';
|
|
171
|
+
const d = new Date(n);
|
|
172
|
+
const label = d.toLocaleString();
|
|
173
|
+
return label.includes('Invalid') ? '(unknown time)' : label;
|
|
174
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zames_pro",
|
|
3
|
-
"version": "2.82.
|
|
3
|
+
"version": "2.82.86",
|
|
4
4
|
"description": "Terminal coding agent that drives a real browser to chat with DeepSeek, Qwen and other web LLMs — no API key required. Reads and edits files, runs commands, commits to git, like Claude Code / Codex CLI.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|