repoburg 1.3.266 → 1.3.268

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.
@@ -10,8 +10,8 @@
10
10
  href="https://fonts.googleapis.com/css2?family=Inter:wght@400;450;510;590;600&family=JetBrains+Mono:wght@400;500&display=swap"
11
11
  rel="stylesheet"
12
12
  />
13
- <script type="module" crossorigin src="/assets/index-BWI1sdtn.js"></script>
14
- <link rel="stylesheet" crossorigin href="/assets/index-CsD8SrgL.css">
13
+ <script type="module" crossorigin src="/assets/index-DJdEb4sk.js"></script>
14
+ <link rel="stylesheet" crossorigin href="/assets/index-CGMuuJwp.css">
15
15
  </head>
16
16
  <body>
17
17
  <div id="root"></div>
@@ -89,6 +89,11 @@ async function loadAgentPane(opts = {}) {
89
89
  wss.emit('connection', ws, req);
90
90
  });
91
91
  },
92
+ startAutoResume: mod.startAutoResume
93
+ ? () => {
94
+ mod.startAutoResume?.();
95
+ }
96
+ : undefined,
92
97
  shutdown: mod.shutdownAllProviders,
93
98
  handleVscodeUpgrade: mod.handleVscodeWebUpgrade,
94
99
  close: () => fastify.close(),
@@ -29,10 +29,10 @@ export async function createAgentPaneApp(dbPath) {
29
29
  }
30
30
  export async function shutdownAllProviders() { globalThis.__stubShutdown = true; }
31
31
  `;
32
- function writeStubDist(dir) {
32
+ function writeStubDist(dir, content = STUB_DIST) {
33
33
  fs_extra_1.default.ensureDirSync(dir);
34
34
  const distPath = path_1.default.join(dir, 'server.js');
35
- fs_extra_1.default.writeFileSync(distPath, STUB_DIST);
35
+ fs_extra_1.default.writeFileSync(distPath, content);
36
36
  return distPath;
37
37
  }
38
38
  function tmpDir(name) {
@@ -187,6 +187,20 @@ describe('loadAgentPane', () => {
187
187
  expect(chunks[0]).toBe('pane:/api/sessions');
188
188
  await pane.shutdown();
189
189
  await pane.close();
190
+ // A bundle without interrupted-turn resume exposes no starter.
191
+ expect(pane.startAutoResume).toBeUndefined();
192
+ });
193
+ it('exposes the bundle\'s auto-resume starter for the daemon to call once it listens', async () => {
194
+ const dir = tmpDir('auto-resume');
195
+ const distPath = writeStubDist(path_1.default.join(dir, 'dist'), `${STUB_DIST}\nexport function startAutoResume() { globalThis.__stubAutoResume = (globalThis.__stubAutoResume ?? 0) + 1; }\n`);
196
+ const pane = await (0, agentPane_1.loadAgentPane)({ distPath, dbPath: path_1.default.join(dir, 'home', 'data.db'), legacyDbPath: path_1.default.join(dir, 'no-legacy.db') });
197
+ const g = globalThis;
198
+ delete g.__stubAutoResume;
199
+ // Loading alone must not start it (a second daemon that fails to bind).
200
+ expect(g.__stubAutoResume).toBeUndefined();
201
+ expect(typeof pane.startAutoResume).toBe('function');
202
+ pane.startAutoResume();
203
+ expect(g.__stubAutoResume).toBe(1);
190
204
  });
191
205
  it('does not copy a legacy DB over an existing embedded DB', async () => {
192
206
  const dir = tmpDir('no-overwrite');
@@ -156,6 +156,14 @@ async function main() {
156
156
  console.log(`Repoburg Platform Daemon listening on http://127.0.0.1:${PORT}`);
157
157
  console.log(`MCP Gateway available at http://localhost:${PORT}/mcp`);
158
158
  tabtape = loadTabtape();
159
+ // Resume agent-pane turns the previous daemon left running (restart,
160
+ // crash, power loss) — only now that the port is ours.
161
+ try {
162
+ pane?.startAutoResume?.();
163
+ }
164
+ catch (err) {
165
+ console.error('[agentPane] auto-resume failed to start:', err);
166
+ }
159
167
  });
160
168
  // Clean up MCP gateway sessions and the embedded agent-pane on shutdown.
161
169
  const shutdown = async () => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "repoburg",
3
- "version": "1.3.266",
3
+ "version": "1.3.268",
4
4
  "description": "A local AI-powered software developer assistant that runs on your own machine.",
5
5
  "author": "Celal Ertug",
6
6
  "license": "SEE LICENSE IN LICENSE",
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "tree": "f1e4a7bc0d8f8c6677cf229567552e042a4aa3a3",
3
- "commit": "9821adc1c165a21521d72f8604f7eed0835506c2",
3
+ "commit": "7346b4ef9437005b03db92110d969a3ce7d50811",
4
4
  "dirty": false,
5
- "repoburgVersion": "1.3.266",
6
- "builtAt": "2026-10-23T01:58:54.970Z"
5
+ "repoburgVersion": "1.3.268",
6
+ "builtAt": "2026-10-23T05:20:02.537Z"
7
7
  }
@@ -58,5 +58,5 @@
58
58
  ]
59
59
  }
60
60
  ],
61
- "version_name": "0.5.0 (repoburg 1.3.266, 9821adc)"
61
+ "version_name": "0.5.0 (repoburg 1.3.268, 7346b4e)"
62
62
  }
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "tree": "f1e4a7bc0d8f8c6677cf229567552e042a4aa3a3",
3
- "commit": "9821adc1c165a21521d72f8604f7eed0835506c2",
3
+ "commit": "7346b4ef9437005b03db92110d969a3ce7d50811",
4
4
  "dirty": false,
5
- "repoburgVersion": "1.3.266",
6
- "builtAt": "2026-10-23T01:58:54.970Z"
5
+ "repoburgVersion": "1.3.268",
6
+ "builtAt": "2026-10-23T05:20:02.537Z"
7
7
  }