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.
- package/agent-pane/backend/dist/index.js +781 -111
- package/agent-pane/backend/dist/server.js +39624 -38951
- package/agent-pane/frontend/dist/assets/index-CGMuuJwp.css +1 -0
- package/agent-pane/frontend/dist/assets/index-DJdEb4sk.js +567 -0
- package/agent-pane/frontend/dist/index.html +2 -2
- package/daemon/dist/agentPane.js +5 -0
- package/daemon/dist/agentPane.spec.js +16 -2
- package/daemon/dist/index.js +8 -0
- package/package.json +1 -1
- package/tabtape/extension/dist/build-info.json +3 -3
- package/tabtape/extension/dist/manifest.json +1 -1
- package/tabtape/ui/dist/build-info.json +3 -3
- package/agent-pane/frontend/dist/assets/index-BWI1sdtn.js +0 -532
- package/agent-pane/frontend/dist/assets/index-CsD8SrgL.css +0 -1
|
@@ -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-
|
|
14
|
-
<link rel="stylesheet" crossorigin href="/assets/index-
|
|
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>
|
package/daemon/dist/agentPane.js
CHANGED
|
@@ -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,
|
|
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');
|
package/daemon/dist/index.js
CHANGED
|
@@ -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,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tree": "f1e4a7bc0d8f8c6677cf229567552e042a4aa3a3",
|
|
3
|
-
"commit": "
|
|
3
|
+
"commit": "7346b4ef9437005b03db92110d969a3ce7d50811",
|
|
4
4
|
"dirty": false,
|
|
5
|
-
"repoburgVersion": "1.3.
|
|
6
|
-
"builtAt": "2026-10-
|
|
5
|
+
"repoburgVersion": "1.3.268",
|
|
6
|
+
"builtAt": "2026-10-23T05:20:02.537Z"
|
|
7
7
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"tree": "f1e4a7bc0d8f8c6677cf229567552e042a4aa3a3",
|
|
3
|
-
"commit": "
|
|
3
|
+
"commit": "7346b4ef9437005b03db92110d969a3ce7d50811",
|
|
4
4
|
"dirty": false,
|
|
5
|
-
"repoburgVersion": "1.3.
|
|
6
|
-
"builtAt": "2026-10-
|
|
5
|
+
"repoburgVersion": "1.3.268",
|
|
6
|
+
"builtAt": "2026-10-23T05:20:02.537Z"
|
|
7
7
|
}
|