deckide 3.5.37 → 3.5.38

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.
@@ -438,6 +438,22 @@ export class AgentBrowserService {
438
438
  await this.refreshActivePageInfo();
439
439
  await this.broadcastStatus();
440
440
  }
441
+ // 履歴を delta だけ移動(-1=戻る, +1=進む)。端なら何もしない。
442
+ async goHistory(delta) {
443
+ await this.start();
444
+ await this.ensureActiveCdp();
445
+ const cdp = this.activeCdp;
446
+ if (!cdp)
447
+ return;
448
+ const history = await cdp.send('Page.getNavigationHistory');
449
+ const targetIndex = history.currentIndex + delta;
450
+ if (targetIndex < 0 || targetIndex >= history.entries.length) {
451
+ return; // これ以上戻る/進む先がない
452
+ }
453
+ await cdp.send('Page.navigateToHistoryEntry', { entryId: history.entries[targetIndex].id });
454
+ await this.refreshActivePageInfo();
455
+ await this.broadcastStatus();
456
+ }
441
457
  async newTab(input) {
442
458
  await this.start();
443
459
  await this.connectBrowserCdp();
@@ -929,6 +945,20 @@ export class AgentBrowserService {
929
945
  await this.navigate(message.url);
930
946
  return;
931
947
  }
948
+ if (message.type === 'back') {
949
+ await this.goHistory(-1);
950
+ return;
951
+ }
952
+ if (message.type === 'forward') {
953
+ await this.goHistory(1);
954
+ return;
955
+ }
956
+ if (message.type === 'reload') {
957
+ await this.activeCdp?.send('Page.reload', {});
958
+ await this.refreshActivePageInfo();
959
+ await this.broadcastStatus();
960
+ return;
961
+ }
932
962
  if (message.type === 'mouse') {
933
963
  await this.dispatchMouse(message);
934
964
  return;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "deckide",
3
- "version": "3.5.37",
3
+ "version": "3.5.38",
4
4
  "description": "Deck IDE - Browser-based IDE with terminal, file explorer, and git integration",
5
5
  "type": "module",
6
6
  "bin": {