copilotoffice 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/game.bundle.js +16 -7
- package/package.json +1 -1
package/dist/game.bundle.js
CHANGED
|
@@ -140044,7 +140044,7 @@ var CopilotOffice = (() => {
|
|
|
140044
140044
|
CORE_AGENT_IDS.clear();
|
|
140045
140045
|
for (const a of AGENTS) CORE_AGENT_IDS.add(a.id);
|
|
140046
140046
|
}
|
|
140047
|
-
var FLEET_NAMES, FLEET_COLORS, FLEET_SEAT_POSITIONS, ARTHUR_FLEET_SEAT_INDEX, FLEET_AGENTS, RESERVE_AGENTS, CORE_AGENT_IDS, RESERVE_AGENT_DESK, AGENTS, DEFAULT_AGENTS, DEFAULT_RESERVE_MAP, RANDOM_POOL_CONFIGS, RANDOM_SPRITE_COUNT, CORE_POSITIONS, RESERVE_DESK_IDS, RESERVE_POSITIONS, ROLE_TITLES;
|
|
140047
|
+
var FLEET_NAMES, FLEET_COLORS, FLEET_SEAT_POSITIONS, ARTHUR_FLEET_SEAT_INDEX, FLEET_AGENTS, RESERVE_AGENTS, SHOW_ARCHITECT_IN_DEFAULT_OFFICE, CORE_AGENT_IDS, RESERVE_AGENT_DESK, AGENTS, DEFAULT_AGENTS, DEFAULT_RESERVE_MAP, RANDOM_POOL_CONFIGS, RANDOM_SPRITE_COUNT, CORE_POSITIONS, RESERVE_DESK_IDS, RESERVE_POSITIONS, ROLE_TITLES;
|
|
140048
140048
|
var init_agents = __esm({
|
|
140049
140049
|
"src/config/agents.ts"() {
|
|
140050
140050
|
"use strict";
|
|
@@ -140289,7 +140289,13 @@ var CopilotOffice = (() => {
|
|
|
140289
140289
|
description: "The Accountant"
|
|
140290
140290
|
}
|
|
140291
140291
|
};
|
|
140292
|
-
|
|
140292
|
+
SHOW_ARCHITECT_IN_DEFAULT_OFFICE = false;
|
|
140293
|
+
CORE_AGENT_IDS = /* @__PURE__ */ new Set([
|
|
140294
|
+
"generalist",
|
|
140295
|
+
...SHOW_ARCHITECT_IN_DEFAULT_OFFICE ? ["architect"] : [],
|
|
140296
|
+
"debugger",
|
|
140297
|
+
"admin"
|
|
140298
|
+
]);
|
|
140293
140299
|
RESERVE_AGENT_DESK = Object.fromEntries(
|
|
140294
140300
|
Object.entries(RESERVE_AGENTS).map(([deskId, config]) => [config.id, deskId])
|
|
140295
140301
|
);
|
|
@@ -140306,7 +140312,7 @@ var CopilotOffice = (() => {
|
|
|
140306
140312
|
greeting: "Hey! I'm Gene, the Generalist. I can help with just about anything - coding, debugging, research, you name it!",
|
|
140307
140313
|
description: "the Generalist"
|
|
140308
140314
|
},
|
|
140309
|
-
{
|
|
140315
|
+
...SHOW_ARCHITECT_IN_DEFAULT_OFFICE ? [{
|
|
140310
140316
|
id: "architect",
|
|
140311
140317
|
name: "Arthur",
|
|
140312
140318
|
skill: "general",
|
|
@@ -140317,7 +140323,7 @@ var CopilotOffice = (() => {
|
|
|
140317
140323
|
// bottom-left corner, own desk
|
|
140318
140324
|
greeting: "\u26A1 I am Arthur, The Architect. I design systems, orchestrate plans, and spin up agents to execute complex tasks. Tell me your vision, and I'll build the team to make it happen.",
|
|
140319
140325
|
description: "The Architect"
|
|
140320
|
-
},
|
|
140326
|
+
}] : [],
|
|
140321
140327
|
{
|
|
140322
140328
|
id: "debugger",
|
|
140323
140329
|
name: "Dan",
|
|
@@ -152330,9 +152336,11 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
152330
152336
|
laptop.setDepth(ySortDepth(deskY, worldH) + 0.1);
|
|
152331
152337
|
this.desks.push({ sprite: desk, agentId: agent.id, x: deskX, y: deskY, laptopSprite: laptop, laptopDirection: dir });
|
|
152332
152338
|
};
|
|
152339
|
+
const leftTableAgent = AGENTS.find((a) => a.position.x === 4 && a.position.y === 3);
|
|
152340
|
+
const rightTableAgent = AGENTS.find((a) => a.position.x === 13 && a.position.y === 3);
|
|
152333
152341
|
const communalTables = [
|
|
152334
|
-
{ startCol: 4, agent:
|
|
152335
|
-
{ startCol: 13, agent:
|
|
152342
|
+
{ startCol: 4, agent: leftTableAgent },
|
|
152343
|
+
{ startCol: 13, agent: rightTableAgent }
|
|
152336
152344
|
];
|
|
152337
152345
|
const tableStartRow = 4;
|
|
152338
152346
|
communalTables.forEach((table) => {
|
|
@@ -152399,7 +152407,8 @@ WARNING: This link could potentially be dangerous`)) {
|
|
|
152399
152407
|
y: sideStoolY
|
|
152400
152408
|
});
|
|
152401
152409
|
});
|
|
152402
|
-
|
|
152410
|
+
const cornerAgents = AGENTS.filter((agent) => agent.position.y >= 8);
|
|
152411
|
+
cornerAgents.forEach((agent) => {
|
|
152403
152412
|
const deskX = agent.position.x * this.tileSize + this.tileSize / 2;
|
|
152404
152413
|
const deskY = (agent.position.y + 1) * this.tileSize + this.tileSize / 2;
|
|
152405
152414
|
placeAgentDesk(agent, deskX, deskY);
|