bit-office 1.0.1 → 1.0.2
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/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/web/{out/404.html → 404.html} +2 -2
- package/dist/web/_next/static/chunks/388-5a04e93e2531cfb7.js +1 -0
- package/dist/web/{out/_next/static/chunks/app/_not-found/page-0f7c77f58dea5cf2.js → _next/static/chunks/app/_not-found/page-182ed2c105839b2a.js} +1 -1
- package/dist/web/_next/static/chunks/app/layout-72c65340fbaef4c0.js +1 -0
- package/dist/web/_next/static/chunks/app/office/page-40e6628ffa58377f.js +1 -0
- package/dist/web/{out/_next/static/chunks/app/page-0df5702ab3268617.js → _next/static/chunks/app/page-9721074d4b94e149.js} +1 -1
- package/dist/web/_next/static/chunks/app/pair/page-ffb2dcb5753f3161.js +1 -0
- package/dist/web/{out/_next/static/chunks/main-3ed3b5510eeb64f8.js → _next/static/chunks/main-314e1c8a2c4316bd.js} +1 -1
- package/dist/web/{out/_next/static/chunks/main-app-4f4b0701adf58469.js → _next/static/chunks/main-app-baad86574bd560af.js} +1 -1
- package/dist/web/{out/index.html → index.html} +2 -2
- package/dist/web/{out/index.txt → index.txt} +2 -2
- package/dist/web/{out/office.html → office.html} +3 -3
- package/dist/web/{out/office.txt → office.txt} +2 -2
- package/dist/web/{out/pair.html → pair.html} +2 -2
- package/dist/web/{out/pair.txt → pair.txt} +2 -2
- package/dist/web/{out/sw.js → sw.js} +1 -1
- package/package.json +1 -1
- package/dist/web/out/_next/static/chunks/977-26ddf708be8caf79.js +0 -1
- package/dist/web/out/_next/static/chunks/app/layout-7ca1be140a482711.js +0 -1
- package/dist/web/out/_next/static/chunks/app/office/page-308e5b26d0614d2e.js +0 -1
- package/dist/web/out/_next/static/chunks/app/pair/page-184bbadaef147894.js +0 -1
- /package/dist/web/{out/Office Tileset → Office Tileset}/LICENSE.txt +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Designs/Office Level 1.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Designs/Office Level 2.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Designs/Office Level 3.5.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Designs/Office Level 3.jpeg +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Designs/Office Level 3.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Designs/Office Level 4.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Palette/Office Palette Large.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Palette/Office Palette Medium.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Palette/Office Palette Small.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Tileset All 16x16 no shadow.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Tileset All 16x16.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Tileset All 32x32 no shadow.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Tileset All 32x32.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Tileset All 48x48 no shadow.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office Tileset All 48x48.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/A2 Office Floors.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/A4 Office Walls.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/A5 Office Floors & Walls.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/B-C-D-E Office 1 No Shadows.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/B-C-D-E Office 1.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/B-C-D-E Office 2 No Shadows.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/B-C-D-E Office 2.png +0 -0
- /package/dist/web/{out/Office Tileset → Office Tileset}/Office VX Ace/README.txt +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/29.2a4210219e06b537.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/290.d0fe5fb72a5068b2.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/325ca9c7-f84e7e4973790fdf.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/4d67e943-e6a0fd3b5c397505.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/757.6d61de28074ba8d4.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/810.44213c6355518b0b.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/880.614e72604eb723a3.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/904.70db0cb7d0ebff73.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/989-4c2c2b3a6c2f8a4a.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/framework-bec628f2b7cc8f6d.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/pages/_app-f4d560c9dbc22e4e.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/pages/_error-492bd157be5771d5.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/polyfills-42372ed130431b0a.js +0 -0
- /package/dist/web/{out/_next → _next}/static/chunks/webpack-2f6b11d148fba4ca.js +0 -0
- /package/dist/web/{out/_next/static/gZO52TyDkntI9O-CASzGz → _next/static/qkEGHc9hlA3Whs7S6hFsW}/_buildManifest.js +0 -0
- /package/dist/web/{out/_next/static/gZO52TyDkntI9O-CASzGz → _next/static/qkEGHc9hlA3Whs7S6hFsW}/_ssgManifest.js +0 -0
- /package/dist/web/{out/assets → assets}/characters/char_0.png +0 -0
- /package/dist/web/{out/assets → assets}/characters/char_1.png +0 -0
- /package/dist/web/{out/assets → assets}/characters/char_2.png +0 -0
- /package/dist/web/{out/assets → assets}/characters/char_3.png +0 -0
- /package/dist/web/{out/assets → assets}/characters/char_4.png +0 -0
- /package/dist/web/{out/assets → assets}/characters/char_5.png +0 -0
- /package/dist/web/{out/assets → assets}/walls.png +0 -0
- /package/dist/web/{out/icons → icons}/icon-192.png +0 -0
- /package/dist/web/{out/icons → icons}/icon-512.png +0 -0
- /package/dist/web/{out/manifest.json → manifest.json} +0 -0
- /package/dist/web/{out/pixel-agents-layout.json → pixel-agents-layout.json} +0 -0
- /package/dist/web/{out/workbox-5194662c.js → workbox-5194662c.js} +0 -0
package/dist/index.js
CHANGED
|
@@ -4340,11 +4340,23 @@ function resolveWebDir() {
|
|
|
4340
4340
|
if (existsSync(bundled)) return bundled;
|
|
4341
4341
|
return resolve(__dirname, "../../web/out");
|
|
4342
4342
|
}
|
|
4343
|
+
function resolveDefaultWorkspace() {
|
|
4344
|
+
const isDev = process.env.NODE_ENV === "development";
|
|
4345
|
+
if (isDev) {
|
|
4346
|
+
const ws = resolve(__dirname, "../.workspace");
|
|
4347
|
+
if (!existsSync(ws)) {
|
|
4348
|
+
mkdirSync(ws, { recursive: true });
|
|
4349
|
+
console.log(`[Config] Created default workspace: ${ws}`);
|
|
4350
|
+
}
|
|
4351
|
+
return ws;
|
|
4352
|
+
}
|
|
4353
|
+
return process.cwd();
|
|
4354
|
+
}
|
|
4343
4355
|
function buildConfig() {
|
|
4344
4356
|
const saved = loadSavedConfig();
|
|
4345
4357
|
return {
|
|
4346
4358
|
machineId: getOrCreateMachineId(),
|
|
4347
|
-
defaultWorkspace: process.env.WORKSPACE ||
|
|
4359
|
+
defaultWorkspace: process.env.WORKSPACE || resolveDefaultWorkspace(),
|
|
4348
4360
|
wsPort: 9090,
|
|
4349
4361
|
ablyApiKey: process.env.ABLY_API_KEY || saved.ablyApiKey || void 0,
|
|
4350
4362
|
webDir: resolveWebDir(),
|
|
@@ -5324,7 +5336,7 @@ var AgentSession = class {
|
|
|
5324
5336
|
this.dequeueNext();
|
|
5325
5337
|
} catch (err) {
|
|
5326
5338
|
console.error(`[Agent ${this.agentId}] Error in close handler:`, err);
|
|
5327
|
-
this.setStatus("
|
|
5339
|
+
this.setStatus("error");
|
|
5328
5340
|
this.dequeueNext();
|
|
5329
5341
|
}
|
|
5330
5342
|
});
|
|
@@ -5541,7 +5553,7 @@ var AgentSession = class {
|
|
|
5541
5553
|
});
|
|
5542
5554
|
}
|
|
5543
5555
|
setStatus(status) {
|
|
5544
|
-
if (status === "idle" && this.process) return;
|
|
5556
|
+
if (status === "idle" && (this.process || this.taskQueue.length > 0)) return;
|
|
5545
5557
|
this._status = status;
|
|
5546
5558
|
this.onEvent({
|
|
5547
5559
|
type: "agent:status",
|