@hydra-acp/cli 0.1.29 → 0.1.30
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/dist/cli.js +7 -1
- package/dist/index.js +7 -1
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -14224,6 +14224,10 @@ var SessionManager = class {
|
|
|
14224
14224
|
args.sessionId,
|
|
14225
14225
|
args.bundle.history
|
|
14226
14226
|
);
|
|
14227
|
+
const sourceMtime = new Date(args.bundle.session.updatedAt);
|
|
14228
|
+
if (!Number.isNaN(sourceMtime.getTime())) {
|
|
14229
|
+
await fs11.utimes(paths.historyFile(args.sessionId), sourceMtime, sourceMtime).catch(() => void 0);
|
|
14230
|
+
}
|
|
14227
14231
|
if (args.bundle.promptHistory && args.bundle.promptHistory.length > 0) {
|
|
14228
14232
|
await saveHistory(
|
|
14229
14233
|
paths.tuiHistoryFile(args.sessionId),
|
|
@@ -14247,7 +14251,9 @@ var SessionManager = class {
|
|
|
14247
14251
|
currentUsage: args.bundle.session.currentUsage,
|
|
14248
14252
|
agentCommands: args.bundle.session.agentCommands,
|
|
14249
14253
|
createdAt: args.preservedCreatedAt ?? now,
|
|
14250
|
-
|
|
14254
|
+
// Fallback path for historyMtimeIso (used when the history file
|
|
14255
|
+
// is missing). Keep this consistent with the utimes stamp above.
|
|
14256
|
+
updatedAt: args.bundle.session.updatedAt
|
|
14251
14257
|
});
|
|
14252
14258
|
});
|
|
14253
14259
|
}
|
package/dist/index.js
CHANGED
|
@@ -5119,6 +5119,10 @@ var SessionManager = class {
|
|
|
5119
5119
|
args.sessionId,
|
|
5120
5120
|
args.bundle.history
|
|
5121
5121
|
);
|
|
5122
|
+
const sourceMtime = new Date(args.bundle.session.updatedAt);
|
|
5123
|
+
if (!Number.isNaN(sourceMtime.getTime())) {
|
|
5124
|
+
await fs10.utimes(paths.historyFile(args.sessionId), sourceMtime, sourceMtime).catch(() => void 0);
|
|
5125
|
+
}
|
|
5122
5126
|
if (args.bundle.promptHistory && args.bundle.promptHistory.length > 0) {
|
|
5123
5127
|
await saveHistory(
|
|
5124
5128
|
paths.tuiHistoryFile(args.sessionId),
|
|
@@ -5142,7 +5146,9 @@ var SessionManager = class {
|
|
|
5142
5146
|
currentUsage: args.bundle.session.currentUsage,
|
|
5143
5147
|
agentCommands: args.bundle.session.agentCommands,
|
|
5144
5148
|
createdAt: args.preservedCreatedAt ?? now,
|
|
5145
|
-
|
|
5149
|
+
// Fallback path for historyMtimeIso (used when the history file
|
|
5150
|
+
// is missing). Keep this consistent with the utimes stamp above.
|
|
5151
|
+
updatedAt: args.bundle.session.updatedAt
|
|
5146
5152
|
});
|
|
5147
5153
|
});
|
|
5148
5154
|
}
|